/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/ |
H A D | Features.def | 191 // FEATURE(raw_invocation_type, LangOpts.CPlusPlus) 195 FEATURE(has_nothrow_assign, LangOpts.CPlusPlus) 196 FEATURE(has_nothrow_copy, LangOpts.CPlusPlus) 197 FEATURE(has_nothrow_constructor, LangOpts.CPlusPlus) 198 FEATURE(has_trivial_assign, LangOpts.CPlusPlus) 199 FEATURE(has_trivial_copy, LangOpts.CPlusPlus) 200 FEATURE(has_trivial_constructor, LangOpts.CPlusPlus) 201 FEATURE(has_trivial_destructor, LangOpts.CPlusPlus) 202 FEATURE(has_virtual_destructor, LangOpts.CPlusPlus) 203 FEATURE(is_abstract, LangOpts.CPlusPlus) [all …]
|
H A D | LangStandards.def | 102 LineComment | CPlusPlus | Digraphs) 107 LineComment | CPlusPlus | Digraphs | GNUMode) 112 LineComment | CPlusPlus | CPlusPlus11 | Digraphs) 117 LineComment | CPlusPlus | CPlusPlus11 | Digraphs | GNUMode) 122 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | Digraphs) 127 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | Digraphs | 133 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | CPlusPlus17 | 139 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | CPlusPlus17 | 145 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | CPlusPlus17 | 151 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | CPlusPlus17 | [all …]
|
H A D | LangStandard.h | 48 CPlusPlus = (1 << 5), enumerator 102 bool isCPlusPlus() const { return Flags & CPlusPlus; } in isCPlusPlus()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
H A D | ExprClassification.cpp | 43 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyImpl() 93 return Lang.CPlusPlus ? ClassifyTemporary(E->getType()) : Cl::CL_PRValue; in ClassifyExprValueKind() 272 return Lang.CPlusPlus ? Cl::CL_LValue : Cl::CL_PRValue; in ClassifyInternal() 308 if (Lang.CPlusPlus) in ClassifyInternal() 363 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal() 371 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal() 378 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal() 464 (Ctx.getLangOpts().CPlusPlus && in ClassifyDecl() 476 if (!Ctx.getLangOpts().CPlusPlus) return Cl::CL_PRValue; in ClassifyUnnamed() 497 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyMemberExpr() [all …]
|
H A D | Decl.cpp | 534 if (!Opts.CPlusPlus || !Opts.InlineVisibilityHidden) in useInlineVisibilityHidden() 652 if (Context.getLangOpts().CPlusPlus && in getLVForNamespaceScopeDecl() 783 if (Context.getLangOpts().CPlusPlus && !isFirstInExternCContext(Var) && in getLVForNamespaceScopeDecl() 824 if (Context.getLangOpts().CPlusPlus && !isFirstInExternCContext(Function)) { in getLVForNamespaceScopeDecl() 1300 if (!Context.getLangOpts().CPlusPlus) in getLVForLocalDecl() 1379 if (D->getASTContext().getLangOpts().CPlusPlus) in computeLVForDecl() 1490 if (!Opts.CPlusPlus || Opts.MicrosoftExt) in getLVForDecl() 2078 if (!Context.getLangOpts().CPlusPlus) in getDeclLanguageLinkage() 2102 assert(D.getASTContext().getLangOpts().CPlusPlus); in isDeclExternC() 2205 if (!C.getLangOpts().CPlusPlus && isFileVarDecl()) in isThisDeclarationADefinition() [all …]
|
H A D | TemplateName.cpp | 262 LO.CPlusPlus = true; in operator <<() 273 LO.CPlusPlus = true; in dump()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Basic/Targets/ |
H A D | OSTargets.h | 275 if (Opts.CPlusPlus) in getOSDefines() 332 if (Opts.CPlusPlus) in getOSDefines() 391 if (Opts.CPlusPlus) in getOSDefines() 589 if (Opts.CPlusPlus) in getOSDefines() 634 if (Opts.CPlusPlus) { in getOSDefines() 712 if (Opts.CPlusPlus && Opts.WChar) { in getOSDefines() 763 if (Opts.CPlusPlus) { in getOSDefines() 774 if (Opts.CPlusPlus && Opts.WChar) { in getOSDefines() 824 if (Opts.CPlusPlus) in getOSDefines() 879 if (Opts.CPlusPlus) in getOSDefines() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Basic/ |
H A D | IdentifierTable.cpp | 130 if (LangOpts.CPlusPlus && (Flags & KEYCXX)) return KS_Enabled; in getKeywordStatus() 147 if (!LangOpts.CPlusPlus && (Flags & KEYNOCXX)) return KS_Enabled; in getKeywordStatus() 155 if (LangOpts.CPlusPlus && (Flags & KEYALLCXX)) return KS_Future; in getKeywordStatus() 156 if (LangOpts.CPlusPlus && !LangOpts.CPlusPlus20 && (Flags & CHAR8SUPPORT)) in getKeywordStatus() 265 if (!LangOpts.CPlusPlus || !isKeyword(LangOpts)) in isCPlusPlusKeyword() 270 LangOptsNoCPP.CPlusPlus = false; in isCPlusPlusKeyword() 303 if (LangOpts.CPlusPlus && Name.contains("__")) in isReserved()
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
H A D | PrettyPrinter.h | 63 SuppressTagKeyword(LO.CPlusPlus), IncludeTagDefinition(false), in PrintingPolicy() 71 UnderscoreAlignof(LO.C11), UseVoidForZeroParams(!LO.CPlusPlus), in PrintingPolicy()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
H A D | VirtualCallChecker.cpp | 229 return LO.CPlusPlus; in shouldRegisterVirtualCallModeling() 234 return LO.CPlusPlus; in shouldRegisterPureVirtualCallChecker() 239 return LO.CPlusPlus; in shouldRegisterVirtualCallChecker()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/ |
H A D | Parser.cpp | 194 if (Kind == OutsideFunction && getLangOpts().CPlusPlus) { in ConsumeExtraSemi() 592 !getLangOpts().CPlusPlus && !getLangOpts().IsHeaderFile) in ParseFirstTopLevelDecl() 912 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration() 921 if (getLangOpts().CPlusPlus) { in ParseExternalDeclaration() 942 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration() 984 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isDeclarationAfterDeclarator() 995 (getLangOpts().CPlusPlus && in isDeclarationAfterDeclarator() 1007 if (!getLangOpts().CPlusPlus && in isStartOfFunctionDefinition() 1011 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isStartOfFunctionDefinition() 1127 if (getLangOpts().CPlusPlus && isTokenStringLiteral() && in ParseDeclOrFunctionDefInternal() [all …]
|
H A D | ParseStmt.cpp | 216 if ((getLangOpts().CPlusPlus || getLangOpts().MicrosoftExt || in ParseStatementOrDeclarationAfterAttributes() 649 if (!getLangOpts().CPlusPlus || Tok.is(tok::semi)) in ParseLabeledStatement() 1191 if (getLangOpts().CPlusPlus) in ParseParenExprOrCondition() 1355 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseIfStatement() 1510 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseSwitchStatement() 1598 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseWhileStatement() 1684 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseDoStatement() 1785 bool C99orCXXorObjC = getLangOpts().C99 || getLangOpts().CPlusPlus || in ParseForStatement() 1842 } else if (getLangOpts().CPlusPlus && Tok.is(tok::identifier) && in ParseForStatement() 1872 bool MightBeForRangeStmt = getLangOpts().CPlusPlus; in ParseForStatement() [all …]
|
H A D | ParseDecl.cpp | 1715 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_namespace)) { in ParseDeclaration() 1822 return getLangOpts().CPlusPlus; in MightBeDeclarator() 1829 return Context == DeclaratorContext::Member || getLangOpts().CPlusPlus; in MightBeDeclarator() 1856 (getLangOpts().CPlusPlus && Context == DeclaratorContext::File); in MightBeDeclarator() 2220 if (ThisDecl && P.getLangOpts().CPlusPlus) { in ParseDeclarationAfterDeclaratorAndAttributes() 2231 if (ThisDecl && P.getLangOpts().CPlusPlus) { in ParseDeclarationAfterDeclaratorAndAttributes() 2574 if (!isTypeSpecifier(DSC) && !getLangOpts().CPlusPlus && in ParseImplicitInt() 2587 if (getLangOpts().CPlusPlus && in ParseImplicitInt() 2596 if (getLangOpts().CPlusPlus && (!SS || SS->isEmpty()) && in ParseImplicitInt() 2645 << TokenName << TagName << getLangOpts().CPlusPlus in ParseImplicitInt() [all …]
|
H A D | ParseExpr.cpp | 453 if (getLangOpts().ObjC && getLangOpts().CPlusPlus && in ParseRHSOfBinaryExpression() 543 } else if (getLangOpts().CPlusPlus && NextTokPrec <= prec::Conditional) in ParseRHSOfBinaryExpression() 656 if (!getLangOpts().CPlusPlus) in ParseRHSOfBinaryExpression() 945 if (!getLangOpts().CPlusPlus) in ParseCastExpression() 1045 if (getLangOpts().CPlusPlus) { in ParseCastExpression() 1166 !(getLangOpts().CPlusPlus && Tok.is(tok::kw_class))) { in ParseCastExpression() 1330 Res = ParseCastExpression(getLangOpts().CPlusPlus ? in ParseCastExpression() 1528 if (!getLangOpts().CPlusPlus) { in ParseCastExpression() 2092 if (getLangOpts().CPlusPlus && !LHS.isInvalid()) { in ParsePostfixExpressionSuffix() 2128 if (getLangOpts().CPlusPlus && OrigLHS) { in ParsePostfixExpressionSuffix() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
H A D | SemaDecl.cpp | 156 return getLangOpts().CPlusPlus; in isSimpleTypeSpecifier() 397 !(getLangOpts().CPlusPlus && NewSSPtr && in getTypeName() 725 if (getLangOpts().CPlusPlus && !IsTemplateName) { in DiagnoseUnknownTypeName() 774 bool CheckTemplate = R.getSema().getLangOpts().CPlusPlus && in isResultTypeOrTemplate() 820 << Name << TagName << SemaRef.getLangOpts().CPlusPlus in isTagTypeWithMissingTag() 862 if (getLangOpts().CPlusPlus && SS.isSet() && in ClassifyName() 912 if (getLangOpts().CPlusPlus) in ClassifyName() 944 if (!getLangOpts().CPlusPlus && !SecondTry && in ClassifyName() 961 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName() 1043 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName() [all …]
|
H A D | SemaExpr.cpp | 150 if (S.getLangOpts().CPlusPlus) in diagnoseUseOfInternalDeclInInlineFunction() 217 if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) { in DiagnoseUseOfDecl() 517 if (getLangOpts().C99 || getLangOpts().CPlusPlus || E->isLValue()) in DefaultFunctionArrayConversion() 628 if (getLangOpts().CPlusPlus && in DefaultLvalueConversion() 849 if (getLangOpts().CPlusPlus && E->isGLValue() && !isUnevaluatedContext()) { in DefaultArgumentPromotion() 1016 if (!getLangOpts().CPlusPlus && in DefaultVariadicArgumentPromotion() 1822 if (getLangOpts().CPlusPlus && !getLangOpts().CPlusPlus20 && in ActOnStringLiteral() 2308 if (getLangOpts().CPlusPlus && ND->isCXXClassMember()) { in DiagnoseEmptyLookup() 2522 if (R.empty() && HasTrailingLParen && II && !getLangOpts().CPlusPlus) { in ActOnIdExpression() 3075 if (!getLangOpts().CPlusPlus) in UseArgumentDependentLookup() [all …]
|
H A D | SemaCXXScopeSpec.cpp | 180 assert(getLangOpts().CPlusPlus && "Only callable in C++"); in getCurrentInstantiationOf() 599 << IdInfo.Identifier << getLangOpts().CPlusPlus in BuildCXXNestedNameSpecifier() 609 << IdInfo.Identifier << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier() 815 << Context.getTypeDeclType(TD) << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier() 818 << IdInfo.Identifier << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier() 860 << T << getLangOpts().CPlusPlus; in ActOnCXXNestedNameSpecifierDecltype()
|
H A D | SemaLookup.cpp | 210 bool CPlusPlus, in getIDNS() argument 220 if (CPlusPlus) { in getIDNS() 237 if (CPlusPlus) { in getIDNS() 258 if (CPlusPlus) in getIDNS() 299 IDNS = getIDNS(LookupKind, getSema().getLangOpts().CPlusPlus, in configure() 910 if (getLangOpts().CPlusPlus && NameKind == Sema::LookupOrdinaryName) { in LookupBuiltin() 934 if ((getLangOpts().CPlusPlus || getLangOpts().OpenCL) && in LookupBuiltin() 1091 if (S.getLangOpts().CPlusPlus) in LookupDirect() 1246 assert(getLangOpts().CPlusPlus && "Can perform only C++ lookup"); in CppLookupName() 1723 (isa<FunctionDecl>(DC) && !SemaRef.getLangOpts().CPlusPlus)) in isVisibleSlow() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/ |
H A D | InitHeaderSearch.cpp | 455 if (Lang.CPlusPlus && !Lang.AsmPreprocessor && in AddDefaultIncludePaths() 577 (!Lang.ObjC && !Lang.CPlusPlus && Include.first == CSystem) || in Realize() 578 (/*FIXME !Lang.ObjC && */ Lang.CPlusPlus && in Realize() 580 (Lang.ObjC && !Lang.CPlusPlus && Include.first == ObjCSystem) || in Realize() 581 (Lang.ObjC && Lang.CPlusPlus && Include.first == ObjCXXSystem)) in Realize()
|
H A D | InitPreprocessor.cpp | 373 if (!LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros() 435 if (LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros() 664 if (LangOpts.CPlusPlus) { in InitializePredefinedMacros() 765 if (LangOpts.CPlusPlus) in InitializePredefinedMacros() 800 if (!LangOpts.MSVCCompat && LangOpts.CPlusPlus) in InitializePredefinedMacros() 1026 if (LangOpts.GNUInline || LangOpts.CPlusPlus) in InitializePredefinedMacros() 1176 if (TI.hasInt128Type() && LangOpts.CPlusPlus && LangOpts.GNUMode) { in InitializePredefinedMacros() 1221 if (LangOpts.ObjC && LangOpts.CPlusPlus && in InitializePreprocessor()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/ |
H A D | TokenConcatenation.cpp | 270 (PP.getLangOpts().CPlusPlus && FirstChar == '*'); in AvoidConcat() 289 (PP.getLangOpts().CPlusPlus && FirstChar == ':'); in AvoidConcat() 293 return PP.getLangOpts().CPlusPlus && FirstChar == '*'; in AvoidConcat()
|
H A D | Lexer.cpp | 1443 } else if (LangOpts.CPlusPlus) { in isAllowedIDChar() 1462 } else if (LangOpts.CPlusPlus) { in isAllowedInitiallyIDChar() 1796 Diag(CurPtr, getLangOpts().CPlusPlus in LexNumericConstant() 1822 assert(getLangOpts().CPlusPlus); in LexUDSuffix() 1921 Diag(BufferPtr, getLangOpts().CPlusPlus in LexStringLiteral() 1957 if (getLangOpts().CPlusPlus) in LexStringLiteral() 2041 if (getLangOpts().CPlusPlus) in LexRawStringLiteral() 2137 Diag(BufferPtr, getLangOpts().CPlusPlus in LexCharConstant() 2179 if (getLangOpts().CPlusPlus) in LexCharConstant() 3005 if (!LangOpts.CPlusPlus && !LangOpts.C99) { in tryReadUCN() [all …]
|
H A D | LiteralSupport.cpp | 337 if (!Features.CPlusPlus && !Features.C99 && Diags) in ProcessUCNEscape() 911 << LangOpts.CPlusPlus << 1; in ParseNumberStartingWithZero() 938 Diags.Report(TokLoc, LangOpts.CPlusPlus in ParseNumberStartingWithZero() 947 << LangOpts.CPlusPlus << 0; in ParseNumberStartingWithZero() 958 : LangOpts.CPlusPlus ? diag::ext_binary_literal_cxx14 in ParseNumberStartingWithZero() 1788 unsigned MaxChars = Features.CPlusPlus? 65536 : Features.C99 ? 4095 : 509; in init() 1794 << (Features.CPlusPlus ? 2 : Features.C99 ? 1 : 0) in init()
|
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/ |
H A D | CIndexCodeCompletion.cpp | 401 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind() 414 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind() 425 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind() 440 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind() 512 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
H A D | CodeGenTBAA.cpp | 49 if (Features.CPlusPlus) in getRoot() 203 if (!Features.CPlusPlus || !ETy->getDecl()->isExternallyVisible()) in getTypeInfoHelper() 356 if (Features.CPlusPlus) { in getBaseTypeInfoHelper()
|