/external/clang/lib/Basic/ |
D | Warnings.cpp | 35 static void EmitUnknownDiagWarning(DiagnosticsEngine &Diags, in EmitUnknownDiagWarning() argument 39 Diags.Report(diag::warn_unknown_diag_option) in EmitUnknownDiagWarning() 44 void clang::ProcessWarningOptions(DiagnosticsEngine &Diags, in ProcessWarningOptions() argument 47 Diags.setSuppressSystemWarnings(true); // Default to -Wno-system-headers in ProcessWarningOptions() 48 Diags.setIgnoreAllWarnings(Opts.IgnoreWarnings); in ProcessWarningOptions() 49 Diags.setShowOverloads(Opts.getShowOverloads()); in ProcessWarningOptions() 51 Diags.setElideType(Opts.ElideType); in ProcessWarningOptions() 52 Diags.setPrintTemplateTree(Opts.ShowTemplateTree); in ProcessWarningOptions() 53 Diags.setShowColors(Opts.ShowColors); in ProcessWarningOptions() 57 Diags.setErrorLimit(Opts.ErrorLimit); in ProcessWarningOptions() [all …]
|
/external/clang/unittests/Basic/ |
D | DiagnosticTest.cpp | 21 DiagnosticsEngine Diags(new DiagnosticIDs(), in TEST() local 24 Diags.setSuppressAllDiagnostics(true); in TEST() 27 DiagnosticErrorTrap trap(Diags); in TEST() 30 Diags.Report(diag::err_target_unknown_triple) << "unknown"; in TEST() 33 Diags.Report(diag::err_cannot_open_file) << "file" << "error"; in TEST() 37 Diags.Report(diag::warn_mt_message) << "warning"; in TEST() 43 EXPECT_FALSE(Diags.hasErrorOccurred()); in TEST() 44 EXPECT_FALSE(Diags.hasFatalErrorOccurred()); in TEST() 45 EXPECT_FALSE(Diags.hasUncompilableErrorOccurred()); in TEST() 46 EXPECT_FALSE(Diags.hasUnrecoverableErrorOccurred()); in TEST() [all …]
|
D | SourceManagerTest.cpp | 36 Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()), in SourceManagerTest() 37 SourceMgr(Diags, FileMgr), in SourceManagerTest() 40 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in SourceManagerTest() 46 DiagnosticsEngine Diags; member in __anon6f5b52de0111::SourceManagerTest 81 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F() 83 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F() 201 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F() 203 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F() 301 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F() 303 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F()
|
/external/clang/lib/ARCMigrate/ |
D | ARCMT.cpp | 80 void CapturedDiagList::reportDiagnostics(DiagnosticsEngine &Diags) const { in reportDiagnostics() 82 Diags.Report(*I); in reportDiagnostics() 96 DiagnosticsEngine &Diags; member in __anon6ed5378a0111::CaptureDiagnosticConsumer 104 : Diags(diags), DiagClient(client), CapturedDiags(capturedDiags), in CaptureDiagnosticConsumer() 142 Diags.setLastDiagnosticIgnored(); in HandleDiagnostic() 183 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in createInvocationForMigration() local 187 PPOpts.ImplicitPCHInclude, FileMgr, PCHContainerRdr, *Diags); in createInvocationForMigration() 224 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in emitPremigrationErrors() local 227 Diags->setSourceManager(&PP.getSourceManager()); in emitPremigrationErrors() 230 arcDiags.reportDiagnostics(*Diags); in emitPremigrationErrors() [all …]
|
/external/clang/lib/Frontend/ |
D | TextDiagnosticBuffer.cpp | 48 void TextDiagnosticBuffer::FlushDiagnostics(DiagnosticsEngine &Diags) const { in FlushDiagnostics() 51 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Error, "%0")) in FlushDiagnostics() 54 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Warning, "%0")) in FlushDiagnostics() 57 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Remark, "%0")) in FlushDiagnostics() 60 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Note, "%0")) in FlushDiagnostics()
|
D | CompilerInvocation.cpp | 82 DiagnosticsEngine &Diags) { in getOptimizationLevel() argument 100 return getLastArgIntValue(Args, OPT_O, DefaultOpt, Diags); in getOptimizationLevel() 156 DiagnosticsEngine &Diags) { in ParseAnalyzerArgs() argument 167 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs() 183 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs() 199 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs() 215 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs() 231 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs() 256 getLastArgIntValue(Args, OPT_analyzer_max_loop, 4, Diags); in ParseAnalyzerArgs() 260 Opts.InlineMaxStackDepth, Diags); in ParseAnalyzerArgs() [all …]
|
D | VerifyDiagnosticConsumer.cpp | 31 : Diags(Diags_), in VerifyDiagnosticConsumer() 32 PrimaryClient(Diags.getClient()), PrimaryClientOwner(Diags.takeClient()), in VerifyDiagnosticConsumer() 37 if (Diags.hasSourceManager()) in VerifyDiagnosticConsumer() 38 setSourceManager(Diags.getSourceManager()); in VerifyDiagnosticConsumer() 46 Diags.takeClient().release(); in ~VerifyDiagnosticConsumer() 311 DiagnosticsEngine &Diags = PP ? PP->getDiagnostics() : SM.getDiagnostics(); in ParseDirective() local 338 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective() 348 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective() 404 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 421 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() [all …]
|
D | CreateInvocationFromCommandLine.cpp | 35 IntrusiveRefCntPtr<DiagnosticsEngine> Diags) { in createInvocationFromCommandLine() argument 36 if (!Diags.get()) { in createInvocationFromCommandLine() 39 Diags = CompilerInstance::createDiagnostics(new DiagnosticOptions); in createInvocationFromCommandLine() 49 *Diags); in createInvocationFromCommandLine() 85 Diags->Report(diag::err_fe_expected_compiler_job) << OS.str(); in createInvocationFromCommandLine() 91 Diags->Report(diag::err_fe_expected_clang_command); in createInvocationFromCommandLine() 101 *Diags)) in createInvocationFromCommandLine()
|
D | CompilerInstance.cpp | 146 DiagnosticsEngine &Diags) { in SetUpDiagnosticLog() argument 156 Diags.Report(diag::warn_fe_cc_log_diagnostics_failure) in SetUpDiagnosticLog() 170 assert(Diags.ownsClient()); in SetUpDiagnosticLog() 171 Diags.setClient( in SetUpDiagnosticLog() 172 new ChainedDiagnosticConsumer(Diags.takeClient(), std::move(Logger))); in SetUpDiagnosticLog() 176 DiagnosticsEngine &Diags, in SetupSerializedDiagnostics() argument 181 if (Diags.ownsClient()) { in SetupSerializedDiagnostics() 182 Diags.setClient(new ChainedDiagnosticConsumer( in SetupSerializedDiagnostics() 183 Diags.takeClient(), std::move(SerializedConsumer))); in SetupSerializedDiagnostics() 185 Diags.setClient(new ChainedDiagnosticConsumer( in SetupSerializedDiagnostics() [all …]
|
/external/clang/lib/CodeGen/ |
D | ModuleBuilder.cpp | 34 DiagnosticsEngine &Diags; member in __anon075db5b60111::CodeGeneratorImpl 75 : Diags(diags), Ctx(nullptr), HeaderSearchOpts(HSO), in CodeGeneratorImpl() 84 Diags.hasErrorOccurred()); in ~CodeGeneratorImpl() 125 *M, Diags, CoverageInfo)); in Initialize() 134 if (Diags.hasErrorOccurred()) in HandleCXXStaticMemberVarInstantiation() 141 if (Diags.hasErrorOccurred()) in HandleTopLevelDecl() 167 if (Diags.hasErrorOccurred()) in HandleInlineFunctionDefinition() 205 if (Diags.hasErrorOccurred()) in HandleTagDeclDefinition() 238 if (Diags.hasErrorOccurred()) in HandleTagDeclRequiredDefinition() 252 if (!Diags.hasErrorOccurred() && Builder) in HandleTranslationUnit() [all …]
|
D | CodeGenAction.cpp | 44 DiagnosticsEngine &Diags; member in clang::BackendConsumer 65 BackendAction Action, DiagnosticsEngine &Diags, in BackendConsumer() argument 73 : Diags(Diags), Action(Action), CodeGenOpts(CodeGenOpts), in BackendConsumer() 76 Gen(CreateLLVMCodeGen(Diags, InFile, HeaderSearchOpts, PPOpts, in BackendConsumer() 178 EmitBackendOutput(Diags, CodeGenOpts, TargetOpts, LangOpts, in HandleTranslationUnit() 328 Diags.Report(LocCookie, DiagID).AddString(Message); in InlineAsmDiagHandler2() 331 DiagnosticBuilder B = Diags.Report(Loc, diag::note_fe_inline_asm_here); in InlineAsmDiagHandler2() 346 Diags.Report(Loc, DiagID).AddString(Message); in InlineAsmDiagHandler2() 397 Diags.Report(LocCookie, DiagID).AddString(Message); in InlineAsmDiagHandler() 404 Diags.Report(Loc, DiagID).AddString(Message); in InlineAsmDiagHandler() [all …]
|
D | ObjectFilePCHContainerOperations.cpp | 45 DiagnosticsEngine &Diags; member in __anonc27a6fc20111::PCHContainerGenerator 143 : Diags(CI.getDiagnostics()), MainFileName(MainFileName), in PCHContainerGenerator() 169 *Ctx, HeaderSearchOpts, PreprocessorOpts, CodeGenOpts, *M, Diags)); in Initialize() 179 if (Diags.hasErrorOccurred()) in HandleTopLevelDecl() 196 if (Diags.hasErrorOccurred()) in HandleTagDeclDefinition() 221 if (Diags.hasErrorOccurred()) in HandleTagDeclRequiredDefinition() 236 if (Diags.hasErrorOccurred()) in HandleTranslationUnit() 285 clang::EmitBackendOutput(Diags, CodeGenOpts, TargetOpts, LangOpts, in HandleTranslationUnit() 292 clang::EmitBackendOutput(Diags, CodeGenOpts, TargetOpts, LangOpts, in HandleTranslationUnit()
|
/external/clang/lib/Lex/ |
D | LiteralSupport.cpp | 65 static DiagnosticBuilder Diag(DiagnosticsEngine *Diags, in Diag() argument 72 return Diags->Report(Begin, DiagID) << in Diag() 82 DiagnosticsEngine *Diags, in ProcessCharEscape() argument 105 if (Diags) in ProcessCharEscape() 106 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape() 111 if (Diags) in ProcessCharEscape() 112 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape() 134 if (Diags) in ProcessCharEscape() 135 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape() 160 if (Overflow && Diags) // Too many digits to fit in in ProcessCharEscape() [all …]
|
D | ModuleMap.cpp | 63 Diags.Report(Id[0].second, diag::err_mmap_missing_module_unqualified) in resolveModuleId() 74 Diags.Report(Id[I].second, diag::err_mmap_missing_module_qualified) in resolveModuleId() 87 ModuleMap::ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags, in ModuleMap() argument 90 : SourceMgr(SourceMgr), Diags(Diags), LangOpts(LangOpts), Target(Target), in ModuleMap() 280 Diags.Report(FilenameLoc, diag::warn_use_of_private_header_outside_module) in diagnoseHeaderInclusion() 287 Diags.Report(FilenameLoc, diag::err_undeclared_use_of_module) in diagnoseHeaderInclusion() 298 Diags.Report(FilenameLoc, diag::err_undeclared_use_of_module) in diagnoseHeaderInclusion() 304 Diags.Report(FilenameLoc, DiagID) << RequestingModule->getFullModuleName(); in diagnoseHeaderInclusion() 1015 DiagnosticsEngine &Diags; member in clang::ModuleMapParser 1082 DiagnosticsEngine &Diags, in ModuleMapParser() argument [all …]
|
D | PTHLexer.cpp | 430 static void InvalidPTH(DiagnosticsEngine &Diags, const char *Msg) { in InvalidPTH() argument 431 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Error, "%0")) << Msg; in InvalidPTH() 434 PTHManager *PTHManager::Create(StringRef file, DiagnosticsEngine &Diags) { in Create() argument 441 Diags.Report(diag::err_invalid_pth_file) << file; in Create() 456 Diags.Report(diag::err_invalid_pth_file) << file; in Create() 465 InvalidPTH(Diags, in Create() 476 Diags.Report(diag::err_invalid_pth_file) << file; in Create() 487 Diags.Report(diag::err_invalid_pth_file) << file; in Create() 496 InvalidPTH(Diags, "PTH file contains no cached source data"); in Create() 505 Diags.Report(diag::err_invalid_pth_file) << file; in Create() [all …]
|
/external/clang/tools/driver/ |
D | cc1as_main.cpp | 153 DiagnosticsEngine &Diags); 160 DiagnosticsEngine &Diags) { in CreateFromArgs() argument 173 Diags.Report(diag::err_drv_missing_argument) in CreateFromArgs() 180 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(Args); in CreateFromArgs() 203 Opts.DwarfVersion = getLastArgIntValue(Args, OPT_dwarf_version_EQ, 2, Diags); in CreateFromArgs() 219 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(Args); in CreateFromArgs() 234 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Name; in CreateFromArgs() 244 getLastArgIntValue(Args, OPT_output_asm_variant, 0, Diags); in CreateFromArgs() 260 getOutputStream(AssemblerInvocation &Opts, DiagnosticsEngine &Diags, in getOutputStream() argument 274 Diags.Report(diag::err_fe_unable_to_open_output) << Opts.OutputPath in getOutputStream() [all …]
|
D | cc1_main.cpp | 47 DiagnosticsEngine &Diags = *static_cast<DiagnosticsEngine*>(UserData); in LLVMErrorHandler() local 49 Diags.Report(diag::err_fe_error_backend) << Message; in LLVMErrorHandler() 91 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer); in cc1_main() local 93 Clang->getInvocation(), Argv.begin(), Argv.end(), Diags); in cc1_main()
|
/external/clang/lib/Frontend/Rewrite/ |
D | FixItRewriter.cpp | 30 FixItRewriter::FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in FixItRewriter() argument 33 : Diags(Diags), in FixItRewriter() 39 Owner = Diags.takeClient(); in FixItRewriter() 40 Client = Diags.getClient(); in FixItRewriter() 41 Diags.setClient(this, false); in FixItRewriter() 45 Diags.setClient(Client, Owner.release() != nullptr); in ~FixItRewriter() 103 Diags.Report(clang::diag::err_fe_unable_to_open_output) << Filename in WriteFixedFiles() 197 Diags.setClient(Client, false); in Diag() 198 Diags.Clear(); in Diag() 199 Diags.Report(Loc, DiagID); in Diag() [all …]
|
/external/clang/utils/TableGen/ |
D | ClangDiagnosticsEmitter.cpp | 108 std::vector<Record*> Diags = in DiagCategoryIDMap() local 110 for (unsigned i = 0, e = Diags.size(); i != e; ++i) { in DiagCategoryIDMap() 111 std::string Category = getDiagnosticCategory(Diags[i], ParentInfo); in DiagCategoryIDMap() 165 static void groupDiagnostics(const std::vector<Record*> &Diags, in groupDiagnostics() argument 169 for (unsigned i = 0, e = Diags.size(); i != e; ++i) { in groupDiagnostics() 170 const Record *R = Diags[i]; in groupDiagnostics() 298 const std::vector<Record*> &Diags; member in __anona4b498870411::InferPedantic 305 const std::vector<Record*> &Diags, in InferPedantic() argument 309 Diags(Diags), in InferPedantic() 399 for (unsigned i = 0, e = Diags.size(); i != e; ++i) { in compute() [all …]
|
/external/clang/lib/AST/ |
D | MicrosoftMangle.cpp | 134 MicrosoftMangleContextImpl(ASTContext &Context, DiagnosticsEngine &Diags) in MicrosoftMangleContextImpl() argument 135 : MicrosoftMangleContext(Context, Diags) {} in MicrosoftMangleContextImpl() 914 DiagnosticsEngine &Diags = Context.getDiags(); in mangleNestedName() local 916 Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleNestedName() 918 Diags.Report(BD->getLocation(), DiagID); in mangleNestedName() 1078 DiagnosticsEngine &Diags = Context.getDiags(); in mangleOperatorName() local 1079 unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleOperatorName() 1081 Diags.Report(Loc, DiagID); in mangleOperatorName() 1086 DiagnosticsEngine &Diags = Context.getDiags(); in mangleOperatorName() local 1087 unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleOperatorName() [all …]
|
/external/clang/include/clang/Frontend/ |
D | Utils.h | 189 IntrusiveRefCntPtr<DiagnosticsEngine> Diags = 196 DiagnosticsEngine *Diags = nullptr); 200 DiagnosticsEngine &Diags) { in getLastArgIntValue() argument 201 return getLastArgIntValue(Args, Id, Default, &Diags); in getLastArgIntValue() 206 DiagnosticsEngine *Diags = nullptr); 211 DiagnosticsEngine &Diags) { in getLastArgUInt64Value() argument 212 return getLastArgUInt64Value(Args, Id, Default, &Diags); in getLastArgUInt64Value()
|
/external/clang/unittests/Lex/ |
D | PPConditionalDirectiveRecordTest.cpp | 35 Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()), in PPConditionalDirectiveRecordTest() 36 SourceMgr(Diags, FileMgr), in PPConditionalDirectiveRecordTest() 40 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in PPConditionalDirectiveRecordTest() 46 DiagnosticsEngine Diags; member in __anon18520ecb0111::PPConditionalDirectiveRecordTest 96 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F() 98 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F()
|
D | PPCallbacksTest.cpp | 116 Diags(DiagID, DiagOpts.get(), new IgnoringDiagConsumer()), in PPCallbacksTest() 117 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions()) { in PPCallbacksTest() 119 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in PPCallbacksTest() 126 DiagnosticsEngine Diags; member in __anonf86715790111::PPCallbacksTest 166 HeaderSearch HeaderInfo(HSOpts, SourceMgr, Diags, LangOpts, in InclusionDirectiveFilenameRange() 171 Preprocessor PP(PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader, in InclusionDirectiveFilenameRange() 202 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, in PragmaOpenCLExtensionCall() 205 Preprocessor PP(new PreprocessorOptions(), Diags, OpenCLLangOpts, SourceMgr, in PragmaOpenCLExtensionCall()
|
/external/clang/unittests/Driver/ |
D | ToolChainTest.cpp | 33 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer); in TEST() local 36 Driver TheDriver("/bin/clang", "arm-linux-gnueabihf", Diags, in TEST() 86 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer); in TEST() local 89 Driver TheDriver("/home/test/bin/clang", "arm-linux-gnueabi", Diags, in TEST()
|
/external/clang/include/clang/AST/ |
D | Mangle.h | 53 DiagnosticsEngine &Diags; variable 64 DiagnosticsEngine &Diags, in MangleContext() argument 66 : Context(Context), Diags(Diags), Kind(Kind) {} in MangleContext() 72 DiagnosticsEngine &getDiags() const { return Diags; } in getDiags() 177 DiagnosticsEngine &Diags); 242 DiagnosticsEngine &Diags);
|