Cevelop / cevelop

The C++ IDE for professional developers
Eclipse Public License 2.0
6 stars 0 forks source link

Namespactor: Inlining a type alias produces defective code #20

Open fmorgner opened 6 years ago

fmorgner commented 6 years ago

Expected Behavior

Inlining the alias type alias in the below example should simply replace the occurrence of the alias in the call to the MACRO macro with int. However, int is actually prepended to the macro call.

#define MACRO(A, B) A B{}

using alias = int;

int main() {
    MACRO(alias, variable);
}

Actual Behavior

#define MACRO(A, B) A B{}

using alias = int;

int main() {
    intMACRO(alias, variable);
}

Cevelop Version, Operating System and Compiler

Cevelop 1.10.1, Any, Any