Home
last modified time | relevance | path

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

12345

/external/clang/include/clang/Frontend/
DLangStandards.def89 LineComment | CPlusPlus | Digraphs)
92 LineComment | CPlusPlus | Digraphs)
95 LineComment | CPlusPlus | Digraphs | GNUMode)
99 LineComment | CPlusPlus | CPlusPlus11 | Digraphs)
102 LineComment | CPlusPlus | CPlusPlus11 | Digraphs)
105 LineComment | CPlusPlus | CPlusPlus11 | Digraphs | GNUMode)
108 LineComment | CPlusPlus | CPlusPlus11 | Digraphs | GNUMode)
112 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | Digraphs)
115 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | Digraphs)
118 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | Digraphs |
[all …]
DLangStandard.h25 CPlusPlus = (1 << 4), enumerator
71 bool isCPlusPlus() const { return Flags & frontend::CPlusPlus; } in isCPlusPlus()
/external/clang/lib/Lex/
DPPMacroExpansion.cpp294 if (LangOpts.CPlusPlus) in RegisterBuiltinMacros()
1182 .Case("has_nothrow_assign", LangOpts.CPlusPlus) in HasFeature()
1183 .Case("has_nothrow_copy", LangOpts.CPlusPlus) in HasFeature()
1184 .Case("has_nothrow_constructor", LangOpts.CPlusPlus) in HasFeature()
1185 .Case("has_trivial_assign", LangOpts.CPlusPlus) in HasFeature()
1186 .Case("has_trivial_copy", LangOpts.CPlusPlus) in HasFeature()
1187 .Case("has_trivial_constructor", LangOpts.CPlusPlus) in HasFeature()
1188 .Case("has_trivial_destructor", LangOpts.CPlusPlus) in HasFeature()
1189 .Case("has_virtual_destructor", LangOpts.CPlusPlus) in HasFeature()
1190 .Case("is_abstract", LangOpts.CPlusPlus) in HasFeature()
[all …]
DTokenConcatenation.cpp262 (PP.getLangOpts().CPlusPlus && FirstChar == '*'); in AvoidConcat()
281 (PP.getLangOpts().CPlusPlus && FirstChar == ':'); in AvoidConcat()
285 return PP.getLangOpts().CPlusPlus && FirstChar == '*'; in AvoidConcat()
DLexer.cpp1363 } else if (LangOpts.CPlusPlus) { in isAllowedIDChar()
1382 } else if (LangOpts.CPlusPlus) { in isAllowedInitiallyIDChar()
1627 assert(getLangOpts().CPlusPlus); in LexUDSuffix()
1725 Diag(BufferPtr, getLangOpts().CPlusPlus in LexStringLiteral()
1758 if (getLangOpts().CPlusPlus) in LexStringLiteral()
1842 if (getLangOpts().CPlusPlus) in LexRawStringLiteral()
1898 Diag(BufferPtr, getLangOpts().CPlusPlus in LexCharConstant()
1940 if (getLangOpts().CPlusPlus) in LexCharConstant()
2708 if (!LangOpts.CPlusPlus && !LangOpts.C99) { in tryReadUCN()
2796 if (LangOpts.CPlusPlus && !LangOpts.CPlusPlus11) in tryReadUCN()
[all …]
/external/clang/lib/AST/
DExprClassification.cpp43 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyImpl()
93 return Lang.CPlusPlus ? ClassifyTemporary(E->getType()) : Cl::CL_PRValue; in ClassifyExprValueKind()
146 return Ctx.getLangOpts().CPlusPlus ? ClassifyTemporary(E->getType()) in ClassifyInternal()
247 return Lang.CPlusPlus ? Cl::CL_LValue : Cl::CL_PRValue; in ClassifyInternal()
282 if (Lang.CPlusPlus) in ClassifyInternal()
331 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal()
339 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal()
346 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal()
430 (Ctx.getLangOpts().CPlusPlus && in ClassifyDecl()
442 if (!Ctx.getLangOpts().CPlusPlus) return Cl::CL_PRValue; in ClassifyUnnamed()
[all …]
DTemplateName.cpp164 LO.CPlusPlus = true; in operator <<()
175 LO.CPlusPlus = true; in dump()
DDeclarationName.cpp154 LO.CPlusPlus = true; in operator <<()
164 LO.CPlusPlus = true; in operator <<()
193 LO.CPlusPlus = true; in operator <<()
549 LO.CPlusPlus = true; in printName()
DMangle.cpp74 if (Context.getLangOpts().CPlusPlus && !isExternC(ND) && in getCallingConvMangling()
106 if (!getASTContext().getLangOpts().CPlusPlus && !D->hasAttrs()) in shouldMangleDeclName()
DDecl.cpp540 if (!Opts.CPlusPlus || !Opts.InlineVisibilityHidden) in useInlineVisibilityHidden()
597 if (Context.getLangOpts().CPlusPlus && in getLVForNamespaceScopeDecl()
718 if (Context.getLangOpts().CPlusPlus && !isFirstInExternCContext(Var)) { in getLVForNamespaceScopeDecl()
758 if (Context.getLangOpts().CPlusPlus && in getLVForNamespaceScopeDecl()
1183 if (!Context.getLangOpts().CPlusPlus) in getLVForLocalDecl()
1259 if (!D->getASTContext().getLangOpts().CPlusPlus || in computeLVForDecl()
1366 if (!Opts.CPlusPlus || Opts.MicrosoftExt) in getLVForDecl()
1858 if (!Context.getLangOpts().CPlusPlus) in getDeclLanguageLinkage()
1882 assert(D.getASTContext().getLangOpts().CPlusPlus); in isDeclExternC()
1974 if (!C.getLangOpts().CPlusPlus && isFileVarDecl()) in isThisDeclarationADefinition()
[all …]
/external/clang/lib/Parse/
DParser.cpp215 if (Kind == OutsideFunction && getLangOpts().CPlusPlus) { in ConsumeExtraSemi()
749 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration()
758 if (getLangOpts().CPlusPlus) { in ParseExternalDeclaration()
779 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration()
813 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isDeclarationAfterDeclarator()
824 (getLangOpts().CPlusPlus && in isDeclarationAfterDeclarator()
836 if (!getLangOpts().CPlusPlus && in isStartOfFunctionDefinition()
840 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isStartOfFunctionDefinition()
920 if (getLangOpts().CPlusPlus && isTokenStringLiteral() && in ParseDeclOrFunctionDefInternal()
991 (!getLangOpts().CPlusPlus || in ParseFunctionDefinition()
[all …]
DParseDecl.cpp1465 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_namespace)) { in ParseDeclaration()
1561 return getLangOpts().CPlusPlus; in MightBeDeclarator()
1568 return Context == Declarator::MemberContext || getLangOpts().CPlusPlus; in MightBeDeclarator()
1595 (getLangOpts().CPlusPlus && Context == Declarator::FileContext); in MightBeDeclarator()
2008 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
2034 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
2058 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
2071 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
2082 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes()
2236 if (!isTypeSpecifier(DSC) && !getLangOpts().CPlusPlus && in ParseImplicitInt()
[all …]
DParseStmt.cpp205 if ((getLangOpts().CPlusPlus || !OnlyStatement) && isDeclarationStatement()) { in ParseStatementOrDeclarationAfterAttributes()
577 if (!getLangOpts().CPlusPlus || Tok.is(tok::semi)) in ParseLabeledStatement()
1043 if (getLangOpts().CPlusPlus) in ParseParenExprOrCondition()
1099 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseIfStatement()
1223 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseSwitchStatement()
1308 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseWhileStatement()
1390 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseDoStatement()
1488 bool C99orCXXorObjC = getLangOpts().C99 || getLangOpts().CPlusPlus || in ParseForStatement()
1542 } else if (getLangOpts().CPlusPlus && Tok.is(tok::identifier) && in ParseForStatement()
1569 bool MightBeForRangeStmt = getLangOpts().CPlusPlus; in ParseForStatement()
[all …]
DParseExpr.cpp364 } else if (getLangOpts().CPlusPlus && NextTokPrec <= prec::Conditional) in ParseRHSOfBinaryExpression()
705 (isUnaryExpression && !getLangOpts().CPlusPlus) ? CompoundLiteral in ParseCastExpression()
768 if (getLangOpts().CPlusPlus) { in ParseCastExpression()
877 !(getLangOpts().CPlusPlus && Tok.is(tok::kw_class))) { in ParseCastExpression()
1017 Res = ParseCastExpression(!getLangOpts().CPlusPlus, in ParseCastExpression()
1155 if (!getLangOpts().CPlusPlus) { in ParseCastExpression()
1572 if (getLangOpts().CPlusPlus && !LHS.isInvalid()) { in ParsePostfixExpressionSuffix()
1722 if (OpTok.is(tok::kw_typeof) && !getLangOpts().CPlusPlus) { in ParseExprAfterUnaryExprOrTypeTrait()
1748 if (getLangOpts().CPlusPlus || OpTok.isNot(tok::kw_typeof)) { in ParseExprAfterUnaryExprOrTypeTrait()
2363 if (!getLangOpts().CPlusPlus && MaybeTypeCast && Result.isUsable()) { in ParseParenExpression()
/external/clang/lib/Sema/
DSemaDecl.cpp122 return getLangOpts().CPlusPlus; in isSimpleTypeSpecifier()
348 !(getLangOpts().CPlusPlus && NewSSPtr && in getTypeName()
604 if (getLangOpts().CPlusPlus) { in DiagnoseUnknownTypeName()
652 bool CheckTemplate = R.getSema().getLangOpts().CPlusPlus && in isResultTypeOrTemplate()
698 << Name << TagName << SemaRef.getLangOpts().CPlusPlus in isTagTypeWithMissingTag()
775 if (getLangOpts().CPlusPlus) in ClassifyName()
800 if (!getLangOpts().CPlusPlus && !SecondTry && in ClassifyName()
819 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
900 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
924 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName()
[all …]
DSemaCXXScopeSpec.cpp172 assert(getLangOpts().CPlusPlus && "Only callable in C++"); in getCurrentInstantiationOf()
573 << &Identifier << getLangOpts().CPlusPlus in BuildCXXNestedNameSpecifier()
581 << &Identifier << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier()
779 << QualType(TD->getTypeForDecl(), 0) << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier()
782 << &Identifier << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier()
825 << T << getLangOpts().CPlusPlus; in ActOnCXXNestedNameSpecifierDecltype()
DSemaExpr.cpp263 if (S.getLangOpts().CPlusPlus) in diagnoseUseOfInternalDeclInInlineFunction()
327 if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) { in DiagnoseUseOfDecl()
536 if (getLangOpts().C99 || getLangOpts().CPlusPlus || E->isLValue()) in DefaultFunctionArrayConversion()
636 if (getLangOpts().CPlusPlus && in DefaultLvalueConversion()
825 if (getLangOpts().CPlusPlus && E->isGLValue() && !isUnevaluatedContext()) { in DefaultArgumentPromotion()
983 if (!getLangOpts().CPlusPlus && in DefaultVariadicArgumentPromotion()
1572 if (getLangOpts().CPlusPlus || getLangOpts().ConstStrings) in ActOnStringLiteral()
1935 if (getLangOpts().CPlusPlus && ND->isCXXClassMember()) { in DiagnoseEmptyLookup()
2138 if (R.empty() && HasTrailingLParen && II && !getLangOpts().CPlusPlus) { in ActOnIdExpression()
2481 if (!(getLangOpts().CPlusPlus && in LookupInObjCMethod()
[all …]
DSemaLookup.cpp213 bool CPlusPlus, in getIDNS() argument
222 if (CPlusPlus) { in getIDNS()
239 if (CPlusPlus) { in getIDNS()
260 if (CPlusPlus) in getIDNS()
293 IDNS = getIDNS(LookupKind, getSema().getLangOpts().CPlusPlus, in configure()
672 if (S.getLangOpts().CPlusPlus && NameKind == Sema::LookupOrdinaryName && in LookupBuiltin()
682 if (S.getLangOpts().CPlusPlus && in LookupBuiltin()
817 if (S.getLangOpts().CPlusPlus) in LookupDirect()
1021 assert(getLangOpts().CPlusPlus && "Can perform only C++ lookup"); in CppLookupName()
1616 if (!getLangOpts().CPlusPlus) { in LookupName()
[all …]
DSemaCodeComplete.cpp538 if (AllowNestedNameSpecifiers && SemaRef.getLangOpts().CPlusPlus && in isInterestingDecl()
558 if (!SemaRef.getLangOpts().CPlusPlus) in CheckHiddenResult()
775 if (!SemaRef.getLangOpts().CPlusPlus || !R.Declaration || in MaybeAddConstructorResults()
1042 if (SemaRef.getLangOpts().CPlusPlus) in IsOrdinaryName()
1060 if (SemaRef.getLangOpts().CPlusPlus) in IsOrdinaryNonTypeName()
1087 if (SemaRef.getLangOpts().CPlusPlus) in IsOrdinaryNonValueName()
1191 if (!C.getLangOpts().CPlusPlus) in isObjCReceiverType()
1221 if ((SemaRef.getLangOpts().CPlusPlus && !IsOrdinaryName(ND)) || in IsObjCCollection()
1222 (!SemaRef.getLangOpts().CPlusPlus && !IsOrdinaryNonTypeName(ND))) in IsObjCCollection()
1232 (SemaRef.getLangOpts().CPlusPlus && T->isRecordType()); in IsObjCCollection()
[all …]
/external/clang/lib/Frontend/
DInitHeaderSearch.cpp456 if (Lang.CPlusPlus && HSOpts.UseStandardCXXIncludes && in AddDefaultIncludePaths()
602 (!Lang.ObjC1 && !Lang.CPlusPlus && Include.first == CSystem) || in Realize()
603 (/*FIXME !Lang.ObjC1 && */ Lang.CPlusPlus && in Realize()
605 (Lang.ObjC1 && !Lang.CPlusPlus && Include.first == ObjCSystem) || in Realize()
606 (Lang.ObjC1 && Lang.CPlusPlus && Include.first == ObjCXXSystem)) in Realize()
/external/google-breakpad/src/common/
Dlanguage.h81 static const Language * const CPlusPlus, variable
Dlanguage.cc79 const Language * const Language::CPlusPlus = &CPPLanguageSingleton; member in google_breakpad::Language
/external/clang/tools/libclang/
DCIndexCodeCompletion.cpp369 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind()
382 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind()
393 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind()
408 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind()
475 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind()
/external/clang/unittests/CodeGen/
DBufferSourceTest.cpp45 compiler.getLangOpts().CPlusPlus = 1; in TEST()
/external/clang/lib/CodeGen/
DCodeGenTBAA.cpp152 if (!Features.CPlusPlus || !ETy->getDecl()->isExternallyVisible()) in getTBAAInfo()
269 if (Features.CPlusPlus) { in getTBAAStructTypeInfo()

12345