-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
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
Preprocessor macro problem #307
Comments
I've been testing this |
Even when adding other text at the end of the macro the output miss the closing brace:
Output:
|
The problem seem to be here : cplusplus/src/parser/cxx/preprocessor.cc Lines 2658 to 2665 in 3b93d2b
When skipping the endif you are only breaking the loop when it->bol is true but when tokenizing the } is not marked with bol equals true and is skipped, we need another way to manage it here.
|
With this hack it seems to work, all tests pass and it parses
Output:
|
While testing some files I've used to test https://github.com/tyfkda/xcc I found one that
cxx
stil can't handle:Notice that
cxx
is eating the closing brace !The text was updated successfully, but these errors were encountered: