Home
last modified time | relevance | path

Searched refs:C2x (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/clang/test/Preprocessor/
H A Dhas_c_attribute.c4 #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 Dbitint-constants-compat.c6 … 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 DLangStandard.h52 C2x = (1 << 4), enumerator
104 bool isC2x() const { return Flags & C2x; } in isC2x()
H A DLangStandards.def90 // 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 DLangOptions.h546 return CPlusPlus || C2x || DisableKNRFunctions; in requiresStrictPrototypes()
559 bool isImplicitIntAllowed() const { return !CPlusPlus && !C2x; } in isImplicitIntAllowed()
H A DDiagnosticCommonKinds.td215 "'_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 DDiagnosticLexKinds.td213 "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 DAttr.td293 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 DLangOptions.def89 LANGOPT(C2x , 1, 0, "C2x")
H A DDiagnosticParseKinds.td436 "'_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 Dwarn-documentation-fixits.c19 #ifdef C2x
H A Dknr-def-call.c16 …ion definition without a prototype is deprecated in all versions of C and is not supported in C2x}}
H A Dwarn-strict-prototypes.c59 …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 Dnonnull.m25 …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 DLangOptions.cpp106 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 DReleaseNotes.rst47 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 DMatrixTypes.rst36 * 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 Dindex.rst17 - Fully compliant with current C standards (C17 and upcoming C2x) and POSIX.
/llvm-project-15.0.7/clang/utils/TableGen/
H A DClangAttrEmitter.cpp3307 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 DStdLib.cpp61 if (LO.C2x) in standardFromOpts()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPPDirectives.cpp456 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 DLexer.cpp1465 } 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 DPPExpressions.cpp338 PP.Diag(PeekTok, PP.getLangOpts().C2x in EvaluateValue()
/llvm-project-15.0.7/clang/lib/AST/
H A DCommentSema.cpp667 const bool DoubleSquareBracket = LO.CPlusPlus14 || LO.C2x; in checkDeprecatedCommand()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DInitPreprocessor.cpp441 if (LangOpts.C2x) in InitializeStandardPredefinedMacros()

12