Home
last modified time | relevance | path

Searched refs:CPlusPlus (Results 1 – 25 of 139) sorted by relevance

123456

/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Basic/
DFeatures.def195 // FEATURE(raw_invocation_type, LangOpts.CPlusPlus)
199 FEATURE(has_nothrow_assign, LangOpts.CPlusPlus)
200 FEATURE(has_nothrow_copy, LangOpts.CPlusPlus)
201 FEATURE(has_nothrow_constructor, LangOpts.CPlusPlus)
202 FEATURE(has_trivial_assign, LangOpts.CPlusPlus)
203 FEATURE(has_trivial_copy, LangOpts.CPlusPlus)
204 FEATURE(has_trivial_constructor, LangOpts.CPlusPlus)
205 FEATURE(has_trivial_destructor, LangOpts.CPlusPlus)
206 FEATURE(has_virtual_destructor, LangOpts.CPlusPlus)
207 FEATURE(is_abstract, LangOpts.CPlusPlus)
[all …]
DLangStandards.def102 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 …]
DLangStandard.h48 CPlusPlus = (1 << 5), enumerator
102 bool isCPlusPlus() const { return Flags & CPlusPlus; } in isCPlusPlus()
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DExprClassification.cpp43 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyImpl()
99 return Lang.CPlusPlus ? ClassifyTemporary(E->getType()) : Cl::CL_PRValue; in ClassifyExprValueKind()
278 return Lang.CPlusPlus ? Cl::CL_LValue : Cl::CL_PRValue; in ClassifyInternal()
314 if (Lang.CPlusPlus) in ClassifyInternal()
369 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal()
377 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal()
384 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal()
473 (Ctx.getLangOpts().CPlusPlus && in ClassifyDecl()
485 if (!Ctx.getLangOpts().CPlusPlus) return Cl::CL_PRValue; in ClassifyUnnamed()
506 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyMemberExpr()
[all …]
DTemplateName.cpp262 LO.CPlusPlus = true; in operator <<()
273 LO.CPlusPlus = true; in dump()
DDecl.cpp534 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()
1299 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 …]
/freebsd-12-stable/lib/clang/liblldb/
DMakefile371 SRCS+= Plugins/Language/CPlusPlus/BlockPointer.cpp
372 SRCS+= Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
373 SRCS+= Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
374 SRCS+= Plugins/Language/CPlusPlus/CxxStringTypes.cpp
375 SRCS+= Plugins/Language/CPlusPlus/LibCxx.cpp
376 SRCS+= Plugins/Language/CPlusPlus/LibCxxAtomic.cpp
377 SRCS+= Plugins/Language/CPlusPlus/LibCxxBitset.cpp
378 SRCS+= Plugins/Language/CPlusPlus/LibCxxInitializerList.cpp
379 SRCS+= Plugins/Language/CPlusPlus/LibCxxList.cpp
380 SRCS+= Plugins/Language/CPlusPlus/LibCxxMap.cpp
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Basic/
DIdentifierTable.cpp131 if (LangOpts.CPlusPlus && (Flags & KEYCXX)) return KS_Enabled; in getKeywordStatus()
148 if (!LangOpts.CPlusPlus && (Flags & KEYNOCXX)) return KS_Enabled; in getKeywordStatus()
156 if (LangOpts.CPlusPlus && (Flags & KEYALLCXX)) return KS_Future; in getKeywordStatus()
157 if (LangOpts.CPlusPlus && !LangOpts.CPlusPlus20 && (Flags & CHAR8SUPPORT)) in getKeywordStatus()
268 if (!LangOpts.CPlusPlus || !isKeyword(LangOpts)) in isCPlusPlusKeyword()
273 LangOptsNoCPP.CPlusPlus = false; in isCPlusPlusKeyword()
306 if (LangOpts.CPlusPlus && Name.contains("__")) in isReserved()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Basic/Targets/
DOSTargets.h275 if (Opts.CPlusPlus) in getOSDefines()
332 if (Opts.CPlusPlus) in getOSDefines()
391 if (Opts.CPlusPlus) in getOSDefines()
594 if (Opts.CPlusPlus) in getOSDefines()
639 if (Opts.CPlusPlus) { in getOSDefines()
724 if (Opts.CPlusPlus && Opts.WChar) { in getOSDefines()
775 if (Opts.CPlusPlus) { in getOSDefines()
786 if (Opts.CPlusPlus && Opts.WChar) { in getOSDefines()
835 if (Opts.CPlusPlus) in getOSDefines()
890 if (Opts.CPlusPlus) in getOSDefines()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
DPrettyPrinter.h63 SuppressTagKeyword(LO.CPlusPlus), IncludeTagDefinition(false), in PrintingPolicy()
71 UnderscoreAlignof(LO.C11), UseVoidForZeroParams(!LO.CPlusPlus), in PrintingPolicy()
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DVirtualCallChecker.cpp229 return LO.CPlusPlus; in shouldRegisterVirtualCallModeling()
234 return LO.CPlusPlus; in shouldRegisterPureVirtualCallChecker()
239 return LO.CPlusPlus; in shouldRegisterVirtualCallChecker()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Parse/
DParser.cpp194 if (Kind == OutsideFunction && getLangOpts().CPlusPlus) { in ConsumeExtraSemi()
594 !getLangOpts().CPlusPlus && !getLangOpts().IsHeaderFile) in ParseFirstTopLevelDecl()
915 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration()
924 if (getLangOpts().CPlusPlus) { in ParseExternalDeclaration()
945 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration()
987 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isDeclarationAfterDeclarator()
998 (getLangOpts().CPlusPlus && in isDeclarationAfterDeclarator()
1010 if (!getLangOpts().CPlusPlus && in isStartOfFunctionDefinition()
1014 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isStartOfFunctionDefinition()
1130 if (getLangOpts().CPlusPlus && isTokenStringLiteral() && in ParseDeclOrFunctionDefInternal()
[all …]
DParseDecl.cpp1722 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_namespace)) { in ParseDeclaration()
1829 return getLangOpts().CPlusPlus; in MightBeDeclarator()
1836 return Context == DeclaratorContext::Member || getLangOpts().CPlusPlus; in MightBeDeclarator()
1863 (getLangOpts().CPlusPlus && Context == DeclaratorContext::File); in MightBeDeclarator()
2227 if (ThisDecl && P.getLangOpts().CPlusPlus) { in ParseDeclarationAfterDeclaratorAndAttributes()
2238 if (ThisDecl && P.getLangOpts().CPlusPlus) { in ParseDeclarationAfterDeclaratorAndAttributes()
2581 if (!isTypeSpecifier(DSC) && !getLangOpts().CPlusPlus && in ParseImplicitInt()
2594 if (getLangOpts().CPlusPlus && in ParseImplicitInt()
2603 if (getLangOpts().CPlusPlus && (!SS || SS->isEmpty()) && in ParseImplicitInt()
2652 << TokenName << TagName << getLangOpts().CPlusPlus in ParseImplicitInt()
[all …]
DParseStmt.cpp216 if ((getLangOpts().CPlusPlus || getLangOpts().MicrosoftExt || in ParseStatementOrDeclarationAfterAttributes()
654 if (!getLangOpts().CPlusPlus || Tok.is(tok::semi)) in ParseLabeledStatement()
1196 if (getLangOpts().CPlusPlus) in ParseParenExprOrCondition()
1360 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseIfStatement()
1515 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseSwitchStatement()
1603 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseWhileStatement()
1689 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseDoStatement()
1790 bool C99orCXXorObjC = getLangOpts().C99 || getLangOpts().CPlusPlus || in ParseForStatement()
1847 } else if (getLangOpts().CPlusPlus && Tok.is(tok::identifier) && in ParseForStatement()
1877 bool MightBeForRangeStmt = getLangOpts().CPlusPlus; in ParseForStatement()
[all …]
DParseExpr.cpp453 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()
1531 if (!getLangOpts().CPlusPlus) { in ParseCastExpression()
2095 if (getLangOpts().CPlusPlus && !LHS.isInvalid()) { in ParsePostfixExpressionSuffix()
2131 if (getLangOpts().CPlusPlus && OrigLHS) { in ParsePostfixExpressionSuffix()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
DSemaDecl.cpp156 return getLangOpts().CPlusPlus; in isSimpleTypeSpecifier()
397 !(getLangOpts().CPlusPlus && NewSSPtr && in getTypeName()
733 if (getLangOpts().CPlusPlus && !IsTemplateName) { in DiagnoseUnknownTypeName()
782 bool CheckTemplate = R.getSema().getLangOpts().CPlusPlus && in isResultTypeOrTemplate()
828 << Name << TagName << SemaRef.getLangOpts().CPlusPlus in isTagTypeWithMissingTag()
870 if (getLangOpts().CPlusPlus && SS.isSet() && in ClassifyName()
920 if (getLangOpts().CPlusPlus) in ClassifyName()
952 if (!getLangOpts().CPlusPlus && !SecondTry && in ClassifyName()
969 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
1051 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
[all …]
DSemaCXXScopeSpec.cpp180 assert(getLangOpts().CPlusPlus && "Only callable in C++"); in getCurrentInstantiationOf()
613 << IdInfo.Identifier << getLangOpts().CPlusPlus in BuildCXXNestedNameSpecifier()
623 << IdInfo.Identifier << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier()
829 << Context.getTypeDeclType(TD) << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier()
832 << IdInfo.Identifier << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier()
874 << T << getLangOpts().CPlusPlus; in ActOnCXXNestedNameSpecifierDecltype()
DSemaExpr.cpp155 if (S.getLangOpts().CPlusPlus) in diagnoseUseOfInternalDeclInInlineFunction()
222 if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) { in DiagnoseUseOfDecl()
528 if (getLangOpts().C99 || getLangOpts().CPlusPlus || E->isLValue()) { in DefaultFunctionArrayConversion()
643 if (getLangOpts().CPlusPlus && in DefaultLvalueConversion()
864 if (getLangOpts().CPlusPlus && E->isGLValue() && !isUnevaluatedContext()) { in DefaultArgumentPromotion()
1031 if (!getLangOpts().CPlusPlus && in DefaultVariadicArgumentPromotion()
1832 if (getLangOpts().CPlusPlus && !getLangOpts().CPlusPlus20 && in ActOnStringLiteral()
2318 if (getLangOpts().CPlusPlus && ND->isCXXClassMember()) { in DiagnoseEmptyLookup()
2532 if (R.empty() && HasTrailingLParen && II && !getLangOpts().CPlusPlus) { in ActOnIdExpression()
3085 if (!getLangOpts().CPlusPlus) in UseArgumentDependentLookup()
[all …]
DSemaLookup.cpp210 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 …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Lex/
DTokenConcatenation.cpp270 (PP.getLangOpts().CPlusPlus && FirstChar == '*'); in AvoidConcat()
289 (PP.getLangOpts().CPlusPlus && FirstChar == ':'); in AvoidConcat()
293 return PP.getLangOpts().CPlusPlus && FirstChar == '*'; in AvoidConcat()
DLexer.cpp1458 } else if (LangOpts.CPlusPlus) { in isAllowedIDChar()
1477 } else if (LangOpts.CPlusPlus) { in isAllowedInitiallyIDChar()
1811 Diag(CurPtr, getLangOpts().CPlusPlus in LexNumericConstant()
1837 assert(getLangOpts().CPlusPlus); in LexUDSuffix()
1936 Diag(BufferPtr, getLangOpts().CPlusPlus in LexStringLiteral()
1972 if (getLangOpts().CPlusPlus) in LexStringLiteral()
2056 if (getLangOpts().CPlusPlus) in LexRawStringLiteral()
2152 Diag(BufferPtr, getLangOpts().CPlusPlus in LexCharConstant()
2194 if (getLangOpts().CPlusPlus) in LexCharConstant()
3039 if (!LangOpts.CPlusPlus && !LangOpts.C99) { in tryReadUCN()
[all …]
DLiteralSupport.cpp337 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()
1789 unsigned MaxChars = Features.CPlusPlus? 65536 : Features.C99 ? 4095 : 509; in init()
1795 << (Features.CPlusPlus ? 2 : Features.C99 ? 1 : 0) in init()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Frontend/
DInitHeaderSearch.cpp459 if (Lang.CPlusPlus && !Lang.AsmPreprocessor && in AddDefaultIncludePaths()
581 (!Lang.ObjC && !Lang.CPlusPlus && Include.Group == CSystem) || in Realize()
582 (/*FIXME !Lang.ObjC && */ Lang.CPlusPlus && in Realize()
584 (Lang.ObjC && !Lang.CPlusPlus && Include.Group == ObjCSystem) || in Realize()
585 (Lang.ObjC && Lang.CPlusPlus && Include.Group == ObjCXXSystem)) in Realize()
DInitPreprocessor.cpp373 if (!LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros()
435 if (LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros()
666 if (LangOpts.CPlusPlus) { in InitializePredefinedMacros()
767 if (LangOpts.CPlusPlus) in InitializePredefinedMacros()
802 if (!LangOpts.MSVCCompat && LangOpts.CPlusPlus) in InitializePredefinedMacros()
1028 if (LangOpts.GNUInline || LangOpts.CPlusPlus) in InitializePredefinedMacros()
1178 if (TI.hasInt128Type() && LangOpts.CPlusPlus && LangOpts.GNUMode) { in InitializePredefinedMacros()
1223 if (LangOpts.ObjC && LangOpts.CPlusPlus && in InitializePreprocessor()
/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
DCodeGenTBAA.cpp49 if (Features.CPlusPlus) in getRoot()
203 if (!Features.CPlusPlus || !ETy->getDecl()->isExternallyVisible()) in getTypeInfoHelper()
356 if (Features.CPlusPlus) { in getBaseTypeInfoHelper()

123456