Skip to content

support Feature Checking Macros#2406

Merged
guwirth merged 1 commit intoSonarOpenCommunity:masterfrom
guwirth:pp-refactoring-14
Jul 26, 2022
Merged

support Feature Checking Macros#2406
guwirth merged 1 commit intoSonarOpenCommunity:masterfrom
guwirth:pp-refactoring-14

Conversation

@guwirth
Copy link
Copy Markdown
Collaborator

@guwirth guwirth commented Jul 26, 2022

#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

This change is Reviewable

* 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 guwirth added this to the 2.1.0 milestone Jul 26, 2022
@guwirth guwirth self-assigned this Jul 26, 2022
@guwirth guwirth merged commit c910f95 into SonarOpenCommunity:master Jul 26, 2022
@guwirth guwirth deleted the pp-refactoring-14 branch February 8, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Cannot parse __has_builtin Support __has_cpp_attribute expressions (C++20) "Unable to lex string source code" error with "__has_include"

1 participant