-
Notifications
You must be signed in to change notification settings - Fork 365
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
Cannot parse __has_builtin #2395
Labels
Milestone
Comments
Hello @godambrosio, thanks for the feedback. Please have a look to #2369, maybe that helps. Regards, |
guwirth
changed the title
CXX sensor ignored due to Cannot parse error
Cannot parse __has_builtin
Jun 16, 2022
Please read: Some more hints: Sample:
|
guwirth
added a commit
to guwirth/sonar-cxx
that referenced
this issue
Jul 26, 2022
* https://clang.llvm.org/docs/LanguageExtensions.html ``` #define __has_builtin(x) 0 #define __has_feature(x) 0 #define __has_extension(x) 0 #define __has_cpp_attribute(x) 0 #define __has_c_attribute(x) 0 #define __has_attribute(x) 0 #define __has_declspec_attribute(x) 0 #define __is_identifier(x) 1 #define __has_warning(x) 0 ``` * close SonarOpenCommunity#2395 * close SonarOpenCommunity#2376 * close SonarOpenCommunity#2369
guwirth
added a commit
to guwirth/sonar-cxx
that referenced
this issue
Jul 26, 2022
* https://clang.llvm.org/docs/LanguageExtensions.html ``` #define __has_builtin(x) 0 #define __has_feature(x) 0 #define __has_extension(x) 0 #define __has_cpp_attribute(x) 0 #define __has_c_attribute(x) 0 #define __has_attribute(x) 0 #define __has_declspec_attribute(x) 0 #define __is_identifier(x) 1 #define __has_warning(x) 0 ``` * close SonarOpenCommunity#2395 * close SonarOpenCommunity#2376 * close SonarOpenCommunity#2369
guwirth
added a commit
to guwirth/sonar-cxx
that referenced
this issue
Jul 26, 2022
* https://clang.llvm.org/docs/LanguageExtensions.html ``` #define __has_builtin(x) 0 #define __has_feature(x) 0 #define __has_extension(x) 0 #define __has_cpp_attribute(x) 0 #define __has_c_attribute(x) 0 #define __has_attribute(x) 0 #define __has_declspec_attribute(x) 0 #define __is_identifier(x) 1 #define __has_warning(x) 0 ``` * close SonarOpenCommunity#2395 * close SonarOpenCommunity#2376 * close SonarOpenCommunity#2369
guwirth
added a commit
to guwirth/sonar-cxx
that referenced
this issue
Jul 26, 2022
* https://clang.llvm.org/docs/LanguageExtensions.html ``` #define __has_builtin(x) 0 #define __has_feature(x) 0 #define __has_extension(x) 0 #define __has_cpp_attribute(x) 0 #define __has_c_attribute(x) 0 #define __has_attribute(x) 0 #define __has_declspec_attribute(x) 0 #define __is_identifier(x) 1 #define __has_warning(x) 0 ``` * close SonarOpenCommunity#2395 * close SonarOpenCommunity#2376 * close SonarOpenCommunity#2369
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The CXX sensor is ignored due to an error: Cannot parse '#if (__has_builtin(__builtin_FILE) and __has_builtin(__builtin_LINE))', ignoring...
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Sensor CXX is executed
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: