Home
last modified time | relevance | path

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

1234

/external/clang/lib/Lex/
DPPMacroExpansion.cpp630 .Case("has_nothrow_assign", LangOpts.CPlusPlus) in HasFeature()
631 .Case("has_nothrow_copy", LangOpts.CPlusPlus) in HasFeature()
632 .Case("has_nothrow_constructor", LangOpts.CPlusPlus) in HasFeature()
633 .Case("has_trivial_assign", LangOpts.CPlusPlus) in HasFeature()
634 .Case("has_trivial_copy", LangOpts.CPlusPlus) in HasFeature()
635 .Case("has_trivial_constructor", LangOpts.CPlusPlus) in HasFeature()
636 .Case("has_trivial_destructor", LangOpts.CPlusPlus) in HasFeature()
637 .Case("has_virtual_destructor", LangOpts.CPlusPlus) in HasFeature()
638 .Case("is_abstract", LangOpts.CPlusPlus) in HasFeature()
639 .Case("is_base_of", LangOpts.CPlusPlus) in HasFeature()
[all …]
DTokenConcatenation.cpp206 (PP.getLangOptions().CPlusPlus && FirstChar == '*'); in AvoidConcat()
225 (PP.getLangOptions().CPlusPlus && FirstChar == ':'); in AvoidConcat()
229 return PP.getLangOptions().CPlusPlus && FirstChar == '*'; in AvoidConcat()
DLiteralSupport.cpp172 if (!Features.CPlusPlus && !Features.C99 && Diags) in ProcessUCNEscape()
548 if (PP.getLangOptions().CPlusPlus) in ParseNumberStartingWithZero()
1026 unsigned MaxChars = Features.CPlusPlus? 65536 : Features.C99 ? 4095 : 509; in init()
1032 << (Features.CPlusPlus ? 2 : Features.C99 ? 1 : 0) in init()
/external/clang/lib/AST/
DExprClassification.cpp42 return Lang.CPlusPlus && E->getType()->isRecordType() ? in ClassifyExprValueKind()
59 if (!Ctx.getLangOptions().CPlusPlus) { in ClassifyImpl()
128 return Ctx.getLangOptions().CPlusPlus? Cl::CL_ClassTemporary in ClassifyInternal()
224 return Lang.CPlusPlus ? Cl::CL_LValue : Cl::CL_PRValue; in ClassifyInternal()
256 if (Lang.CPlusPlus) in ClassifyInternal()
297 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal()
305 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal()
312 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal()
381 (Ctx.getLangOptions().CPlusPlus && in ClassifyDecl()
392 if (!Ctx.getLangOptions().CPlusPlus) return Cl::CL_PRValue; in ClassifyUnnamed()
[all …]
DTemplateName.cpp164 LO.CPlusPlus = true; in operator <<()
173 LO.CPlusPlus = true; in dump()
DDecl.cpp230 if (Context.getLangOptions().CPlusPlus && in getLVForNamespaceScopeDecl()
336 if (Context.getLangOptions().CPlusPlus && !Var->isExternC()) { in getLVForNamespaceScopeDecl()
347 if (!Context.getLangOptions().CPlusPlus && in getLVForNamespaceScopeDecl()
382 if (!Context.getLangOptions().CPlusPlus && in getLVForNamespaceScopeDecl()
406 if (Context.getLangOptions().CPlusPlus && !Function->isExternC() && in getLVForNamespaceScopeDecl()
451 (Context.getLangOptions().CPlusPlus && in getLVForNamespaceScopeDecl()
1158 if (!Context.getLangOptions().CPlusPlus) in isExternC()
1226 if (!getASTContext().getLangOptions().CPlusPlus && isFileVarDecl()) in isThisDeclarationADefinition()
1553 if (!Context.getLangOptions().CPlusPlus) in isExternC()
1652 if (!Context.getLangOptions().CPlusPlus && in getBuiltinID()
[all …]
DTemplateBase.cpp513 LangOpts.CPlusPlus = true; in operator <<()
524 LangOpts.CPlusPlus = true; in operator <<()
/external/clang/include/clang/Frontend/
DLangStandards.def77 BCPLComment | CPlusPlus | Digraphs)
80 BCPLComment | CPlusPlus | Digraphs | GNUMode)
84 BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs)
87 BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs | GNUMode)
97 BCPLComment | CPlusPlus | Digraphs)
DLangStandard.h24 CPlusPlus = (1 << 4), enumerator
68 bool isCPlusPlus() const { return Flags & frontend::CPlusPlus; } in isCPlusPlus()
/external/clang/lib/Parse/
DParser.cpp429 !getLang().CPlusPlus) // Empty source file is an extension in C in Initialize()
630 if (getLang().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration()
640 if (getLang().CPlusPlus) { in ParseExternalDeclaration()
663 if (getLang().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration()
699 if (getLang().CPlusPlus && Tok.is(tok::equal)) { in isDeclarationAfterDeclarator()
710 (getLang().CPlusPlus && in isDeclarationAfterDeclarator()
722 if (!getLang().CPlusPlus && in isStartOfFunctionDefinition()
726 if (getLang().CPlusPlus && Tok.is(tok::equal)) { in isStartOfFunctionDefinition()
796 if (Tok.is(tok::string_literal) && getLang().CPlusPlus && in ParseDeclarationOrFunctionDefinition()
856 (!getLang().CPlusPlus || in ParseFunctionDefinition()
[all …]
DParseDecl.cpp690 if (getLang().CPlusPlus && NextToken().is(tok::kw_namespace)) { in ParseDeclaration()
994 if (getLang().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
1008 if (getLang().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
1026 if (getLang().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
1034 if (getLang().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
1045 if (getLang().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
1209 << Tok.getIdentifierInfo() << TagName << getLang().CPlusPlus in ParseImplicitInt()
1547 if (getLang().CPlusPlus) { in ParseDeclarationSpecifiers()
1581 if (getLang().CPlusPlus && DSContext == DSC_class && in ParseDeclarationSpecifiers()
1617 if (getLang().CPlusPlus && DSContext == DSC_class && in ParseDeclarationSpecifiers()
[all …]
DParseStmt.cpp204 if ((getLang().CPlusPlus || !OnlyStatement) && isDeclarationStatement()) { in ParseStatementOrDeclaration()
831 if (getLang().CPlusPlus) in ParseParenExprOrCondition()
879 bool C99orCXX = getLang().C99 || getLang().CPlusPlus; in ParseIfStatement()
1001 bool C99orCXX = getLang().C99 || getLang().CPlusPlus; in ParseSwitchStatement()
1087 bool C99orCXX = getLang().C99 || getLang().CPlusPlus; in ParseWhileStatement()
1173 (getLang().C99 || getLang().CPlusPlus) && in ParseDoStatement()
1242 bool C99orCXXorObjC = getLang().C99 || getLang().CPlusPlus || getLang().ObjC1; in ParseForStatement()
1300 bool MightBeForRangeStmt = getLang().CPlusPlus; in ParseForStatement()
1371 if (getLang().CPlusPlus) in ParseForStatement()
1540 if (Tok.is(tok::l_brace) && getLang().CPlusPlus) { in ParseReturnStatement()
DParseInit.cpp149 if (getLang().ObjC1 && getLang().CPlusPlus) { in ParseInitializerWithPotentialDesignator()
327 if (!getLang().CPlusPlus) in ParseBraceInitializer()
DParseExpr.cpp351 if (getLang().CPlusPlus && NextTokPrec <= prec::Conditional) in ParseRHSOfBinaryExpression()
613 (isUnaryExpression && !getLang().CPlusPlus)? CompoundLiteral : CastExpr; in ParseCastExpression()
669 if (getLang().CPlusPlus) { in ParseCastExpression()
803 Res = ParseCastExpression(!getLang().CPlusPlus); in ParseCastExpression()
922 if (!getLang().CPlusPlus) { in ParseCastExpression()
1299 if (getLang().CPlusPlus && !LHS.isInvalid()) { in ParsePostfixExpressionSuffix()
1397 if (OpTok.is(tok::kw_typeof) && !getLang().CPlusPlus) { in ParseExprAfterUnaryExprOrTypeTrait()
1438 if (getLang().CPlusPlus || OpTok.isNot(tok::kw_typeof)) { in ParseExprAfterUnaryExprOrTypeTrait()
/external/clang/lib/Sema/
DSemaDecl.cpp334 if (getLangOptions().CPlusPlus) { in DiagnoseUnknownTypeName()
383 bool CheckTemplate = R.getSema().getLangOptions().CPlusPlus && in isResultTypeOrTemplate()
453 if (getLangOptions().CPlusPlus) in ClassifyName()
478 if (!getLangOptions().CPlusPlus && !SecondTry) { in ClassifyName()
507 << Name << TagName << getLangOptions().CPlusPlus in ClassifyName()
529 if (getLangOptions().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
609 if (getLangOptions().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
633 if (getLangOptions().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
818 if (Context.getLangOptions().CPlusPlus) in AllowOverloadingOfFunction()
845 if ((getLangOptions().CPlusPlus || isa<VarDecl>(D) || isa<FunctionDecl>(D)) && in PushOnScopeChains()
[all …]
DSemaLookup.cpp209 bool CPlusPlus, in getIDNS() argument
217 if (CPlusPlus) { in getIDNS()
232 if (CPlusPlus) { in getIDNS()
252 if (CPlusPlus) in getIDNS()
283 IDNS = getIDNS(LookupKind, SemaRef.getLangOptions().CPlusPlus, in configure()
491 if (S.getLangOptions().CPlusPlus && in LookupBuiltin()
625 if (S.getLangOptions().CPlusPlus) in LookupDirect()
813 assert(getLangOptions().CPlusPlus && "Can perform only C++ lookup"); in CppLookupName()
1067 if (!getLangOptions().CPlusPlus) { in LookupName()
2915 if (getLangOptions().CPlusPlus) { in LookupVisibleDecls()
[all …]
DSemaExpr.cpp61 if (getLangOptions().CPlusPlus && isa<FunctionDecl>(D)) { in DiagnoseUseOfDecl()
282 if (getLangOptions().C99 || getLangOptions().CPlusPlus || E->isLValue()) in DefaultFunctionArrayConversion()
329 if (getLangOptions().CPlusPlus && in DefaultLvalueConversion()
1007 if (getLangOptions().CPlusPlus || getLangOptions().ConstStrings) in ActOnStringLiteral()
1180 if (!byRef && S.getLangOptions().CPlusPlus && !type->isDependentType() && in shouldCaptureValueReference()
1671 if (HasTrailingLParen && II && !getLangOptions().CPlusPlus) { in ActOnIdExpression()
1869 if (!(getLangOptions().CPlusPlus && in LookupInObjCMethod()
2061 if (!getLangOptions().CPlusPlus) in UseArgumentDependentLookup()
2266 assert(getLangOptions().CPlusPlus && in BuildDeclarationNameExpr()
2293 if (!getLangOptions().CPlusPlus && in BuildDeclarationNameExpr()
[all …]
DSemaCodeComplete.cpp532 if (AllowNestedNameSpecifiers && SemaRef.getLangOptions().CPlusPlus && in isInterestingDecl()
552 if (!SemaRef.getLangOptions().CPlusPlus) in CheckHiddenResult()
732 if (!SemaRef.getLangOptions().CPlusPlus || !R.Declaration || in MaybeAddConstructorResults()
988 if (SemaRef.getLangOptions().CPlusPlus) in IsOrdinaryName()
1009 if (SemaRef.getLangOptions().CPlusPlus) in IsOrdinaryNonTypeName()
1039 if (SemaRef.getLangOptions().CPlusPlus) in IsOrdinaryNonValueName()
1141 if (!C.getLangOptions().CPlusPlus) in isObjCReceiverType()
1160 if ((SemaRef.getLangOptions().CPlusPlus && !IsOrdinaryName(ND)) || in IsObjCCollection()
1161 (!SemaRef.getLangOptions().CPlusPlus && !IsOrdinaryNonTypeName(ND))) in IsObjCCollection()
1171 (SemaRef.getLangOptions().CPlusPlus && T->isRecordType()); in IsObjCCollection()
[all …]
/external/clang/lib/CodeGen/
DCodeGenTBAA.cpp158 if (!Features.CPlusPlus && in getTBAAInfo()
166 if (Features.CPlusPlus && in getTBAAInfo()
DModuleBuilder.cpp77 if (Ctx->getLangOptions().CPlusPlus && !D->isDependentContext()) { in HandleTagDeclDefinition()
/external/clang/include/clang/Basic/
DLangOptions.h40 unsigned CPlusPlus : 1; // C++ Support variable
189 C99 = C1X = Microsoft = Borland = CPlusPlus = CPlusPlus0x = 0; in LangOptions()
/external/clang/tools/libclang/
DCIndexCodeCompletion.cpp300 if (S.getLangOptions().CPlusPlus) { in getContextsForContextKind()
313 if (S.getLangOptions().CPlusPlus) { in getContextsForContextKind()
324 if (S.getLangOptions().CPlusPlus) { in getContextsForContextKind()
339 if (S.getLangOptions().CPlusPlus) { in getContextsForContextKind()
406 if (S.getLangOptions().CPlusPlus) { in getContextsForContextKind()
/external/clang/lib/Frontend/
DInitPreprocessor.cpp354 if (!LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros()
465 if (LangOpts.CPlusPlus) { in InitializePredefinedMacros()
476 if (LangOpts.CPlusPlus) { in InitializePredefinedMacros()
723 if (LangOpts.ObjC1 && LangOpts.CPlusPlus && LangOpts.ObjCAutoRefCount) { in InitializePreprocessor()
DInitHeaderSearch.cpp942 if (Lang.CPlusPlus && HSOpts.UseStandardCXXIncludes) { in AddDefaultSystemIncludePaths()
1066 if (it->first == System || (Lang.CPlusPlus && it->first == CXXSystem)) in Realize()
1121 if (Lang.CPlusPlus && Lang.ObjC1) in ApplyHeaderSearchOptions()
1123 else if (Lang.CPlusPlus) in ApplyHeaderSearchOptions()
/external/clang/lib/ARCMigrate/
DTransBlockObjCVariable.cpp58 Var->getASTContext().getLangOptions().CPlusPlus) in TraverseImplicitCastExpr()

1234