-
Notifications
You must be signed in to change notification settings - Fork 362
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 allows for name collision with directory like 'exception' #2692
Comments
Hi @baemhai, thx for your feedback, we will have a look to it … |
relevant LOG file items:
File
process include file:
line with error message:
|
Hello @baemhai, you can try with (#2726) https://github.com/SonarOpenCommunity/sonar-cxx/actions/runs/10579102991/artifacts/1859720937 if the problem is solved. Regards, |
Before you create a new issue
Describe the bug
<exception>
.<exception>
, which may account for some occurrences of the error if the header is in cxx.sourcesERROR preprocessor: .../include/exception (Is a directory) ...
grep -Hne 'Is a directory' 202*
sonar.cxx.jsonCompilationDatabase=build/compile_commands.json
andsonar.cxx.includeDirectories=include
configured. The log shows the error two times.<exception>
is found just like the compiler does it.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Since the compiler is able to work it out, cxx's preprocessor should too: a directory should not match when looking for a header file.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: