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 C preprocessor is not correctly processing complex rules. The following example is processed incorrectly:
#define SDS_ARCH_darwin_15_i86 #ifdef SDS_ARCH_freebsd_61_i86 #include <sys/endian.h> #elif defined(SDS_ARCH_darwin_15_i86) #include <libkern/OSByteOrder.h> // Incorrectly not taken. #elif defined(SDS_ARCH_winxp) || defined(SDS_ARCH_Interix) #else #include <byteswap.h> // Incorrectly taken #endif
The text was updated successfully, but these errors were encountered:
Could you do some more testing please: is this working: #define SDS_ARCH_darwin_15_i86 1
Sorry, something went wrong.
Yeah, I had already tried that, doesn't help.
we need more low level tests: https://github.com/SonarOpenCommunity/sonar-cxx/blob/2105e6eec7b3d8fc60acc9e0eaacfa05e02e024e/cxx-squid/src/test/java/org/sonar/cxx/lexer/CxxLexerWithPreprocessingTest.java
@WilliamKF Solution #692
guwirth
Successfully merging a pull request may close this issue.
The C preprocessor is not correctly processing complex rules. The following example is processed incorrectly:
The text was updated successfully, but these errors were encountered: