-
Notifications
You must be signed in to change notification settings - Fork 363
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
#include quoted form: preprocessor search order #1225
Comments
guwirth
changed the title
#ionclude quoted form: preprocessor search order
#include quoted form: preprocessor search order
Sep 7, 2017
guwirth
added a commit
to guwirth/sonar-cxx
that referenced
this issue
Dec 2, 2020
- support Microsoft Quoted form search (close SonarOpenCommunity#1225): 1) In the same directory as the file that contains the #include statement. 2) In the directories of the currently opened include files, in the reverse order in which they were opened. The search begins in the directory of the parent include file and continues upward through the directories of any grandparent include files. 3) fallback to use include paths instead of local folder (same as Angle-bracket form) - add #include unit tests - test for compilation database settings propagation (close SonarOpenCommunity#1489) - refactoring
guwirth
added a commit
to guwirth/sonar-cxx
that referenced
this issue
Dec 3, 2020
- support Microsoft Quoted form search (close SonarOpenCommunity#1225): 1) In the same directory as the file that contains the #include statement. 2) In the directories of the currently opened include files, in the reverse order in which they were opened. The search begins in the directory of the parent include file and continues upward through the directories of any grandparent include files. 3) fallback to use include paths instead of local folder (same as Angle-bracket form) - add #include unit tests - test for compilation database settings propagation (close SonarOpenCommunity#1489) - refactoring
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quoted form: The preprocessor searches for include files in this order:
Case 2 seems to be not supported:
sonar-cxx/cxx-squid/src/main/java/org/sonar/cxx/preprocessor/SourceCodeProvider.java
Line 67 in b3bb920
The text was updated successfully, but these errors were encountered: