We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The preprocessor doesn't inhibit expansion when concatenating with an empty token. Here an example:
#define EMPTY() #define DEFER(id) id EMPTY()
#define A(p, ...) p ## VA_ARGS // should inhibit expansion of ...
#define B(p, ...) p VA_ARGS
#define TEST() 123
A(, DEFER(TEST)()) // should be TEST (), but clang expands to 123 B(, DEFER(TEST)()) // should be 123
The text was updated successfully, but these errors were encountered:
*** Bug llvm/llvm-bugzilla-archive#15661 has been marked as a duplicate of this bug. ***
Sorry, something went wrong.
Fixed in r182699.
mentioned in issue llvm/llvm-bugzilla-archive#15661
No branches or pull requests
Extended Description
The preprocessor doesn't inhibit expansion when concatenating with an empty token.
Here an example:
#define EMPTY()
#define DEFER(id) id EMPTY()
#define A(p, ...) p ## VA_ARGS // should inhibit expansion of ...
#define B(p, ...) p VA_ARGS
#define TEST() 123
A(, DEFER(TEST)()) // should be TEST (), but clang expands to 123
B(, DEFER(TEST)()) // should be 123
The text was updated successfully, but these errors were encountered: