/external/clang/lib/ARCMigrate/ |
D | ARCMT.cpp | 197 CInvok->getLangOpts()->ObjCAutoRefCount = true; in createInvocationForMigration() 198 CInvok->getLangOpts()->setGC(LangOptions::NonGC); in createInvocationForMigration() 213 CInvok->getLangOpts()->ObjCWeakRuntime = HasARCRuntime(origCI); in createInvocationForMigration() 214 CInvok->getLangOpts()->ObjCWeak = CInvok->getLangOpts()->ObjCWeakRuntime; in createInvocationForMigration() 229 printer.BeginSourceFile(PP.getLangOpts(), &PP); in emitPremigrationErrors() 243 if (!origCI.getLangOpts()->ObjC1) in checkForManualIssues() 246 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() [all …]
|
/external/clang/lib/Parse/ |
D | Parser.cpp | 65 if (!Ident__except && (getLangOpts().MicrosoftExt || getLangOpts().Borland)) in getSEHExceptKeyword() 215 if (Kind == OutsideFunction && getLangOpts().CPlusPlus) { in ConsumeExtraSemi() 216 if (getLangOpts().CPlusPlus11) in ConsumeExtraSemi() 438 if (getLangOpts().DelayedTemplateParsing && in ~Parser() 460 if (getLangOpts().ObjC1) { in Initialize() 483 if (getLangOpts().AltiVec || getLangOpts().ZVector) { in Initialize() 487 if (getLangOpts().AltiVec) in Initialize() 505 if(getLangOpts().Borland) { in Initialize() 577 if (getLangOpts().DelayedTemplateParsing) in ParseTopLevelDecl() 709 if (!(getLangOpts().GNUAsm || Result.isInvalid())) { in ParseExternalDeclaration() [all …]
|
D | ParseDecl.cpp | 392 getTargetInfo(), getLangOpts())) { in ParseMicrosoftDeclSpecArgs() 537 assert(getLangOpts().DeclSpecKeyword && "__declspec keyword is not enabled"); in ParseMicrosoftDeclSpecs() 699 if (!getLangOpts().ObjC1) in ParseNullabilityTypeSpecifiers() 1496 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_namespace)) { in ParseDeclaration() 1597 return getLangOpts().CPlusPlus; in MightBeDeclarator() 1600 return Context == Declarator::MemberContext && getLangOpts().CPlusPlus11 && in MightBeDeclarator() 1604 return Context == Declarator::MemberContext || getLangOpts().CPlusPlus; in MightBeDeclarator() 1631 (getLangOpts().CPlusPlus && Context == Declarator::FileContext); in MightBeDeclarator() 1634 return getLangOpts().CPlusPlus11 && isCXX11VirtSpecifier(NextToken()); in MightBeDeclarator() 1882 if (getLangOpts().MicrosoftExt) in ParseDeclGroup() [all …]
|
D | ParseStmt.cpp | 212 if ((getLangOpts().CPlusPlus || Allowed == ACK_Any) && in ParseStatementOrDeclarationAfterAttributes() 487 if (getLangOpts().Borland) { in ParseSEHExceptBlock() 500 if (getLangOpts().Borland) { in ParseSEHExceptBlock() 589 if (!getLangOpts().CPlusPlus || Tok.is(tok::semi)) in ParseLabeledStatement() 679 if (!getLangOpts().CPlusPlus11) { in ParseCaseStatement() 1063 if (getLangOpts().CPlusPlus) in ParseParenExprOrCondition() 1115 Diag(Tok, getLangOpts().CPlusPlus1z ? diag::warn_cxx14_compat_constexpr_if in ParseIfStatement() 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() [all …]
|
D | ParseExpr.cpp | 252 getLangOpts().CPlusPlus11); in ParseRHSOfBinaryExpression() 364 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParseRHSOfBinaryExpression() 367 } else if (getLangOpts().CPlusPlus && NextTokPrec <= prec::Conditional) in ParseRHSOfBinaryExpression() 385 getLangOpts().CPlusPlus11); in ParseRHSOfBinaryExpression() 419 getLangOpts().CPlusPlus11); in ParseRHSOfBinaryExpression() 451 if (!getLangOpts().CPlusPlus) in ParseRHSOfBinaryExpression() 718 (isUnaryExpression && !getLangOpts().CPlusPlus) ? CompoundLiteral in ParseCastExpression() 781 if (getLangOpts().CPlusPlus) { in ParseCastExpression() 883 if (getLangOpts().ObjC1 && Tok.is(tok::period) && in ParseCastExpression() 891 !(getLangOpts().CPlusPlus && Tok.is(tok::kw_class))) { in ParseCastExpression() [all …]
|
D | ParseInit.cpp | 36 if (!PP.getLangOpts().CPlusPlus11) in MayBeDesignationStart() 213 if (getLangOpts().ObjC1 && getLangOpts().CPlusPlus) { in ParseInitializerWithPotentialDesignator() 246 } else if (getLangOpts().ObjC1 && Tok.is(tok::identifier)) { in ParseInitializerWithPotentialDesignator() 316 if (getLangOpts().ObjC1 && Tok.isNot(tok::ellipsis) && in ParseInitializerWithPotentialDesignator() 402 if (!getLangOpts().CPlusPlus) in ParseBraceInitializer() 412 if (getLangOpts().MicrosoftExt && (Tok.is(tok::kw___if_exists) || in ParseBraceInitializer()
|
D | ParseDeclCXX.cpp | 79 if (getLangOpts().CPlusPlus11 && isCXX11AttributeSpecifier()) { in ParseNamespace() 80 if (!getLangOpts().CPlusPlus1z) in ParseNamespace() 144 } else if (getLangOpts().CPlusPlus1z) { in ParseNamespace() 178 Diag(InlineLoc, getLangOpts().CPlusPlus11 ? in ParseNamespace() 544 if (getLangOpts().CPlusPlus11 && Context == Declarator::MemberContext && in ParseUsingDeclaration() 584 Diag(Tok.getLocation(), getLangOpts().CPlusPlus11 ? in ParseUsingDeclaration() 699 if (Tok.is(tok::kw__Static_assert) && !getLangOpts().C11) in ParseStaticAssertDeclaration() 721 Diag(Tok, getLangOpts().CPlusPlus1z in ParseStaticAssertDeclaration() 724 << (getLangOpts().CPlusPlus1z in ParseStaticAssertDeclaration() 799 getLangOpts().CPlusPlus14 in ParseDecltypeSpecifier() [all …]
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 124 return getLangOpts().CPlusPlus; in isSimpleTypeSpecifier() 325 if (Result.empty() && getLangOpts().MSVCCompat && (!SS || SS->isEmpty())) { in getTypeName() 356 !(getLangOpts().CPlusPlus && NewSSPtr && in getTypeName() 500 assert(getLangOpts().MSVCCompat && "shouldn't be called in non-MSVC mode"); in ActOnMSVCUnknownTypeName() 625 std::string CorrectedStr(Corrected.getAsString(getLangOpts())); in DiagnoseUnknownTypeName() 648 if (getLangOpts().CPlusPlus) { in DiagnoseUnknownTypeName() 678 if (getLangOpts().MSVCCompat && isMicrosoftMissingTypename(SS, S)) in DiagnoseUnknownTypeName() 696 bool CheckTemplate = R.getSema().getLangOpts().CPlusPlus && in isResultTypeOrTemplate() 742 << Name << TagName << SemaRef.getLangOpts().CPlusPlus in isTagTypeWithMissingTag() 792 if (Result.empty() && SS.isEmpty() && getLangOpts().MSVCCompat) { in ClassifyName() [all …]
|
D | SemaExpr.cpp | 64 if (getLangOpts().CPlusPlus14 && FD->getReturnType()->isUndeducedType() && in CanUseDecl() 256 if (S.getLangOpts().CPlusPlus) in diagnoseUseOfInternalDeclInInlineFunction() 320 if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) { in DiagnoseUseOfDecl() 366 if (getLangOpts().CPlusPlus14 && FD->getReturnType()->isUndeducedType() && in DiagnoseUseOfDecl() 484 else if (getLangOpts().CPlusPlus11) in DiagnoseSentinelCalls() 523 if (getLangOpts().OpenCL) { in DefaultFunctionArrayConversion() 548 if (getLangOpts().C99 || getLangOpts().CPlusPlus || E->isLValue()) in DefaultFunctionArrayConversion() 648 if (getLangOpts().CPlusPlus && in DefaultLvalueConversion() 663 if (getLangOpts().OpenCL && !getOpenCLOptions().cl_khr_fp16 && in DefaultLvalueConversion() 708 if (getLangOpts().ObjCAutoRefCount && in DefaultLvalueConversion() [all …]
|
D | SemaObjCProperty.cpp | 133 if (S.getLangOpts().getGC() != LangOptions::NonGC) { in deducePropertyOwnershipFromType() 328 Context.getLangOpts(), in LocPropertyAttribute() 584 isAssign = (!getLangOpts().ObjCAutoRefCount || in CreatePropertyDecl() 590 if (getLangOpts().getGC() != LangOptions::NonGC && in CreatePropertyDecl() 726 S.getLangOpts().ObjCAutoRefCount) || in checkARCPropertyImpl() 1042 if (getLangOpts().ObjCAutoRefCount && in ActOnPropertyImplDecl() 1055 if (getLangOpts().getGC() != LangOptions::NonGC) { in ActOnPropertyImplDecl() 1056 assert(!getLangOpts().ObjCAutoRefCount); in ActOnPropertyImplDecl() 1068 if (!getLangOpts().ObjCWeak) { in ActOnPropertyImplDecl() 1072 getLangOpts().ObjCWeakRuntime in ActOnPropertyImplDecl() [all …]
|
D | SemaCXXScopeSpec.cpp | 182 assert(getLangOpts().CPlusPlus && "Only callable in C++"); in getCurrentInstantiationOf() 337 if (Context.getLangOpts().CPlusPlus11) in isAcceptableNestedNameSpecifier() 345 if (Context.getLangOpts().CPlusPlus11) in isAcceptableNestedNameSpecifier() 597 << &Identifier << getLangOpts().CPlusPlus in BuildCXXNestedNameSpecifier() 605 << &Identifier << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier() 612 if (Found.empty() && !ErrorRecoveryLookup && !getLangOpts().MSVCCompat) { in BuildCXXNestedNameSpecifier() 624 Name.getAsString() == Corrected.getAsString(getLangOpts()); in BuildCXXNestedNameSpecifier() 656 !getLangOpts().CPlusPlus11) { in BuildCXXNestedNameSpecifier() 793 if (getLangOpts().MSVCCompat) { in BuildCXXNestedNameSpecifier() 809 << QualType(TD->getTypeForDecl(), 0) << getLangOpts().CPlusPlus; in BuildCXXNestedNameSpecifier() [all …]
|
D | SemaLookup.cpp | 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() 742 if (getLangOpts().CPlusPlus11) { in ForceDeclarationOfImplicitMembers() 792 if (S.getLangOpts().CPlusPlus11 && in DeclareImplicitMemberFunctionsWithName() 814 if (S.getLangOpts().CPlusPlus11 && in DeclareImplicitMemberFunctionsWithName() 832 if (S.getLangOpts().CPlusPlus) in LookupDirect() 1036 assert(getLangOpts().CPlusPlus && "Can perform only C++ lookup"); in CppLookupName() 1341 if (!getLangOpts().ModulesLocalVisibility) { in getOwningModule() 1525 if (SemaRef.getLangOpts().ModulesLocalVisibility) { in isVisibleSlow() [all …]
|
D | SemaCodeComplete.cpp | 555 if (AllowNestedNameSpecifiers && SemaRef.getLangOpts().CPlusPlus && in isInterestingDecl() 575 if (!SemaRef.getLangOpts().CPlusPlus) in CheckHiddenResult() 792 if (!SemaRef.getLangOpts().CPlusPlus || !R.Declaration || in MaybeAddConstructorResults() 1059 if (SemaRef.getLangOpts().CPlusPlus) in IsOrdinaryName() 1061 else if (SemaRef.getLangOpts().ObjC1) { in IsOrdinaryName() 1077 if (SemaRef.getLangOpts().CPlusPlus) in IsOrdinaryNonTypeName() 1079 else if (SemaRef.getLangOpts().ObjC1) { in IsOrdinaryNonTypeName() 1104 if (SemaRef.getLangOpts().CPlusPlus) in IsOrdinaryNonValueName() 1204 if (!C.getLangOpts().CPlusPlus) in isObjCReceiverType() 1234 if ((SemaRef.getLangOpts().CPlusPlus && !IsOrdinaryName(ND)) || in IsObjCCollection() [all …]
|
/external/clang/lib/Lex/ |
D | TokenConcatenation.cpp | 49 const LangOptions &LangOpts = PP.getLangOpts(); in IsIdentifierStringPrefix() 90 if (PP.getLangOpts().CPlusPlus11) { in TokenConcatenation() 103 if (PP.getLangOpts().CPlusPlus1z) in TokenConcatenation() 223 if (!PP.getLangOpts().CPlusPlus11) in AvoidConcat() 262 (PP.getLangOpts().CPlusPlus && FirstChar == '*'); in AvoidConcat() 281 (PP.getLangOpts().CPlusPlus && FirstChar == ':'); in AvoidConcat() 285 return PP.getLangOpts().CPlusPlus && FirstChar == '*'; in AvoidConcat()
|
D | TokenLexer.cpp | 131 if (!HasPasteOperator && !PP.getLangOpts().MSVCCompat) in MaybeRemoveCommaBeforeVaArgs() 139 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode in MaybeRemoveCommaBeforeVaArgs() 286 if (PP.getLangOpts().MSVCCompat && NumToks == 1 && in ExpandFunctionArguments() 452 (PP.getLangOpts().MSVCCompat && in Lex() 527 if (PP.getLangOpts().MicrosoftExt && (CurToken >= 2) && in PasteTokens() 610 PP.getLangOpts(), ScratchBufStart, in PasteTokens() 635 if (PP.getLangOpts().MicrosoftExt && Tok.is(tok::slash) && in PasteTokens() 642 if (!PP.getLangOpts().AsmPreprocessor) { in PasteTokens() 646 PP.Diag(Loc, PP.getLangOpts().MicrosoftExt ? diag::ext_pp_bad_paste_ms in PasteTokens()
|
D | LiteralSupport.cpp | 563 if (!PP.getLangOpts().Half) break; in NumericLiteralParser() 605 if (PP.getLangOpts().MicrosoftExt) { in NumericLiteralParser() 644 if (*s == 'i' && PP.getLangOpts().CPlusPlus14) in NumericLiteralParser() 661 if (isValidUDSuffix(PP.getLangOpts(), UDSuffixBuf)) { in NumericLiteralParser() 810 << PP.getLangOpts().CPlusPlus << 1; in ParseNumberStartingWithZero() 833 if (!PP.getLangOpts().HexFloats) in ParseNumberStartingWithZero() 834 PP.Diag(TokLoc, PP.getLangOpts().CPlusPlus in ParseNumberStartingWithZero() 837 else if (PP.getLangOpts().CPlusPlus1z) in ParseNumberStartingWithZero() 842 << PP.getLangOpts().CPlusPlus << 0; in ParseNumberStartingWithZero() 852 PP.getLangOpts().CPlusPlus14 in ParseNumberStartingWithZero() [all …]
|
D | PPLexerChange.cpp | 623 if (!getLangOpts().ModulesLocalVisibility) { in EnterSubmodule() 684 if (getLangOpts().ModulesLocalVisibility) in needModuleMacros() 688 return getLangOpts().CompilingModule; in needModuleMacros() 698 (!getLangOpts().ModulesLocalVisibility && in LeaveSubmodule() 699 LeavingMod->getTopLevelModuleName() != getLangOpts().CurrentModule)) { in LeaveSubmodule() 724 if (getLangOpts().ModulesLocalVisibility) in LeaveSubmodule() 747 if (!getLangOpts().ModulesLocalVisibility) { in LeaveSubmodule() 787 if (getLangOpts().ModulesLocalVisibility) in LeaveSubmodule()
|
/external/clang/lib/Frontend/Rewrite/ |
D | FrontendActions.cpp | 100 CI.getLangOpts(), FixItOpts.get())); in BeginSourceFileAction() 126 CI.getLangOpts(), FixItOpts.get()); in BeginInvocation() 156 if (CI.getLangOpts().ObjCRuntime.isNonFragile()) in CreateASTConsumer() 158 InFile, OS, CI.getDiagnostics(), CI.getLangOpts(), in CreateASTConsumer() 162 CI.getDiagnostics(), CI.getLangOpts(), in CreateASTConsumer()
|
/external/clang/lib/CodeGen/ |
D | CGDeclCXX.cpp | 173 if (getLangOpts().OpenMP && D.hasAttr<OMPThreadPrivateDeclAttr>()) in EmitCXXGlobalVarDeclInit() 265 if (!getLangOpts().AppleKext && !TLS) { in CreateGlobalInitOrDestructFunction() 275 if (!getLangOpts().Exceptions) in CreateGlobalInitOrDestructFunction() 279 if (getLangOpts().Sanitize.hasOneOf(SanitizerKind::Address | in CreateGlobalInitOrDestructFunction() 282 if (getLangOpts().Sanitize.has(SanitizerKind::Thread)) in CreateGlobalInitOrDestructFunction() 284 if (getLangOpts().Sanitize.has(SanitizerKind::Memory)) in CreateGlobalInitOrDestructFunction() 286 if (getLangOpts().Sanitize.has(SanitizerKind::SafeStack)) in CreateGlobalInitOrDestructFunction() 321 if (getLangOpts().CUDA && getLangOpts().CUDAIsDevice && in EmitCXXGlobalVarDeclInitFunc() 554 if (getLangOpts().ObjCAutoRefCount && getLangOpts().CPlusPlus) { in GenerateCXXGlobalInitFunc()
|
D | SanitizerMetadata.cpp | 28 if (!CGM.getLangOpts().Sanitize.hasOneOf(SanitizerKind::Address | in reportGlobalToASan() 60 if (!CGM.getLangOpts().Sanitize.hasOneOf(SanitizerKind::Address | in reportGlobalToASan() 72 if (CGM.getLangOpts().Sanitize.hasOneOf(SanitizerKind::Address | in disableSanitizerForGlobal()
|
/external/clang/lib/Frontend/ |
D | FrontendActions.cpp | 269 CI.getLangOpts().CompilingModule = true; in BeginSourceFileAction() 296 if (CI.getLangOpts().CurrentModule.empty()) { in BeginSourceFileAction() 311 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in BeginSourceFileAction() 315 Module = HS.lookupModule(CI.getLangOpts().CurrentModule, in BeginSourceFileAction() 319 << CI.getLangOpts().CurrentModule << Filename; in BeginSourceFileAction() 327 if (!Module->isAvailable(CI.getLangOpts(), CI.getTarget(), Requirement, in BeginSourceFileAction() 356 CI.getLangOpts(), Module->IsExternC); in BeginSourceFileAction() 358 CI.getLangOpts(), FileMgr, in BeginSourceFileAction() 389 HS.getModuleFileName(CI.getLangOpts().CurrentModule, in ComputeASTConsumerArguments() 624 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in ExecuteAction() [all …]
|
D | FrontendAction.cpp | 219 CI.getDiagnosticClient().BeginSourceFile(CI.getLangOpts(), nullptr); in BeginSourceFile() 264 CI.getDiagnosticClient().BeginSourceFile(CI.getLangOpts(), nullptr); in BeginSourceFile() 295 CI.getLangOpts(), CI.getTargetOpts(), CI.getPreprocessorOpts(), in BeginSourceFile() 316 CI.getDiagnosticClient().BeginSourceFile(CI.getLangOpts(), in BeginSourceFile() 393 if (CI.getLangOpts().Modules) in BeginSourceFile() 397 PP.getLangOpts()); in BeginSourceFile() 401 assert((!CI.getLangOpts().Modules || CI.getModuleManager()) && in BeginSourceFile()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DebugCheckers.cpp | 82 cfg->viewCFG(mgr.getLangOpts()); in checkASTCodeBody() 101 PrintingPolicy Policy(mgr.getLangOpts()); in checkASTCodeBody() 107 cfg->dump(mgr.getLangOpts(), in checkASTCodeBody() 233 const LangOptions &Opts = C.getLangOpts(); in checkPostStmt()
|
/external/clang/lib/AST/ |
D | ExprClassification.cpp | 43 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyImpl() 104 const LangOptions &Lang = Ctx.getLangOpts(); in ClassifyInternal() 146 return Ctx.getLangOpts().CPlusPlus ? ClassifyTemporary(E->getType()) in ClassifyInternal() 431 (Ctx.getLangOpts().CPlusPlus && in ClassifyDecl() 443 if (!Ctx.getLangOpts().CPlusPlus) return Cl::CL_PRValue; in ClassifyUnnamed() 464 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyMemberExpr() 516 assert(Ctx.getLangOpts().CPlusPlus && in ClassifyBinaryOp() 552 assert(Ctx.getLangOpts().CPlusPlus && in ClassifyConditional() 602 if (Ctx.getLangOpts().CPlusPlus && E->getType()->isFunctionType()) in IsModifiable()
|
D | Decl.cpp | 51 Hidden = Ctx.getLangOpts().ModulesLocalVisibility; in TranslationUnitDecl() 540 const LangOptions &Opts = D->getASTContext().getLangOpts(); in useInlineVisibilityHidden() 599 if (Context.getLangOpts().CPlusPlus && in getLVForNamespaceScopeDecl() 679 globalVisibility = Context.getLangOpts().getValueVisibilityMode(); in getLVForNamespaceScopeDecl() 682 globalVisibility = Context.getLangOpts().getTypeVisibilityMode(); in getLVForNamespaceScopeDecl() 721 if (Context.getLangOpts().CPlusPlus && !isFirstInExternCContext(Var)) { in getLVForNamespaceScopeDecl() 761 if (Context.getLangOpts().CPlusPlus && in getLVForNamespaceScopeDecl() 1186 if (!Context.getLangOpts().CPlusPlus) in getLVForLocalDecl() 1262 if (!D->getASTContext().getLangOpts().CPlusPlus || in computeLVForDecl() 1368 const LangOptions &Opts = D->getASTContext().getLangOpts(); in getLVForDecl() [all …]
|