We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19e2174 commit 0e823b0Copy full SHA for 0e823b0
libcxx/test/tools/clang_tidy_checks/uglify_attributes.cpp
@@ -44,7 +44,12 @@ bool CPlusPlus23(const T& lang_opts)
44
}
45
46
std::vector<const char*> get_standard_attributes(const clang::LangOptions& lang_opts) {
47
- std::vector<const char*> attributes = {"noreturn", "carries_dependency"};
+ std::vector<const char*> attributes;
48
+
49
+ if (lang_opts.CPlusPlus11) {
50
+ attributes.emplace_back("noreturn");
51
+ attributes.emplace_back("carries_dependency");
52
+ }
53
54
if (lang_opts.CPlusPlus14)
55
attributes.emplace_back("deprecated");
0 commit comments