/external/clang/include/clang/Frontend/ |
D | LangStandards.def | 97 LineComment | CPlusPlus | Digraphs) 100 LineComment | CPlusPlus | Digraphs) 103 LineComment | CPlusPlus | Digraphs | GNUMode) 107 LineComment | CPlusPlus | CPlusPlus11 | Digraphs) 110 LineComment | CPlusPlus | CPlusPlus11 | Digraphs) 113 LineComment | CPlusPlus | CPlusPlus11 | Digraphs | GNUMode) 116 LineComment | CPlusPlus | CPlusPlus11 | Digraphs | GNUMode) 120 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | Digraphs) 123 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | Digraphs) 126 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | Digraphs | [all …]
|
D | LangStandard.h | 25 CPlusPlus = (1 << 4), enumerator 71 bool isCPlusPlus() const { return Flags & frontend::CPlusPlus; } in isCPlusPlus()
|
/external/clang/lib/Lex/ |
D | PPMacroExpansion.cpp | 301 if (LangOpts.CPlusPlus) in RegisterBuiltinMacros() 1192 .Case("has_nothrow_assign", LangOpts.CPlusPlus) in HasFeature() 1193 .Case("has_nothrow_copy", LangOpts.CPlusPlus) in HasFeature() 1194 .Case("has_nothrow_constructor", LangOpts.CPlusPlus) in HasFeature() 1195 .Case("has_trivial_assign", LangOpts.CPlusPlus) in HasFeature() 1196 .Case("has_trivial_copy", LangOpts.CPlusPlus) in HasFeature() 1197 .Case("has_trivial_constructor", LangOpts.CPlusPlus) in HasFeature() 1198 .Case("has_trivial_destructor", LangOpts.CPlusPlus) in HasFeature() 1199 .Case("has_virtual_destructor", LangOpts.CPlusPlus) in HasFeature() 1200 .Case("is_abstract", LangOpts.CPlusPlus) in HasFeature() [all …]
|
D | TokenConcatenation.cpp | 262 (PP.getLangOpts().CPlusPlus && FirstChar == '*'); in AvoidConcat() 281 (PP.getLangOpts().CPlusPlus && FirstChar == ':'); in AvoidConcat() 285 return PP.getLangOpts().CPlusPlus && FirstChar == '*'; in AvoidConcat()
|
D | Lexer.cpp | 1390 } else if (LangOpts.CPlusPlus) { in isAllowedIDChar() 1409 } else if (LangOpts.CPlusPlus) { in isAllowedInitiallyIDChar() 1655 assert(getLangOpts().CPlusPlus); in LexUDSuffix() 1753 Diag(BufferPtr, getLangOpts().CPlusPlus in LexStringLiteral() 1786 if (getLangOpts().CPlusPlus) in LexStringLiteral() 1870 if (getLangOpts().CPlusPlus) in LexRawStringLiteral() 1926 Diag(BufferPtr, getLangOpts().CPlusPlus in LexCharConstant() 1968 if (getLangOpts().CPlusPlus) in LexCharConstant() 2736 if (!LangOpts.CPlusPlus && !LangOpts.C99) { in tryReadUCN() 2824 if (LangOpts.CPlusPlus && !LangOpts.CPlusPlus11) in tryReadUCN() [all …]
|
D | LiteralSupport.cpp | 324 if (!Features.CPlusPlus && !Features.C99 && Diags) in ProcessUCNEscape() 810 << PP.getLangOpts().CPlusPlus << 1; in ParseNumberStartingWithZero() 834 PP.Diag(TokLoc, PP.getLangOpts().CPlusPlus in ParseNumberStartingWithZero() 842 << PP.getLangOpts().CPlusPlus << 0; in ParseNumberStartingWithZero() 854 : PP.getLangOpts().CPlusPlus in ParseNumberStartingWithZero() 1547 unsigned MaxChars = Features.CPlusPlus? 65536 : Features.C99 ? 4095 : 509; in init() 1553 << (Features.CPlusPlus ? 2 : Features.C99 ? 1 : 0) in init()
|
/external/clang/lib/AST/ |
D | ExprClassification.cpp | 43 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() 431 (Ctx.getLangOpts().CPlusPlus && in ClassifyDecl() 443 if (!Ctx.getLangOpts().CPlusPlus) return Cl::CL_PRValue; in ClassifyUnnamed() [all …]
|
D | TemplateName.cpp | 214 LO.CPlusPlus = true; in operator <<() 225 LO.CPlusPlus = true; in dump()
|
D | TemplateBase.cpp | 420 LO.CPlusPlus = true; in dump() 508 LangOpts.CPlusPlus = true; in operator <<() 519 LangOpts.CPlusPlus = true; in operator <<()
|
D | Mangle.cpp | 74 if (Context.getLangOpts().CPlusPlus && !isExternC(ND) && in getCallingConvMangling() 106 if (!getASTContext().getLangOpts().CPlusPlus && !D->hasAttrs()) in shouldMangleDeclName()
|
/external/clang/include/clang/AST/ |
D | PrettyPrinter.h | 42 SuppressTagKeyword(LO.CPlusPlus), in PrintingPolicy() 50 UseVoidForZeroParams(!LO.CPlusPlus), in PrintingPolicy()
|
/external/clang/lib/Parse/ |
D | Parser.cpp | 215 if (Kind == OutsideFunction && getLangOpts().CPlusPlus) { in ConsumeExtraSemi() 756 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration() 765 if (getLangOpts().CPlusPlus) { in ParseExternalDeclaration() 786 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration() 820 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isDeclarationAfterDeclarator() 831 (getLangOpts().CPlusPlus && in isDeclarationAfterDeclarator() 843 if (!getLangOpts().CPlusPlus && in isStartOfFunctionDefinition() 847 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isStartOfFunctionDefinition() 933 if (getLangOpts().CPlusPlus && isTokenStringLiteral() && in ParseDeclOrFunctionDefInternal() 1004 (!getLangOpts().CPlusPlus || in ParseFunctionDefinition() [all …]
|
D | ParseDecl.cpp | 1496 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_namespace)) { in ParseDeclaration() 1597 return getLangOpts().CPlusPlus; in MightBeDeclarator() 1604 return Context == Declarator::MemberContext || getLangOpts().CPlusPlus; in MightBeDeclarator() 1631 (getLangOpts().CPlusPlus && Context == Declarator::FileContext); in MightBeDeclarator() 2044 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 2070 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 2095 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 2108 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 2119 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 2273 if (!isTypeSpecifier(DSC) && !getLangOpts().CPlusPlus && in ParseImplicitInt() [all …]
|
D | ParseStmt.cpp | 212 if ((getLangOpts().CPlusPlus || Allowed == ACK_Any) && in ParseStatementOrDeclarationAfterAttributes() 589 if (!getLangOpts().CPlusPlus || Tok.is(tok::semi)) in ParseLabeledStatement() 1063 if (getLangOpts().CPlusPlus) in ParseParenExprOrCondition() 1127 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseIfStatement() 1265 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseSwitchStatement() 1351 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseWhileStatement() 1431 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseDoStatement() 1529 bool C99orCXXorObjC = getLangOpts().C99 || getLangOpts().CPlusPlus || in ParseForStatement() 1581 } else if (getLangOpts().CPlusPlus && Tok.is(tok::identifier) && in ParseForStatement() 1608 bool MightBeForRangeStmt = getLangOpts().CPlusPlus; in ParseForStatement() [all …]
|
D | ParseExpr.cpp | 367 } else if (getLangOpts().CPlusPlus && NextTokPrec <= prec::Conditional) in ParseRHSOfBinaryExpression() 451 if (!getLangOpts().CPlusPlus) in ParseRHSOfBinaryExpression() 718 (isUnaryExpression && !getLangOpts().CPlusPlus) ? CompoundLiteral in ParseCastExpression() 781 if (getLangOpts().CPlusPlus) { in ParseCastExpression() 891 !(getLangOpts().CPlusPlus && Tok.is(tok::kw_class))) { in ParseCastExpression() 1032 Res = ParseCastExpression(!getLangOpts().CPlusPlus, in ParseCastExpression() 1182 if (!getLangOpts().CPlusPlus) { in ParseCastExpression() 1620 if (getLangOpts().CPlusPlus && !LHS.isInvalid()) { in ParsePostfixExpressionSuffix() 1770 if (OpTok.is(tok::kw_typeof) && !getLangOpts().CPlusPlus) { in ParseExprAfterUnaryExprOrTypeTrait() 1796 if (getLangOpts().CPlusPlus || OpTok.isNot(tok::kw_typeof)) { in ParseExprAfterUnaryExprOrTypeTrait() [all …]
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 124 return getLangOpts().CPlusPlus; in isSimpleTypeSpecifier() 356 !(getLangOpts().CPlusPlus && NewSSPtr && in getTypeName() 648 if (getLangOpts().CPlusPlus) { in DiagnoseUnknownTypeName() 696 bool CheckTemplate = R.getSema().getLangOpts().CPlusPlus && in isResultTypeOrTemplate() 742 << Name << TagName << SemaRef.getLangOpts().CPlusPlus in isTagTypeWithMissingTag() 819 if (getLangOpts().CPlusPlus) in ClassifyName() 844 if (!getLangOpts().CPlusPlus && !SecondTry && in ClassifyName() 862 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName() 943 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName() 967 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName() [all …]
|
D | SemaCXXScopeSpec.cpp | 182 assert(getLangOpts().CPlusPlus && "Only callable in C++"); in getCurrentInstantiationOf() 597 << &Identifier << getLangOpts().CPlusPlus in BuildCXXNestedNameSpecifier() 605 << &Identifier << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier() 809 << QualType(TD->getTypeForDecl(), 0) << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier() 812 << &Identifier << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier() 855 << T << getLangOpts().CPlusPlus; in ActOnCXXNestedNameSpecifierDecltype()
|
D | SemaExpr.cpp | 256 if (S.getLangOpts().CPlusPlus) in diagnoseUseOfInternalDeclInInlineFunction() 320 if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) { in DiagnoseUseOfDecl() 548 if (getLangOpts().C99 || getLangOpts().CPlusPlus || E->isLValue()) in DefaultFunctionArrayConversion() 648 if (getLangOpts().CPlusPlus && in DefaultLvalueConversion() 837 if (getLangOpts().CPlusPlus && E->isGLValue() && !isUnevaluatedContext()) { in DefaultArgumentPromotion() 995 if (!getLangOpts().CPlusPlus && in DefaultVariadicArgumentPromotion() 1634 if (getLangOpts().CPlusPlus || getLangOpts().ConstStrings) in ActOnStringLiteral() 1998 if (getLangOpts().CPlusPlus && ND->isCXXClassMember()) { in DiagnoseEmptyLookup() 2201 if (R.empty() && HasTrailingLParen && II && !getLangOpts().CPlusPlus) { in ActOnIdExpression() 2544 if (!(getLangOpts().CPlusPlus && in LookupInObjCMethod() [all …]
|
D | SemaLookup.cpp | 212 bool CPlusPlus, in getIDNS() argument 221 if (CPlusPlus) { in getIDNS() 238 if (CPlusPlus) { in getIDNS() 259 if (CPlusPlus) in getIDNS() 296 IDNS = getIDNS(LookupKind, getSema().getLangOpts().CPlusPlus, in configure() 683 if (S.getLangOpts().CPlusPlus && NameKind == Sema::LookupOrdinaryName) { in LookupBuiltin() 697 if ((S.getLangOpts().CPlusPlus || S.getLangOpts().OpenCL) && in LookupBuiltin() 832 if (S.getLangOpts().CPlusPlus) in LookupDirect() 1036 assert(getLangOpts().CPlusPlus && "Can perform only C++ lookup"); in CppLookupName() 1702 if (!getLangOpts().CPlusPlus) { in LookupName() [all …]
|
/external/clang/lib/Frontend/ |
D | InitHeaderSearch.cpp | 455 if (Lang.CPlusPlus && HSOpts.UseStandardCXXIncludes && in AddDefaultIncludePaths() 601 (!Lang.ObjC1 && !Lang.CPlusPlus && Include.first == CSystem) || in Realize() 602 (/*FIXME !Lang.ObjC1 && */ Lang.CPlusPlus && in Realize() 604 (Lang.ObjC1 && !Lang.CPlusPlus && Include.first == ObjCSystem) || in Realize() 605 (Lang.ObjC1 && Lang.CPlusPlus && Include.first == ObjCXXSystem)) in Realize()
|
/external/clang/lib/CodeGen/ |
D | CodeGenTBAA.cpp | 48 if (Features.CPlusPlus) in getRoot() 156 if (!Features.CPlusPlus || !ETy->getDecl()->isExternallyVisible()) in getTBAAInfo() 273 if (Features.CPlusPlus) { in getTBAAStructTypeInfo()
|
/external/google-breakpad/src/common/ |
D | language.h | 81 static const Language * const CPlusPlus, variable
|
D | language.cc | 79 const Language * const Language::CPlusPlus = &CPPLanguageSingleton; member in google_breakpad::Language
|
/external/clang/tools/libclang/ |
D | CIndexCodeCompletion.cpp | 369 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/ |
D | BufferSourceTest.cpp | 46 compiler.getLangOpts().CPlusPlus = 1; in TEST()
|