/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | Features.def | 219 // FEATURE(raw_invocation_type, LangOpts.CPlusPlus) 223 FEATURE(has_nothrow_assign, LangOpts.CPlusPlus) 224 FEATURE(has_nothrow_copy, LangOpts.CPlusPlus) 225 FEATURE(has_nothrow_constructor, LangOpts.CPlusPlus) 226 FEATURE(has_trivial_assign, LangOpts.CPlusPlus) 227 FEATURE(has_trivial_copy, LangOpts.CPlusPlus) 228 FEATURE(has_trivial_constructor, LangOpts.CPlusPlus) 229 FEATURE(has_trivial_destructor, LangOpts.CPlusPlus) 230 FEATURE(has_virtual_destructor, LangOpts.CPlusPlus) 231 FEATURE(is_abstract, LangOpts.CPlusPlus) [all …]
|
H A D | LangStandards.def | 114 LineComment | CPlusPlus | Digraphs) 119 LineComment | CPlusPlus | Digraphs | GNUMode) 124 LineComment | CPlusPlus | CPlusPlus11 | Digraphs) 129 LineComment | CPlusPlus | CPlusPlus11 | Digraphs | GNUMode) 134 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | Digraphs) 139 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | Digraphs | 145 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | CPlusPlus17 | 151 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | CPlusPlus17 | 157 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | CPlusPlus17 | 163 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | CPlusPlus17 | [all …]
|
H A D | LangStandard.h | 56 CPlusPlus = (1 << 6), enumerator 114 bool isCPlusPlus() const { return Flags & CPlusPlus; } in isCPlusPlus()
|
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | IdentifierTable.cpp | 146 return !LangOpts.CPlusPlus ? KS_Future : KS_Unknown; in getKeywordStatusHelper() 150 return !LangOpts.CPlusPlus ? KS_Future : KS_Unknown; in getKeywordStatusHelper() 152 return LangOpts.CPlusPlus ? KS_Enabled : KS_Unknown; in getKeywordStatusHelper() 156 return LangOpts.CPlusPlus ? KS_Future : KS_Unknown; in getKeywordStatusHelper() 160 return LangOpts.CPlusPlus ? KS_Future : KS_Unknown; in getKeywordStatusHelper() 167 return !LangOpts.CPlusPlus ? KS_Future : KS_Unknown; in getKeywordStatusHelper() 182 if (LangOpts.CPlusPlus) return KS_Future; in getKeywordStatusHelper() 207 return LangOpts.CPlusPlus ? KS_Unknown : KS_Enabled; in getKeywordStatusHelper() 357 if (!LangOpts.CPlusPlus || !isKeyword(LangOpts)) in isCPlusPlusKeyword() 362 LangOptsNoCPP.CPlusPlus = false; in isCPlusPlusKeyword() [all …]
|
H A D | LangOptions.cpp | 116 Opts.CPlusPlus = Std.isCPlusPlus(); in setLangDefaults() 168 Opts.OpenCLCPlusPlus = Opts.CPlusPlus; in setLangDefaults() 207 Opts.Bool = Opts.OpenCL || Opts.CPlusPlus || Opts.C23; in setLangDefaults()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprClassification.cpp | 43 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyImpl() 99 return Lang.CPlusPlus ? ClassifyTemporary(E->getType()) : Cl::CL_PRValue; in ClassifyExprValueKind() 294 return Lang.CPlusPlus ? Cl::CL_LValue : Cl::CL_PRValue; in ClassifyInternal() 330 if (Lang.CPlusPlus) in ClassifyInternal() 385 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal() 393 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal() 400 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal() 497 (Ctx.getLangOpts().CPlusPlus && in ClassifyDecl() 508 if (!Ctx.getLangOpts().CPlusPlus) return Cl::CL_PRValue; in ClassifyUnnamed() 529 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyMemberExpr() [all …]
|
H A D | Decl.cpp | 549 if (!Opts.CPlusPlus || !Opts.InlineVisibilityHidden) in useInlineVisibilityHidden() 643 if (Context.getLangOpts().CPlusPlus && Var->getType().isConstQualified() && in getLVForNamespaceScopeDecl() 774 if (Context.getLangOpts().CPlusPlus && !isFirstInExternCContext(Var) && in getLVForNamespaceScopeDecl() 825 if (Context.getLangOpts().CPlusPlus && !isFirstInExternCContext(Function)) { in getLVForNamespaceScopeDecl() 1097 if (!LangOpts.CPlusPlus || !getIdentifier() || in isPlaceholderVar() 1401 if (!Context.getLangOpts().CPlusPlus) in getLVForLocalDecl() 1481 if (D->getASTContext().getLangOpts().CPlusPlus) in computeLVForDecl() 1592 if (!Opts.CPlusPlus || Opts.MicrosoftExt) in getLVForDecl() 2192 if (!D.getASTContext().getLangOpts().CPlusPlus) in getDeclLanguageLinkage() 2216 assert(D.getASTContext().getLangOpts().CPlusPlus); in isDeclExternC() [all …]
|
/freebsd/lib/clang/liblldb/ |
H A D | Makefile | 403 SRCS+= Plugins/Language/CPlusPlus/BlockPointer.cpp 404 SRCS+= Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp 405 SRCS+= Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp 406 SRCS+= Plugins/Language/CPlusPlus/Coroutines.cpp 407 SRCS+= Plugins/Language/CPlusPlus/CxxStringTypes.cpp 408 SRCS+= Plugins/Language/CPlusPlus/GenericBitset.cpp 409 SRCS+= Plugins/Language/CPlusPlus/GenericOptional.cpp 410 SRCS+= Plugins/Language/CPlusPlus/LibCxx.cpp 411 SRCS+= Plugins/Language/CPlusPlus/LibCxxAtomic.cpp 412 SRCS+= Plugins/Language/CPlusPlus/LibCxxInitializerList.cpp [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | PrettyPrinter.h | 61 SuppressTagKeyword(LO.CPlusPlus), IncludeTagDefinition(false), in PrintingPolicy() 69 Nullptr(LO.CPlusPlus11 || LO.C23), NullptrTypeInNamespace(LO.CPlusPlus), in PrintingPolicy() 71 UseVoidForZeroParams(!LO.CPlusPlus), in PrintingPolicy()
|
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/ |
H A D | OSTargets.h | 251 if (Opts.CPlusPlus) in getOSDefines() 304 if (Opts.CPlusPlus) in getOSDefines() 336 if (Opts.CPlusPlus) in getOSDefines() 564 if (Opts.CPlusPlus) in getOSDefines() 608 if (Opts.CPlusPlus) { in getOSDefines() 704 if (Opts.CPlusPlus && Opts.WChar) { in getOSDefines() 759 if (Opts.CPlusPlus && Opts.WChar) { in getOSDefines() 812 if (Opts.CPlusPlus) in getOSDefines() 865 if (Opts.CPlusPlus) in getOSDefines() 892 if (Opts.CPlusPlus) in getOSDefines() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | LiteralSupport.cpp | 357 << /*delimited*/ 0 << (Features.CPlusPlus ? 1 : 0); in ProcessCharEscape() 690 : Features.CPlusPlus in ProcessUCNEscape() 697 : Features.CPlusPlus in ProcessUCNEscape() 705 if (!Features.CPlusPlus && !Features.C99 && Diags) in ProcessUCNEscape() 713 << (IsNamedEscapeSequence ? 1 : 0) << (Features.CPlusPlus ? 1 : 0); in ProcessUCNEscape() 1129 if (LangOpts.CPlusPlus && s + 2 < ThisTokEnd && in NumericLiteralParser() 1158 if ((!LangOpts.CPlusPlus || DoubleUnderscore) && s + 1 < ThisTokEnd && in NumericLiteralParser() 1346 << LangOpts.CPlusPlus << 1; in ParseNumberStartingWithZero() 1373 Diags.Report(TokLoc, LangOpts.CPlusPlus in ParseNumberStartingWithZero() 1382 << LangOpts.CPlusPlus << 0; in ParseNumberStartingWithZero() [all …]
|
H A D | TokenConcatenation.cpp | 273 (PP.getLangOpts().CPlusPlus && FirstChar == '*'); in AvoidConcat() 292 (PP.getLangOpts().CPlusPlus && FirstChar == ':'); in AvoidConcat() 296 return PP.getLangOpts().CPlusPlus && FirstChar == '*'; in AvoidConcat()
|
H A D | Lexer.cpp | 1565 } else if (LangOpts.CPlusPlus || LangOpts.C23) { in isAllowedIDChar() 1594 if (LangOpts.CPlusPlus || LangOpts.C23) { in isAllowedInitiallyIDChar() 2075 Diag(CurPtr, LangOpts.CPlusPlus in LexNumericConstant() 2101 assert(LangOpts.CPlusPlus); in LexUDSuffix() 2201 Diag(BufferPtr, LangOpts.CPlusPlus ? diag::warn_cxx98_compat_unicode_literal in LexStringLiteral() 2236 if (LangOpts.CPlusPlus) in LexStringLiteral() 2331 if (LangOpts.CPlusPlus) in LexRawStringLiteral() 2427 Diag(BufferPtr, LangOpts.CPlusPlus in LexCharConstant() 2469 if (LangOpts.CPlusPlus) in LexCharConstant() 3403 if (!LangOpts.CPlusPlus && !LangOpts.C99) { in tryReadNumericUCN() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaDecl.cpp | 417 !(getLangOpts().CPlusPlus && NewSSPtr && in getTypeName() 746 if (getLangOpts().CPlusPlus && !IsTemplateName) { in DiagnoseUnknownTypeName() 795 bool CheckTemplate = R.getSema().getLangOpts().CPlusPlus && in isResultTypeOrTemplate() 841 << Name << TagName << SemaRef.getLangOpts().CPlusPlus in isTagTypeWithMissingTag() 868 if (getLangOpts().CPlusPlus && SS.isSet() && in ClassifyName() 919 if (getLangOpts().CPlusPlus) in ClassifyName() 955 if (!getLangOpts().CPlusPlus && !SecondTry && in ClassifyName() 972 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName() 1054 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName() 1079 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName() [all …]
|
H A D | SemaExpr.cpp | 166 if (S.getLangOpts().CPlusPlus) in diagnoseUseOfInternalDeclInInlineFunction() 222 if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) { in DiagnoseUseOfDecl() 542 if (getLangOpts().C99 || getLangOpts().CPlusPlus || E->isLValue()) { in DefaultFunctionArrayConversion() 658 if (getLangOpts().CPlusPlus) { in DefaultLvalueConversion() 912 if (getLangOpts().CPlusPlus && E->isGLValue() && !isUnevaluatedContext()) { in DefaultArgumentPromotion() 1079 if (!getLangOpts().CPlusPlus && in DefaultVariadicArgumentPromotion() 1750 (!LangOpts.CPlusPlus || !QT->isRecordType())) in CreateGenericSelectionExpr() 2072 (getLangOpts().CPlusPlus in ActOnStringLiteral() 2075 Diag(StringTokLocs.front(), getLangOpts().CPlusPlus in ActOnStringLiteral() 2540 if (getLangOpts().CPlusPlus && ND->isCXXClassMember()) { in DiagnoseEmptyLookup() [all …]
|
H A D | SemaCXXScopeSpec.cpp | 174 assert(getLangOpts().CPlusPlus && "Only callable in C++"); in getCurrentInstantiationOf() 524 << IdInfo.Identifier << getLangOpts().CPlusPlus in BuildCXXNestedNameSpecifier() 534 << IdInfo.Identifier << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier() 752 << Context.getTypeDeclType(TD) << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier() 759 << IdInfo.Identifier << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier() 800 << T << getLangOpts().CPlusPlus; in ActOnCXXNestedNameSpecifierDecltype()
|
H A D | SemaLookup.cpp | 215 bool CPlusPlus, in getIDNS() argument 225 if (CPlusPlus) { in getIDNS() 242 if (CPlusPlus) { in getIDNS() 263 if (CPlusPlus) in getIDNS() 304 IDNS = getIDNS(LookupKind, getSema().getLangOpts().CPlusPlus, in configure() 927 if (getLangOpts().CPlusPlus && NameKind == Sema::LookupOrdinaryName) { in LookupBuiltin() 961 if ((getLangOpts().CPlusPlus || getLangOpts().OpenCL) && in LookupBuiltin() 1118 if (S.getLangOpts().CPlusPlus) in LookupDirect() 1272 assert(getLangOpts().CPlusPlus && "Can perform only C++ lookup"); in CppLookupName() 1857 (isa<FunctionDecl>(DC) && !SemaRef.getLangOpts().CPlusPlus)) in isAcceptableSlow() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | Parser.cpp | 202 if (Kind == OutsideFunction && getLangOpts().CPlusPlus) { in ConsumeExtraSemi() 616 !getLangOpts().CPlusPlus && !getLangOpts().IsHeaderFile) in ParseFirstTopLevelDecl() 1006 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration() 1016 if (getLangOpts().CPlusPlus) { in ParseExternalDeclaration() 1039 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration() 1086 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isDeclarationAfterDeclarator() 1097 (getLangOpts().CPlusPlus && in isDeclarationAfterDeclarator() 1109 if (!getLangOpts().CPlusPlus && in isStartOfFunctionDefinition() 1113 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isStartOfFunctionDefinition() 1241 if (getLangOpts().CPlusPlus && isTokenStringLiteral() && in ParseDeclOrFunctionDefInternal() [all …]
|
H A D | ParseStmt.cpp | 250 if ((getLangOpts().CPlusPlus || getLangOpts().MicrosoftExt || in ParseStatementOrDeclarationAfterAttributes() 724 if (!P.getLangOpts().CPlusPlus && !P.getLangOpts().MicrosoftExt && in DiagnoseLabelFollowedByDecl() 773 if (!getLangOpts().CPlusPlus || Tok.is(tok::semi)) in ParseLabeledStatement() 1116 if (getLangOpts().CPlusPlus) { in DiagnoseLabelAtEndOfCompoundStatement() 1348 if (getLangOpts().CPlusPlus) { in ParseParenExprOrCondition() 1512 if (getLangOpts().CPlusPlus) { in ParseIfStatement() 1536 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseIfStatement() 1733 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseSwitchStatement() 1821 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseWhileStatement() 1907 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseDoStatement() [all …]
|
H A D | ParseDecl.cpp | 2028 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_namespace)) { in ParseDeclaration() 2156 return getLangOpts().CPlusPlus; in MightBeDeclarator() 2163 return Context == DeclaratorContext::Member || getLangOpts().CPlusPlus; in MightBeDeclarator() 2190 (getLangOpts().CPlusPlus && Context == DeclaratorContext::File); in MightBeDeclarator() 2663 if (ThisDecl && P.getLangOpts().CPlusPlus) { in ParseDeclarationAfterDeclaratorAndAttributes() 2676 if (ThisDecl && P.getLangOpts().CPlusPlus) { in ParseDeclarationAfterDeclaratorAndAttributes() 3039 if (getLangOpts().CPlusPlus && in ParseImplicitInt() 3048 if (getLangOpts().CPlusPlus && (!SS || SS->isEmpty()) && in ParseImplicitInt() 3097 << TokenName << TagName << getLangOpts().CPlusPlus in ParseImplicitInt() 3186 bool IsTemplateName = getLangOpts().CPlusPlus && NextToken().is(tok::less); in ParseImplicitInt() [all …]
|
H A D | ParseExpr.cpp | 484 if (getLangOpts().ObjC && getLangOpts().CPlusPlus && in ParseRHSOfBinaryExpression() 574 } else if (getLangOpts().CPlusPlus && NextTokPrec <= prec::Conditional) in ParseRHSOfBinaryExpression() 687 if (!getLangOpts().CPlusPlus) in ParseRHSOfBinaryExpression() 1082 assert(getLangOpts().CPlusPlus && "not possible to get here in C"); in ParseCastExpression() 1143 if (getLangOpts().CPlusPlus) in ParseCastExpression() 1194 if (getLangOpts().CPlusPlus) { in ParseCastExpression() 1259 !(getLangOpts().CPlusPlus && Tok.is(tok::kw_class))) { in ParseCastExpression() 1435 Res = ParseCastExpression(getLangOpts().CPlusPlus ? in ParseCastExpression() 1649 if (!getLangOpts().CPlusPlus) { in ParseCastExpression() 1868 if (getLangOpts().CPlusPlus) { in ParseCastExpression() [all …]
|
H A D | ParseInit.cpp | 40 if (!PP.getLangOpts().CPlusPlus) in MayBeDesignationStart() 256 if (getLangOpts().ObjC && getLangOpts().CPlusPlus) { in ParseInitializerWithPotentialDesignator() 484 if (!getLangOpts().CPlusPlus) { in ParseBraceInitializer()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UndefinedNewArraySizeChecker.cpp | 79 return mgr.getLangOpts().CPlusPlus; in shouldRegisterUndefinedNewArraySizeChecker()
|
H A D | PointerIterationChecker.cpp | 100 return LO.CPlusPlus; in shouldRegisterPointerIterationChecker()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | InitPreprocessor.cpp | 455 if (!LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros() 531 if (LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros() 881 if (LangOpts.CPlusPlus) { in InitializePredefinedMacros() 1001 if (LangOpts.CPlusPlus) in InitializePredefinedMacros() 1038 if (!LangOpts.MSVCCompat && LangOpts.CPlusPlus) in InitializePredefinedMacros() 1328 if (LangOpts.GNUInline || LangOpts.CPlusPlus) in InitializePredefinedMacros() 1490 if (TI.hasInt128Type() && LangOpts.CPlusPlus && LangOpts.GNUMode) { in InitializePredefinedMacros() 1557 if (LangOpts.ObjC && LangOpts.CPlusPlus && in InitializePreprocessor()
|