Home
last modified time | relevance | path

Searched refs:C2y (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DLangStandard.h54 C2y = (1 << 5), enumerator
110 bool isC2y() const { return Flags & C2y; } in isC2y()
H A DLangStandards.def101 // C2y modes
103 C, "Working Draft for ISO C2y",
104 LineComment | C99 | C11 | C17 | C23 | C2y | Digraphs | HexFloat)
106 C, "Working Draft for ISO C2y with GNU extensions",
107 LineComment | C99 | C11 | C17 | C23 | C2y | Digraphs | GNUMode | HexFloat)
H A DFeatures.def220 // C2y features
221 FEATURE(c_countof, LangOpts.C2y)
330 // C2y features supported by other languages as extensions
331 EXTENSION(c_countof, !LangOpts.C2y && !LangOpts.CPlusPlus)
H A DDiagnosticParseKinds.td164 "passing a type argument as the first operand to '_Generic' is a C2y "
165 "extension">, InGroup<C2y>;
168 "with C standards before C2y">, InGroup<CPre2yCompat>, DefaultIgnore;
175 "'%0' is a C2y extension">, InGroup<C2y>;
183 "'%0' is incompatible with C standards before C2y">,
214 "case ranges are incompatible with C standards before C2y">,
217 "case ranges are a C2y extension">, InGroup<C2y>;
H A DDiagnosticLexKinds.td145 "%select{delimited|named}0 escape sequences are a %select{C++23|C2y|Clang}1 "
151 "delimited escape sequences are incompatible with C standards before C2y">,
254 "octal integer literals are a C2y extension">, InGroup<C2y>;
259 "octal integer literals are incompatible with standards before C2y">,
H A DLangOptions.def45 LANGOPT(C2y , 1, 0, NotCompatible, "C2y")
H A DTokenKinds.def339 // Note, C2y removed support for _Imaginary; we retain it as a keyword because
353 // C2y
H A DDiagnosticGroups.td1393 // A warning group for warnings about using C2y features as extensions.
1394 def C2y : DiagGroup<"c2y-extensions">;
H A DDiagnosticSemaKinds.td314 "imaginary constants are incompatible with C standards before C2y">,
317 "imaginary constants are a C2y extension">, InGroup<C2y>;
3699 "'alignof' on an incomplete array type is a C2y extension">,
3700 InGroup<C2y>;
3703 "before C2y">, InGroup<CPre2yCompat>, DefaultIgnore;
8065 "'%select{--|++}0' on an object of complex type is a C2y extension">,
8066 InGroup<C2y>;
8069 "standards before C2y">, InGroup<CPre2yCompat>, DefaultIgnore;
10715 "incomplete type %0 in a '_Generic' association is a C2y extension">,
10716 InGroup<C2y>;
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DLangOptions.cpp117 Opts.C2y = Std.isC2y(); in setLangDefaults()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLiteralSupport.cpp1426 if (LangOpts.C2y) in ParseNumberStartingWithZero()
1454 if (radix == 8 && LangOpts.C2y && !hadError && !IsSingleZero) in ParseNumberStartingWithZero()
H A DLexer.cpp3396 else if (Opts.C2y && !Named) in DiagnoseDelimitedOrNamedEscapeSequence()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExpr.cpp2249 else if (getLangOpts().C2y && OpTok.is(tok::kw__Countof)) in ParseUnaryExprOrTypeTraitExpression()
2288 if (!getLangOpts().C2y) in ParseUnaryExprOrTypeTraitExpression()
3022 Diag(Loc, getLangOpts().C2y ? diag::warn_c2y_compat_generic_with_type_arg in ParseGenericSelectionExpression()
H A DParseStmt.cpp821 else if (getLangOpts().C2y) in ParseCaseStatement()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp462 if (LangOpts.C2y) in InitializeStandardPredefinedMacros()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLookup.cpp5086 if (SemaRef.getLangOpts().C99 && !SemaRef.getLangOpts().C2y) in AddKeywordsToConsumer()
H A DSemaStmt.cpp4066 (!getLangOpts().CPlusPlus && !getLangOpts().C2y)) { in BuildReturnStmt()
H A DSemaExpr.cpp1826 D = LangOpts.C2y ? diag::warn_c2y_compat_assoc_type_incomplete in CreateGenericSelectionExpr()
4136 else if (getLangOpts().C2y) in ActOnNumericConstant()
4597 Diag(OpLoc, getLangOpts().C2y in CheckUnaryExprOrTypeTraitOperand()
14225 S.Diag(OpLoc, S.getLangOpts().C2y ? diag::warn_c2y_compat_increment_complex in CheckIncrementDecrementOperand()
H A DSemaType.cpp1507 if (!S.getLangOpts().CPlusPlus && !S.getLangOpts().C2y) in ConvertDeclSpecToType()
H A DSemaCodeComplete.cpp1810 if (!LangOpts.C2y) in AddTypeSpecifierResults()
H A DSemaDecl.cpp19842 if (NonBitFields == 0 && !getLangOpts().CPlusPlus && !getLangOpts().C2y) { in ActOnFields()