/external/clang/lib/ARCMigrate/ |
D | ARCMT.cpp | 199 CInvok->getLangOpts()->ObjCAutoRefCount = true; in createInvocationForMigration() 200 CInvok->getLangOpts()->setGC(LangOptions::NonGC); in createInvocationForMigration() 215 CInvok->getLangOpts()->ObjCARCWeak = HasARCRuntime(origCI); in createInvocationForMigration() 230 printer.BeginSourceFile(PP.getLangOpts(), &PP); in emitPremigrationErrors() 244 if (!origCI.getLangOpts()->ObjC1) in checkForManualIssues() 247 LangOptions::GCMode OrigGCMode = origCI.getLangOpts()->getGC(); in checkForManualIssues() 286 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor()); in checkForManualIssues() 302 Ctx.getSourceManager(), Ctx.getLangOpts()); in checkForManualIssues() 310 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor()); in checkForManualIssues() 332 origCI.getLangOpts()->ObjCAutoRefCount = false; in checkForManualIssues() [all …]
|
D | Transforms.cpp | 44 if (!Ctx.getLangOpts().ObjCARCWeak) in canApplyWeak() 140 if (!Lexer::isAtEndOfMacroExpansion(loc, SM, Ctx.getLangOpts(), &loc)) in findSemiAfterLocation() 143 loc = Lexer::getLocForEndOfToken(loc, /*Offset=*/0, SM, Ctx.getLangOpts()); in findSemiAfterLocation() 158 Ctx.getLangOpts(), in findSemiAfterLocation() 404 Pass.Ctx.getLangOpts(), in rewritePropertyAttribute() 487 Pass.Ctx.getLangOpts(), in addPropertyAttribute() 549 const LangOptions &LangOpts = pass.Ctx.getLangOpts(); in GCRewriteFinalize()
|
/external/clang/lib/Parse/ |
D | Parser.cpp | 45 if (!Ident__except && (getLangOpts().MicrosoftExt || getLangOpts().Borland)) in getSEHExceptKeyword() 93 if (getLangOpts().OpenCL) { in Parser() 220 if (Kind == OutsideFunction && getLangOpts().CPlusPlus) { in ConsumeExtraSemi() 221 if (getLangOpts().CPlusPlus11) in ConsumeExtraSemi() 426 if (getLangOpts().OpenCL) { in ~Parser() 452 if (getLangOpts().ObjC1) { in Initialize() 467 if (getLangOpts().AltiVec) { in Initialize() 483 if(getLangOpts().Borland) { in Initialize() 547 if (getLangOpts().DelayedTemplateParsing) in ParseTopLevelDecl() 666 if (!getLangOpts().ObjC1) { in ParseExternalDeclaration() [all …]
|
D | ParseDecl.cpp | 1247 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_namespace)) { in ParseDeclaration() 1339 return getLangOpts().CPlusPlus; in MightBeDeclarator() 1342 return Context == Declarator::MemberContext && getLangOpts().CPlusPlus11 && in MightBeDeclarator() 1346 return Context == Declarator::MemberContext || getLangOpts().CPlusPlus; in MightBeDeclarator() 1373 (getLangOpts().CPlusPlus && Context == Declarator::FileContext); in MightBeDeclarator() 1376 return getLangOpts().CPlusPlus11 && isCXX11VirtSpecifier(NextToken()); in MightBeDeclarator() 1714 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 1728 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 1748 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() 1757 if (getLangOpts().CPlusPlus && D.getCXXScopeSpec().isSet()) { in ParseDeclarationAfterDeclaratorAndAttributes() [all …]
|
D | ParseExpr.cpp | 224 getLangOpts().CPlusPlus11); in ParseRHSOfBinaryExpression() 325 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParseRHSOfBinaryExpression() 328 } else if (getLangOpts().CPlusPlus && NextTokPrec <= prec::Conditional) in ParseRHSOfBinaryExpression() 340 getLangOpts().CPlusPlus11); in ParseRHSOfBinaryExpression() 368 getLangOpts().CPlusPlus11); in ParseRHSOfBinaryExpression() 639 (isUnaryExpression && !getLangOpts().CPlusPlus)? CompoundLiteral : CastExpr; in ParseCastExpression() 701 if (getLangOpts().CPlusPlus) { in ParseCastExpression() 771 if (getLangOpts().ObjC1 && Tok.is(tok::period) && in ParseCastExpression() 779 !(getLangOpts().CPlusPlus && Tok.is(tok::kw_class))) { in ParseCastExpression() 795 if (getLangOpts().ObjC1 && &II == Ident_super && !InMessageExpression && in ParseCastExpression() [all …]
|
D | ParseInit.cpp | 36 if (!PP.getLangOpts().CPlusPlus11) in MayBeDesignationStart() 231 if (getLangOpts().ObjC1 && getLangOpts().CPlusPlus) { in ParseInitializerWithPotentialDesignator() 266 } else if (getLangOpts().ObjC1 && Tok.is(tok::identifier)) { in ParseInitializerWithPotentialDesignator() 324 if (getLangOpts().ObjC1 && Tok.isNot(tok::ellipsis) && in ParseInitializerWithPotentialDesignator() 412 if (!getLangOpts().CPlusPlus) in ParseBraceInitializer() 422 if (getLangOpts().MicrosoftExt && (Tok.is(tok::kw___if_exists) || in ParseBraceInitializer()
|
D | ParseStmt.cpp | 172 if ((getLangOpts().CPlusPlus || !OnlyStatement) && isDeclarationStatement()) { in ParseStatementOrDeclarationAfterAttributes() 400 if (getLangOpts().Borland) { in ParseSEHExceptBlock() 407 if (getLangOpts().Borland) { in ParseSEHExceptBlock() 814 if (getLangOpts().MicrosoftExt && (Tok.is(tok::kw___if_exists) || in ParseCompoundStatementBody() 897 if (getLangOpts().CPlusPlus) in ParseParenExprOrCondition() 953 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseIfStatement() 1079 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseSwitchStatement() 1168 bool C99orCXX = getLangOpts().C99 || getLangOpts().CPlusPlus; in ParseWhileStatement() 1236 if (getLangOpts().C99) in ParseDoStatement() 1252 (getLangOpts().C99 || getLangOpts().CPlusPlus) && in ParseDoStatement() [all …]
|
D | ParseTentative.cpp | 161 if (getLangOpts().ObjC1 && Tok.is(tok::less)) in TryParseSimpleDeclaration() 280 if (getLangOpts().ObjC1 && Tok.is(tok::less)) in isCXXConditionDeclaration() 298 else if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) in isCXXConditionDeclaration() 357 if (getLangOpts().ObjC1 && Tok.is(tok::less)) in isCXXTypeId() 382 (getLangOpts().CPlusPlus11 && Tok.is(tok::greatergreater)))) { in isCXXTypeId() 439 if (!Disambiguate && !getLangOpts().ObjC1) in isCXX11AttributeSpecifier() 448 if (!getLangOpts().ObjC1) { in isCXX11AttributeSpecifier() 978 if (!getLangOpts().ObjC1 && Next.is(tok::identifier)) in isCXXDeclarationSpecifier() 1210 if (getLangOpts().ObjC1 && NextToken().is(tok::less)) { in isCXXDeclarationSpecifier() 1227 if (getLangOpts().CPlusPlus11 && isFollowedByBrace) in isCXXDeclarationSpecifier() [all …]
|
/external/clang/lib/Frontend/ |
D | FrontendActions.cpp | 236 if (CI.getLangOpts().CurrentModule.empty()) { in BeginSourceFileAction() 247 Module = HS.lookupModule(CI.getLangOpts().CurrentModule, in BeginSourceFileAction() 251 << CI.getLangOpts().CurrentModule << Filename; in BeginSourceFileAction() 258 if (!Module->isAvailable(CI.getLangOpts(), CI.getTarget(), Feature)) { in BeginSourceFileAction() 271 addHeaderInclude(UmbrellaHeader, HeaderContents, CI.getLangOpts()); in BeginSourceFileAction() 272 collectModuleHeaderIncludes(CI.getLangOpts(), FileMgr, in BeginSourceFileAction() 296 CI.getLangOpts().CurrentModule + ".pcm"); in ComputeASTConsumerArguments() 329 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in ExecuteAction() 458 unsigned Preamble = Lexer::ComputePreamble(Buffer, CI.getLangOpts()).first; in ExecuteAction()
|
/external/clang/lib/Rewrite/Frontend/ |
D | FrontendActions.cpp | 100 CI.getLangOpts(), FixItOpts.get())); in BeginSourceFileAction() 126 CI.getLangOpts(), FixItOpts.get()); in BeginInvocation() 158 if (CI.getLangOpts().ObjCRuntime.isNonFragile()) in CreateASTConsumer() 160 CI.getDiagnostics(), CI.getLangOpts(), in CreateASTConsumer() 165 CI.getDiagnostics(), CI.getLangOpts(), in CreateASTConsumer()
|
/external/clang/lib/Lex/ |
D | TokenConcatenation.cpp | 49 const LangOptions &LangOpts = PP.getLangOpts(); in IsIdentifierStringPrefix() 90 if (PP.getLangOpts().CPlusPlus11) { in TokenConcatenation() 210 if (!PP.getLangOpts().CPlusPlus11) in AvoidConcat() 248 (PP.getLangOpts().CPlusPlus && FirstChar == '*'); in AvoidConcat() 267 (PP.getLangOpts().CPlusPlus && FirstChar == ':'); in AvoidConcat() 271 return PP.getLangOpts().CPlusPlus && FirstChar == '*'; in AvoidConcat()
|
D | TokenLexer.cpp | 136 if (!HasPasteOperator && !PP.getLangOpts().MicrosoftMode) in MaybeRemoveCommaBeforeVaArgs() 144 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode in MaybeRemoveCommaBeforeVaArgs() 578 PP.getLangOpts(), ScratchBufStart, in PasteTokens() 597 if (PP.getLangOpts().MicrosoftExt && Tok.is(tok::slash) && in PasteTokens() 604 if (!PP.getLangOpts().AsmPreprocessor) { in PasteTokens() 614 PP.getLangOpts().MicrosoftExt ? diag::err_pp_bad_paste_ms in PasteTokens()
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 112 return getLangOpts().CPlusPlus; in isSimpleTypeSpecifier() 232 !(getLangOpts().CPlusPlus && NewSSPtr && in getTypeName() 240 std::string CorrectedStr(Correction.getAsString(getLangOpts())); in getTypeName() 242 Correction.getQuoted(getLangOpts())); in getTypeName() 415 std::string CorrectedStr(Corrected.getAsString(getLangOpts())); in DiagnoseUnknownTypeName() 416 std::string CorrectedQuotedStr(Corrected.getQuoted(getLangOpts())); in DiagnoseUnknownTypeName() 453 if (getLangOpts().CPlusPlus) { in DiagnoseUnknownTypeName() 483 if (getLangOpts().MicrosoftMode && isMicrosoftMissingTypename(SS, S)) in DiagnoseUnknownTypeName() 503 bool CheckTemplate = R.getSema().getLangOpts().CPlusPlus && in isResultTypeOrTemplate() 554 << Name << TagName << SemaRef.getLangOpts().CPlusPlus in isTagTypeWithMissingTag() [all …]
|
D | SemaObjCProperty.cpp | 107 if ((S.getLangOpts().getGC() != LangOptions::NonGC && in deduceWeakPropertyFromType() 109 (S.getLangOpts().ObjCAutoRefCount && in deduceWeakPropertyFromType() 200 if (getLangOpts().ObjCAutoRefCount) in ActOnProperty() 300 Context.getLangOpts(), in LocPropertyAttribute() 521 if (getLangOpts().getGC() != LangOptions::NonGC && in CreatePropertyDecl() 934 if (getLangOpts().ObjCAutoRefCount && in ActOnPropertyImplDecl() 946 getLangOpts().getGC() != LangOptions::NonGC) { in ActOnPropertyImplDecl() 947 assert(!getLangOpts().ObjCAutoRefCount); in ActOnPropertyImplDecl() 978 if (getLangOpts().ObjCAutoRefCount && in ActOnPropertyImplDecl() 1004 if (!err && !getLangOpts().ObjCARCWeak) { in ActOnPropertyImplDecl() [all …]
|
D | SemaExpr.cpp | 185 if (S.getLangOpts().CPlusPlus) in diagnoseUseOfInternalDeclInInlineFunction() 244 if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) { in DiagnoseUseOfDecl() 427 if (getLangOpts().C99 || getLangOpts().CPlusPlus || E->isLValue()) in DefaultFunctionArrayConversion() 471 if (getLangOpts().CPlusPlus && in DefaultLvalueConversion() 486 if (getLangOpts().OpenCL && !getOpenCLOptions().cl_khr_fp16 && in DefaultLvalueConversion() 511 if (getLangOpts().ObjCAutoRefCount && in DefaultLvalueConversion() 557 if (Ty->isHalfType() && !getLangOpts().NativeHalfType) in UsualUnaryConversions() 622 if (getLangOpts().CPlusPlus && E->isGLValue() && !isUnevaluatedContext()) { in DefaultArgumentPromotion() 653 if (getLangOpts().CPlusPlus11 && !Ty->isDependentType()) in isValidVarArgType() 660 if (getLangOpts().ObjCAutoRefCount && Ty->isObjCLifetimeType()) in isValidVarArgType() [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() 1045 else if (SemaRef.getLangOpts().ObjC1) { in IsOrdinaryName() 1061 if (SemaRef.getLangOpts().CPlusPlus) in IsOrdinaryNonTypeName() 1063 else if (SemaRef.getLangOpts().ObjC1) { 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() [all …]
|
D | SemaLookup.cpp | 287 IDNS = getIDNS(LookupKind, SemaRef.getLangOpts().CPlusPlus, in configure() 509 if (S.getLangOpts().CPlusPlus && in LookupBuiltin() 562 if (getLangOpts().CPlusPlus11) { in ForceDeclarationOfImplicitMembers() 612 if (S.getLangOpts().CPlusPlus11 && in DeclareImplicitMemberFunctionsWithName() 634 if (S.getLangOpts().CPlusPlus11 && in DeclareImplicitMemberFunctionsWithName() 652 if (S.getLangOpts().CPlusPlus) in LookupDirect() 840 assert(getLangOpts().CPlusPlus && "Can perform only C++ lookup"); in CppLookupName() 1114 if (!getLangOpts().CPlusPlus) { in LookupName() 2298 if (getLangOpts().CPlusPlus11 && RD->needsImplicitMoveConstructor()) in LookupSpecialMember() 2304 if (getLangOpts().CPlusPlus11 && RD->needsImplicitMoveAssignment()) in LookupSpecialMember() [all …]
|
D | SemaExprObjC.cpp | 91 } else if (getLangOpts().NoConstantCFStrings) { in BuildObjCStringLiteral() 93 std::string StringClass(getLangOpts().ObjCConstantStringClass); in BuildObjCStringLiteral() 202 if (S.getLangOpts().DebuggerObjCLiteral) { in getNSNumberFactoryMethod() 225 if (!Method && S.getLangOpts().DebuggerObjCLiteral) { in getNSNumberFactoryMethod() 311 if (getLangOpts().CPlusPlus) { in ActOnObjCBoolLiteral() 339 if (S.getLangOpts().CPlusPlus && Element->getType()->isRecordType()) { in CheckObjCCollectionLiteralElement() 446 if (getLangOpts().DebuggerObjCLiteral) { in BuildObjCBoxedExpr() 472 if (!BoxingMethod && getLangOpts().DebuggerObjCLiteral) { in BuildObjCBoxedExpr() 622 if (!NSArrayDecl && getLangOpts().DebuggerObjCLiteral) in BuildObjCArrayLiteral() 641 if (!Method && getLangOpts().DebuggerObjCLiteral) { in BuildObjCArrayLiteral() [all …]
|
D | SemaCXXScopeSpec.cpp | 184 assert(getLangOpts().CPlusPlus && "Only callable in C++"); in getCurrentInstantiationOf() 284 (Context.getLangOpts().CPlusPlus11 && in isAcceptableNestedNameSpecifier() 288 (Context.getLangOpts().CPlusPlus11 && isa<EnumDecl>(SD))) in isAcceptableNestedNameSpecifier() 512 std::string CorrectedStr(Corrected.getAsString(getLangOpts())); in BuildCXXNestedNameSpecifier() 513 std::string CorrectedQuotedStr(Corrected.getQuoted(getLangOpts())); in BuildCXXNestedNameSpecifier() 537 !getLangOpts().CPlusPlus11) { in BuildCXXNestedNameSpecifier() 666 if (getLangOpts().MicrosoftExt) { in BuildCXXNestedNameSpecifier() 719 << T << getLangOpts().CPlusPlus; in ActOnCXXNestedNameSpecifierDecltype()
|
/external/clang/lib/AST/ |
D | ExprClassification.cpp | 43 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyImpl() 104 const LangOptions &Lang = Ctx.getLangOpts(); in ClassifyInternal() 142 return Ctx.getLangOpts().CPlusPlus ? ClassifyTemporary(E->getType()) in ClassifyInternal() 412 (Ctx.getLangOpts().CPlusPlus && in ClassifyDecl() 423 if (!Ctx.getLangOpts().CPlusPlus) return Cl::CL_PRValue; in ClassifyUnnamed() 444 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyMemberExpr() 496 assert(Ctx.getLangOpts().CPlusPlus && in ClassifyBinaryOp() 532 assert(Ctx.getLangOpts().CPlusPlus && in ClassifyConditional() 571 if (Ctx.getLangOpts().CPlusPlus && E->getType()->isFunctionType()) in IsModifiable() 596 !Ctx.getLangOpts().CPlusPlus) && in IsModifiable()
|
D | Decl.cpp | 448 const LangOptions &Opts = D->getASTContext().getLangOpts(); in useInlineVisibilityHidden() 499 if (Context.getLangOpts().CPlusPlus && in getLVForNamespaceScopeDecl() 581 globalVisibility = Context.getLangOpts().getValueVisibilityMode(); in getLVForNamespaceScopeDecl() 584 globalVisibility = Context.getLangOpts().getTypeVisibilityMode(); in getLVForNamespaceScopeDecl() 623 if (Context.getLangOpts().CPlusPlus && !isInExternCContext(Var)) { in getLVForNamespaceScopeDecl() 656 if (Context.getLangOpts().CPlusPlus && in getLVForNamespaceScopeDecl() 909 const LangOptions &Opts = getASTContext().getLangOpts(); in verifyLinkage() 1509 if (!Context.getLangOpts().CPlusPlus) in getLanguageLinkageTemplate() 1534 assert(D.getASTContext().getLangOpts().CPlusPlus); in isExternCTemplate() 1596 if (!C.getLangOpts().CPlusPlus && isFileVarDecl()) in isThisDeclarationADefinition() [all …]
|
/external/clang/tools/libclang/ |
D | CXSourceLocation.h | 44 Context.getLangOpts(), in translateSourceLocation() 62 Context.getLangOpts(), in translateSourceRange()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | CheckerContext.cpp | 94 getLangOpts()); in getMacroNameOrSpelling() 96 return Lexer::getSpelling(Loc, buf, getSourceManager(), getLangOpts()); in getMacroNameOrSpelling()
|
/external/clang/include/clang/Frontend/ |
D | CompilerInstance.h | 252 LangOptions &getLangOpts() { in getLangOpts() function 253 return *Invocation->getLangOpts(); in getLangOpts() 255 const LangOptions &getLangOpts() const { in getLangOpts() function 256 return *Invocation->getLangOpts(); in getLangOpts()
|
D | CompilerInvocation.h | 73 LangOptions *getLangOpts() { return LangOpts.getPtr(); } in getLangOpts() function 74 const LangOptions *getLangOpts() const { return LangOpts.getPtr(); } in getLangOpts() function
|