| /llvm-project-15.0.7/clang/test/Preprocessor/ |
| H A D | has_c_attribute.c | 4 #define C2x(x) x: __has_c_attribute(x) macro 7 C2x(fallthrough) 10 C2x(__nodiscard__) 13 C2x(selectany); // Known attribute not supported in C mode 16 C2x(frobble) // Unknown attribute 19 C2x(frobble::frobble) // Unknown vendor namespace 22 C2x(clang::annotate) 25 C2x(deprecated) 28 C2x(maybe_unused) 31 C2x(__gnu__::warn_unused_result) [all …]
|
| /llvm-project-15.0.7/clang/test/Lexer/ |
| H A D | bitint-constants-compat.c | 6 … compat-warning {{'_BitInt' suffix for literals is incompatible with C standards before C2x}} \ 12 … compat-warning {{'_BitInt' suffix for literals is incompatible with C standards before C2x}} \ in func()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | LangStandard.h | 52 C2x = (1 << 4), enumerator 104 bool isC2x() const { return Flags & C2x; } in isC2x()
|
| H A D | LangStandards.def | 90 // C2x modes 92 C, "Working Draft for ISO C2x", 93 LineComment | C99 | C11 | C17 | C2x | Digraphs | HexFloat) 95 C, "Working Draft for ISO C2x with GNU extensions", 96 LineComment | C99 | C11 | C17 | C2x | Digraphs | GNUMode | HexFloat)
|
| H A D | LangOptions.h | 546 return CPlusPlus || C2x || DisableKNRFunctions; in requiresStrictPrototypes() 559 bool isImplicitIntAllowed() const { return !CPlusPlus && !C2x; } in isImplicitIntAllowed()
|
| H A D | DiagnosticCommonKinds.td | 215 "'_BitInt' suffix for literals is a C2x extension">, 216 InGroup<C2x>; 218 "'_BitInt' suffix for literals is incompatible with C standards before C2x">,
|
| H A D | DiagnosticLexKinds.td | 213 "digit separators are incompatible with C standards before C2x">, 392 "#warning is a %select{C2x|C++2b}0 extension">; 397 "#warning is incompatible with C standards before C2x">, 729 "is incompatible with C standards before C2x">, 733 "is a C2x extension">, 734 InGroup<C2x>;
|
| H A D | Attr.td | 293 class C2x<string namespace, string name, int version = 1> 294 : Spelling<name, "C2x"> { 305 // C2x<"gnu", name>. This spelling should be used for any GCC-compatible 312 // C2x<"clang", name>. This spelling should be used for any Clang-specific 674 C2x<"clang", "builtin_alias">, 1251 C2x<"", "noreturn", 202202>, C2x<"", "_Noreturn", 202202>]; 1350 C2x<"", "deprecated", 201904>]; 1408 C2x<"", "fallthrough", 201904>, 1418 let Spellings = [CXX11<"", "likely", 201803>, C2x<"clang", "likely">]; 2875 C2x<"", "maybe_unused", 201904>]; [all …]
|
| H A D | LangOptions.def | 89 LANGOPT(C2x , 1, 0, "C2x")
|
| H A D | DiagnosticParseKinds.td | 436 "'_Static_assert' with no message is a C2x extension">, InGroup<C2x>; 443 "C2x">, 1526 "'_BitInt' is incompatible with C standards before C2x">,
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | warn-documentation-fixits.c | 19 #ifdef C2x
|
| H A D | knr-def-call.c | 16 …ion definition without a prototype is deprecated in all versions of C and is not supported in C2x}}
|
| H A D | warn-strict-prototypes.c | 59 …cated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a…
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | nonnull.m | 25 …cated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a… 44 …nts to 'func6' without a prototype is deprecated in all versions of C and is not supported in C2x}} 45 …nts to 'func7' without a prototype is deprecated in all versions of C and is not supported in C2x}}
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | LangOptions.cpp | 106 Opts.C2x = Std.isC2x(); in setLangDefaults() 196 Opts.Bool = Opts.OpenCL || Opts.CPlusPlus || Opts.C2x; in setLangDefaults()
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | ReleaseNotes.rst | 47 diagnostics are now enabled by default in C99, C11, and C17. As of C2x, 253 without a prototype where the behavior in C2x will remain correct. This 255 it being a deprecation warning. ``-Wstrict-prototypes`` has no effect in C2x 258 function without a prototype will change behavior in C2x. Additionally, it 264 enabled by default. ``-Wdeprecated-non-prototype`` has no effect in C2x or 291 standards before C2x/C++2b are now warned via ``-pedantic``. Additionally, 303 suggested when in C2x or C++2b mode. Fixes 365 - Added the ``-fno-knr-functions`` flag to allow users to opt into the C2x 369 modes where it is required, such as C++ or C2x. 493 C2x Feature Support [all …]
|
| H A D | MatrixTypes.rst | 36 * an integer type (as in C2x 6.2.5p19), but excluding enumerated types and ``_Bool`` 71 A value of any real type (as in C2x 6.2.5p17) can be converted to a matrix type
|
| /llvm-project-15.0.7/libc/docs/ |
| H A D | index.rst | 17 - Fully compliant with current C standards (C17 and upcoming C2x) and POSIX.
|
| /llvm-project-15.0.7/clang/utils/TableGen/ |
| H A D | ClangAttrEmitter.cpp | 3307 std::map<std::string, std::vector<Record *>> CXX, C2x; in EmitClangAttrHasAttrImpl() local 3324 C2x[SI.nameSpace()].push_back(R); in EmitClangAttrHasAttrImpl() 3367 fn("C2x", C2x); in EmitClangAttrHasAttrImpl() 4302 Keywords, Pragma, C2x, HLSLSemantic; in EmitClangAttrParsedAttrKinds() local 4340 Matches = &C2x; in EmitClangAttrParsedAttrKinds() 4384 StringMatcher("Name", C2x, OS).Emit(); in EmitClangAttrParsedAttrKinds() 4504 C2x, enumerator 4526 .Case("C2x", SpellingKind::C2x) in add() 4536 case SpellingKind::C2x: in add()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | StdLib.cpp | 61 if (LO.C2x) in standardFromOpts()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | PPDirectives.cpp | 456 if (LangOpts.C2x || LangOpts.CPlusPlus2b) in SuggestTypoedDirective() 775 DiagID = LangOpts.C2x ? diag::warn_c2x_compat_pp_directive in SkipExcludedConditionalBlock() 1270 Diag(Result, LangOpts.C2x ? diag::warn_c2x_compat_warning_directive in HandleDirective() 3439 DiagID = LangOpts.C2x ? diag::warn_c2x_compat_pp_directive in HandleElifFamilyDirective()
|
| H A D | Lexer.cpp | 1465 } else if (LangOpts.CPlusPlus || LangOpts.C2x) { in isAllowedIDChar() 1489 if (LangOpts.CPlusPlus || LangOpts.C2x) { in isAllowedInitiallyIDChar() 1894 if (C == '\'' && (LangOpts.CPlusPlus14 || LangOpts.C2x)) { in LexNumericConstant() 3699 if (Char2 == '\'' && (LangOpts.CPlusPlus17 || LangOpts.C2x)) in LexTokenInternal()
|
| H A D | PPExpressions.cpp | 338 PP.Diag(PeekTok, PP.getLangOpts().C2x in EvaluateValue()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | CommentSema.cpp | 667 const bool DoubleSquareBracket = LO.CPlusPlus14 || LO.C2x; in checkDeprecatedCommand()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | InitPreprocessor.cpp | 441 if (LangOpts.C2x) in InitializeStandardPredefinedMacros()
|