/external/clang/include/clang/Frontend/ |
D | LangStandards.def | 89 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 | CPlusPlus1y | Digraphs) 115 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus1y | Digraphs | 132 LineComment | CPlusPlus | Digraphs)
|
D | LangStandard.h | 25 CPlusPlus = (1 << 4), enumerator 70 bool isCPlusPlus() const { return Flags & frontend::CPlusPlus; } in isCPlusPlus()
|
/external/clang/lib/Lex/ |
D | PPMacroExpansion.cpp | 988 .Case("has_nothrow_assign", LangOpts.CPlusPlus) in HasFeature() 989 .Case("has_nothrow_copy", LangOpts.CPlusPlus) in HasFeature() 990 .Case("has_nothrow_constructor", LangOpts.CPlusPlus) in HasFeature() 991 .Case("has_trivial_assign", LangOpts.CPlusPlus) in HasFeature() 992 .Case("has_trivial_copy", LangOpts.CPlusPlus) in HasFeature() 993 .Case("has_trivial_constructor", LangOpts.CPlusPlus) in HasFeature() 994 .Case("has_trivial_destructor", LangOpts.CPlusPlus) in HasFeature() 995 .Case("has_virtual_destructor", LangOpts.CPlusPlus) in HasFeature() 996 .Case("is_abstract", LangOpts.CPlusPlus) in HasFeature() 997 .Case("is_base_of", LangOpts.CPlusPlus) in HasFeature() [all …]
|
D | TokenConcatenation.cpp | 248 (PP.getLangOpts().CPlusPlus && FirstChar == '*'); in AvoidConcat() 267 (PP.getLangOpts().CPlusPlus && FirstChar == ':'); in AvoidConcat() 271 return PP.getLangOpts().CPlusPlus && FirstChar == '*'; in AvoidConcat()
|
D | Lexer.cpp | 1369 else if (LangOpts.CPlusPlus) in isAllowedIDChar() 1379 else if (LangOpts.CPlusPlus) in isAllowedInitiallyIDChar() 1591 assert(getLangOpts().CPlusPlus); in LexUDSuffix() 1649 Diag(BufferPtr, getLangOpts().CPlusPlus in LexStringLiteral() 1681 if (getLangOpts().CPlusPlus) in LexStringLiteral() 1764 if (getLangOpts().CPlusPlus) in LexRawStringLiteral() 1816 Diag(BufferPtr, getLangOpts().CPlusPlus in LexCharConstant() 1854 if (getLangOpts().CPlusPlus) in LexCharConstant() 2583 if (!LangOpts.CPlusPlus && !LangOpts.C99) { in tryReadUCN() 2667 if (LangOpts.CPlusPlus && !LangOpts.CPlusPlus11) in tryReadUCN() [all …]
|
/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() 143 return Ctx.getLangOpts().CPlusPlus ? ClassifyTemporary(E->getType()) in ClassifyInternal() 241 return Lang.CPlusPlus ? Cl::CL_LValue : Cl::CL_PRValue; in ClassifyInternal() 276 if (Lang.CPlusPlus) in ClassifyInternal() 325 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal() 333 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal() 340 if (!Lang.CPlusPlus) return Cl::CL_PRValue; in ClassifyInternal() 421 (Ctx.getLangOpts().CPlusPlus && in ClassifyDecl() 432 if (!Ctx.getLangOpts().CPlusPlus) return Cl::CL_PRValue; in ClassifyUnnamed() [all …]
|
D | TemplateName.cpp | 164 LO.CPlusPlus = true; in operator <<() 175 LO.CPlusPlus = true; in dump()
|
D | Decl.cpp | 481 if (!Opts.CPlusPlus || !Opts.InlineVisibilityHidden) in useInlineVisibilityHidden() 538 if (Context.getLangOpts().CPlusPlus && in getLVForNamespaceScopeDecl() 661 if (Context.getLangOpts().CPlusPlus && !isFirstInExternCContext(Var)) { in getLVForNamespaceScopeDecl() 694 if (Context.getLangOpts().CPlusPlus && in getLVForNamespaceScopeDecl() 1067 if (!Context.getLangOpts().CPlusPlus) in getLVForLocalDecl() 1186 if (!Opts.CPlusPlus || Opts.MicrosoftExt) in getLVForDecl() 1610 if (!Context.getLangOpts().CPlusPlus) in getLanguageLinkageTemplate() 1634 assert(D.getASTContext().getLangOpts().CPlusPlus); in isExternCTemplate() 1719 if (!C.getLangOpts().CPlusPlus && isFileVarDecl()) in isThisDeclarationADefinition() 1822 if (!Lang.CPlusPlus) in isUsableInConstantExpressions() [all …]
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 112 return getLangOpts().CPlusPlus; in isSimpleTypeSpecifier() 232 !(getLangOpts().CPlusPlus && NewSSPtr && in getTypeName() 460 if (getLangOpts().CPlusPlus) { in DiagnoseUnknownTypeName() 510 bool CheckTemplate = R.getSema().getLangOpts().CPlusPlus && in isResultTypeOrTemplate() 561 << Name << TagName << SemaRef.getLangOpts().CPlusPlus in isTagTypeWithMissingTag() 633 if (getLangOpts().CPlusPlus) in ClassifyName() 658 if (!getLangOpts().CPlusPlus && !SecondTry && in ClassifyName() 678 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName() 765 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName() 789 if (getLangOpts().CPlusPlus && NextToken.is(tok::less) && in ClassifyName() [all …]
|
D | SemaLookup.cpp | 213 bool CPlusPlus, in getIDNS() argument 221 if (CPlusPlus) { in getIDNS() 236 if (CPlusPlus) { in getIDNS() 256 if (CPlusPlus) in getIDNS() 287 IDNS = getIDNS(LookupKind, SemaRef.getLangOpts().CPlusPlus, in configure() 520 if (S.getLangOpts().CPlusPlus && in LookupBuiltin() 663 if (S.getLangOpts().CPlusPlus) in LookupDirect() 851 assert(getLangOpts().CPlusPlus && "Can perform only C++ lookup"); in CppLookupName() 1254 if (!getLangOpts().CPlusPlus) { in LookupName() 3218 if (getLangOpts().CPlusPlus) { in LookupVisibleDecls() [all …]
|
D | SemaExpr.cpp | 208 if (S.getLangOpts().CPlusPlus) in diagnoseUseOfInternalDeclInInlineFunction() 272 if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) { in DiagnoseUseOfDecl() 461 if (getLangOpts().C99 || getLangOpts().CPlusPlus || E->isLValue()) in DefaultFunctionArrayConversion() 561 if (getLangOpts().CPlusPlus && in DefaultLvalueConversion() 727 if (getLangOpts().CPlusPlus && E->isGLValue() && !isUnevaluatedContext()) { in DefaultArgumentPromotion() 876 if (!getLangOpts().CPlusPlus && in DefaultVariadicArgumentPromotion() 1510 if (getLangOpts().CPlusPlus || getLangOpts().ConstStrings) in ActOnStringLiteral() 1979 if (HasTrailingLParen && II && !getLangOpts().CPlusPlus) { in ActOnIdExpression() 2260 if (!(getLangOpts().CPlusPlus && in LookupInObjCMethod() 2451 if (!getLangOpts().CPlusPlus) in UseArgumentDependentLookup() [all …]
|
D | SemaCodeComplete.cpp | 540 if (AllowNestedNameSpecifiers && SemaRef.getLangOpts().CPlusPlus && in isInterestingDecl() 560 if (!SemaRef.getLangOpts().CPlusPlus) in CheckHiddenResult() 778 if (!SemaRef.getLangOpts().CPlusPlus || !R.Declaration || in MaybeAddConstructorResults() 1043 if (SemaRef.getLangOpts().CPlusPlus) in IsOrdinaryName() 1061 if (SemaRef.getLangOpts().CPlusPlus) in IsOrdinaryNonTypeName() 1088 if (SemaRef.getLangOpts().CPlusPlus) in IsOrdinaryNonValueName() 1192 if (!C.getLangOpts().CPlusPlus) in isObjCReceiverType() 1222 if ((SemaRef.getLangOpts().CPlusPlus && !IsOrdinaryName(ND)) || in IsObjCCollection() 1223 (!SemaRef.getLangOpts().CPlusPlus && !IsOrdinaryNonTypeName(ND))) in IsObjCCollection() 1233 (SemaRef.getLangOpts().CPlusPlus && T->isRecordType()); in IsObjCCollection() [all …]
|
/external/clang/lib/Parse/ |
D | Parser.cpp | 232 if (Kind == OutsideFunction && getLangOpts().CPlusPlus) { in ConsumeExtraSemi() 731 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration() 741 if (getLangOpts().CPlusPlus) { in ParseExternalDeclaration() 764 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration() 799 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isDeclarationAfterDeclarator() 810 (getLangOpts().CPlusPlus && in isDeclarationAfterDeclarator() 822 if (!getLangOpts().CPlusPlus && in isStartOfFunctionDefinition() 826 if (getLangOpts().CPlusPlus && Tok.is(tok::equal)) { in isStartOfFunctionDefinition() 899 if (Tok.is(tok::string_literal) && getLangOpts().CPlusPlus && in ParseDeclOrFunctionDefInternal() 968 (!getLangOpts().CPlusPlus || in ParseFunctionDefinition() [all …]
|
D | ParseDecl.cpp | 1361 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_namespace)) { in ParseDeclaration() 1453 return getLangOpts().CPlusPlus; in MightBeDeclarator() 1460 return Context == Declarator::MemberContext || getLangOpts().CPlusPlus; in MightBeDeclarator() 1487 (getLangOpts().CPlusPlus && Context == Declarator::FileContext); in MightBeDeclarator() 1876 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 1890 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 1910 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 1919 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 1930 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 2088 !getLangOpts().CPlusPlus && in ParseImplicitInt() [all …]
|
D | ParseStmt.cpp | 185 if ((getLangOpts().CPlusPlus || !OnlyStatement) && isDeclarationStatement()) { in ParseStatementOrDeclarationAfterAttributes() 917 if (getLangOpts().CPlusPlus) in ParseParenExprOrCondition() 973 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseIfStatement() 1099 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseSwitchStatement() 1188 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseWhileStatement() 1272 (getLangOpts().C99 || getLangOpts().CPlusPlus) && in ParseDoStatement() 1346 bool C99orCXXorObjC = getLangOpts().C99 || getLangOpts().CPlusPlus || in ParseForStatement() 1409 bool MightBeForRangeStmt = getLangOpts().CPlusPlus; in ParseForStatement() 1493 if (getLangOpts().CPlusPlus) in ParseForStatement() 1661 if (Tok.is(tok::l_brace) && getLangOpts().CPlusPlus) { in ParseReturnStatement() [all …]
|
D | ParseExpr.cpp | 328 } else if (getLangOpts().CPlusPlus && NextTokPrec <= prec::Conditional) in ParseRHSOfBinaryExpression() 639 (isUnaryExpression && !getLangOpts().CPlusPlus)? CompoundLiteral : CastExpr; in ParseCastExpression() 707 if (getLangOpts().CPlusPlus) { in ParseCastExpression() 785 !(getLangOpts().CPlusPlus && Tok.is(tok::kw_class))) { in ParseCastExpression() 902 Res = ParseCastExpression(!getLangOpts().CPlusPlus); in ParseCastExpression() 1035 if (!getLangOpts().CPlusPlus) { in ParseCastExpression() 1459 if (getLangOpts().CPlusPlus && !LHS.isInvalid()) { in ParsePostfixExpressionSuffix() 1586 if (OpTok.is(tok::kw_typeof) && !getLangOpts().CPlusPlus) { in ParseExprAfterUnaryExprOrTypeTrait() 1611 if (getLangOpts().CPlusPlus || OpTok.isNot(tok::kw_typeof)) { in ParseExprAfterUnaryExprOrTypeTrait()
|
D | ParseInit.cpp | 231 if (getLangOpts().ObjC1 && getLangOpts().CPlusPlus) { in ParseInitializerWithPotentialDesignator() 412 if (!getLangOpts().CPlusPlus) in ParseBraceInitializer()
|
D | ParseAST.cpp | 135 if (!External && !S.getLangOpts().CPlusPlus) in ParseAST()
|
/external/clang/lib/Frontend/ |
D | InitHeaderSearch.cpp | 471 if (Lang.CPlusPlus && HSOpts.UseStandardCXXIncludes && in AddDefaultIncludePaths() 624 (!Lang.ObjC1 && !Lang.CPlusPlus && it->first == CSystem) || in Realize() 625 (/*FIXME !Lang.ObjC1 && */Lang.CPlusPlus && it->first == CXXSystem) || in Realize() 626 (Lang.ObjC1 && !Lang.CPlusPlus && it->first == ObjCSystem) || in Realize() 627 (Lang.ObjC1 && Lang.CPlusPlus && it->first == ObjCXXSystem)) in Realize()
|
D | InitPreprocessor.cpp | 297 if (!LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros() 430 if (LangOpts.CPlusPlus) { in InitializePredefinedMacros() 446 if (LangOpts.CPlusPlus) { in InitializePredefinedMacros() 750 if (LangOpts.ObjC1 && LangOpts.CPlusPlus && LangOpts.ObjCAutoRefCount) { in InitializePreprocessor()
|
/external/clang/tools/libclang/ |
D | CIndexCodeCompletion.cpp | 373 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind() 386 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind() 397 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind() 412 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind() 479 if (S.getLangOpts().CPlusPlus) { in getContextsForContextKind()
|
/external/clang/lib/Basic/ |
D | IdentifierTable.cpp | 125 else if (LangOpts.CPlusPlus && (Flags & KEYCXX)) AddResult = 2; in AddKeyword() 135 else if (!LangOpts.CPlusPlus && (Flags & KEYNOCXX)) AddResult = 2; in AddKeyword() 140 else if (LangOpts.CPlusPlus && (Flags & KEYCXX11)) AddResult = 3; in AddKeyword()
|
/external/clang/include/clang/Basic/ |
D | LangOptions.def | 50 LANGOPT(CPlusPlus , 1, 0, "C++") 64 LANGOPT(WChar , 1, CPlusPlus, "wchar_t keyword") 69 BENIGN_LANGOPT(ImplicitInt, 1, !C99 && !CPlusPlus, "C89 implicit 'int'")
|
/external/marisa-trie/ |
D | README | 55 CPlusPlus
|
/external/clang/lib/ARCMigrate/ |
D | TransBlockObjCVariable.cpp | 58 Var->getASTContext().getLangOpts().CPlusPlus) in TraverseImplicitCastExpr()
|