/external/clang/lib/Basic/ |
D | Warnings.cpp | 33 static void EmitUnknownDiagWarning(DiagnosticsEngine &Diags, in EmitUnknownDiagWarning() argument 38 Diags.Report(isPositive? diag::warn_unknown_warning_option_suggest : in EmitUnknownDiagWarning() 42 Diags.Report(isPositive? diag::warn_unknown_warning_option : in EmitUnknownDiagWarning() 47 void clang::ProcessWarningOptions(DiagnosticsEngine &Diags, in ProcessWarningOptions() argument 50 Diags.setSuppressSystemWarnings(true); // Default to -Wno-system-headers in ProcessWarningOptions() 51 Diags.setIgnoreAllWarnings(Opts.IgnoreWarnings); in ProcessWarningOptions() 52 Diags.setShowOverloads(Opts.getShowOverloads()); in ProcessWarningOptions() 54 Diags.setElideType(Opts.ElideType); in ProcessWarningOptions() 55 Diags.setPrintTemplateTree(Opts.ShowTemplateTree); in ProcessWarningOptions() 56 Diags.setShowColors(Opts.ShowColors); in ProcessWarningOptions() [all …]
|
/external/clang/lib/Rewrite/Frontend/ |
D | FixItRewriter.cpp | 30 FixItRewriter::FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in FixItRewriter() argument 33 : Diags(Diags), in FixItRewriter() 39 OwnsClient = Diags.ownsClient(); in FixItRewriter() 40 Client = Diags.takeClient(); in FixItRewriter() 41 Diags.setClient(this); in FixItRewriter() 45 Diags.takeClient(); in ~FixItRewriter() 46 Diags.setClient(Client, OwnsClient); in ~FixItRewriter() 98 Diags.Report(clang::diag::err_fe_unable_to_open_output) in WriteFixedFiles() 192 Diags.takeClient(); in Diag() 193 Diags.setClient(Client); in Diag() [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 | VerifyDiagnosticConsumer.cpp | 31 : Diags(_Diags), in VerifyDiagnosticConsumer() 32 PrimaryClient(Diags.getClient()), OwnsPrimaryClient(Diags.ownsClient()), in VerifyDiagnosticConsumer() 37 Diags.takeClient(); in VerifyDiagnosticConsumer() 38 if (Diags.hasSourceManager()) in VerifyDiagnosticConsumer() 39 setSourceManager(Diags.getSourceManager()); in VerifyDiagnosticConsumer() 47 Diags.takeClient(); in ~VerifyDiagnosticConsumer() 316 DiagnosticsEngine &Diags = PP ? PP->getDiagnostics() : SM.getDiagnostics(); in ParseDirective() local 343 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective() 353 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective() 408 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() [all …]
|
D | CreateInvocationFromCommandLine.cpp | 34 IntrusiveRefCntPtr<DiagnosticsEngine> Diags) { in createInvocationFromCommandLine() argument 35 if (!Diags.get()) { in createInvocationFromCommandLine() 38 Diags = CompilerInstance::createDiagnostics(new DiagnosticOptions); in createInvocationFromCommandLine() 50 *Diags); in createInvocationFromCommandLine() 70 Diags->Report(diag::err_fe_expected_compiler_job) << OS.str(); in createInvocationFromCommandLine() 76 Diags->Report(diag::err_fe_expected_clang_command); in createInvocationFromCommandLine() 86 *Diags)) in createInvocationFromCommandLine()
|
D | CompilerInvocation.cpp | 74 DiagnosticsEngine &Diags) { in getOptimizationLevel() argument 92 return getLastArgIntValue(Args, OPT_O, DefaultOpt, Diags); in getOptimizationLevel() 138 DiagnosticsEngine &Diags) { in ParseAnalyzerArgs() argument 149 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs() 165 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs() 181 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs() 197 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs() 213 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs() 236 getLastArgIntValue(Args, OPT_analyzer_max_loop, 4, Diags); in ParseAnalyzerArgs() 240 Opts.InlineMaxStackDepth, Diags); in ParseAnalyzerArgs() [all …]
|
D | CompilerInstance.cpp | 132 DiagnosticsEngine &Diags) { in SetUpDiagnosticLog() argument 142 Diags.Report(diag::warn_fe_cc_log_diagnostics_failure) in SetUpDiagnosticLog() 157 Diags.setClient(new ChainedDiagnosticConsumer(Diags.takeClient(), Logger)); in SetUpDiagnosticLog() 161 DiagnosticsEngine &Diags, in SetupSerializedDiagnostics() argument 169 Diags.Report(diag::warn_fe_serialized_diag_failure) in SetupSerializedDiagnostics() 177 Diags.setClient(new ChainedDiagnosticConsumer(Diags.takeClient(), in SetupSerializedDiagnostics() 194 Diags(new DiagnosticsEngine(DiagID, Opts)); in createDiagnostics() local 199 Diags->setClient(Client, ShouldOwnClient); in createDiagnostics() 201 Diags->setClient(new TextDiagnosticPrinter(llvm::errs(), Opts)); in createDiagnostics() 205 Diags->setClient(new VerifyDiagnosticConsumer(*Diags)); in createDiagnostics() [all …]
|
D | ASTUnit.cpp | 592 DiagnosticsEngine &Diags; member in __anonfa2e08d70211::CaptureDroppedDiagnostics 597 CaptureDroppedDiagnostics(bool RequestCapture, DiagnosticsEngine &Diags, in CaptureDroppedDiagnostics() argument 599 : Diags(Diags), Client(StoredDiags), PreviousClient(nullptr) in CaptureDroppedDiagnostics() 601 if (RequestCapture || Diags.getClient() == nullptr) { in CaptureDroppedDiagnostics() 602 PreviousClient = Diags.takeClient(); in CaptureDroppedDiagnostics() 603 Diags.setClient(&Client); in CaptureDroppedDiagnostics() 608 if (Diags.getClient() == &Client) { in ~CaptureDroppedDiagnostics() 609 Diags.takeClient(); in ~CaptureDroppedDiagnostics() 610 Diags.setClient(PreviousClient); in ~CaptureDroppedDiagnostics() 648 void ASTUnit::ConfigureDiags(IntrusiveRefCntPtr<DiagnosticsEngine> &Diags, in ConfigureDiags() argument [all …]
|
/external/clang/lib/CodeGen/ |
D | ModuleBuilder.cpp | 32 DiagnosticsEngine &Diags; member in __anon003f8cb10111::CodeGeneratorImpl 43 : Diags(diags), CodeGenOpts(CGO), in CodeGeneratorImpl() 76 Diags)); in Initialize() 83 if (Diags.hasErrorOccurred()) in HandleCXXStaticMemberVarInstantiation() 90 if (Diags.hasErrorOccurred()) in HandleTopLevelDecl() 106 if (Diags.hasErrorOccurred()) in HandleInlineMethodDefinition() 127 if (Diags.hasErrorOccurred()) in HandleTagDeclDefinition() 134 if (Diags.hasErrorOccurred()) in HandleTagDeclRequiredDefinition() 143 if (Diags.hasErrorOccurred()) { in HandleTranslationUnit() 155 if (Diags.hasErrorOccurred()) in CompleteTentativeDefinition() [all …]
|
D | CodeGenAction.cpp | 42 DiagnosticsEngine &Diags; member in clang::BackendConsumer 63 : Diags(_Diags), Action(action), CodeGenOpts(compopts), in BackendConsumer() 66 Gen(CreateLLVMCodeGen(Diags, infile, compopts, targetopts, C)), in BackendConsumer() 155 Diags.Report(diag::err_fe_cannot_link_module) in HandleTranslationUnit() 174 EmitBackendOutput(Diags, CodeGenOpts, TargetOpts, LangOpts, in HandleTranslationUnit() 319 Diags.Report(LocCookie, DiagID).AddString(Message); in InlineAsmDiagHandler2() 322 DiagnosticBuilder B = Diags.Report(Loc, diag::note_fe_inline_asm_here); in InlineAsmDiagHandler2() 338 Diags.Report(Loc, DiagID).AddString(Message); in InlineAsmDiagHandler2() 389 Diags.Report(LocCookie, DiagID).AddString(Message); in InlineAsmDiagHandler() 396 Diags.Report(Loc, DiagID).AddString(Message); in InlineAsmDiagHandler() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | ARCMT.cpp | 79 void CapturedDiagList::reportDiagnostics(DiagnosticsEngine &Diags) const { in reportDiagnostics() 81 Diags.Report(*I); in reportDiagnostics() 95 DiagnosticsEngine &Diags; member in __anon8ceb05a50111::CaptureDiagnosticConsumer 103 : Diags(diags), DiagClient(client), CapturedDiags(capturedDiags), in CaptureDiagnosticConsumer() 141 Diags.setLastDiagnosticIgnored(); in HandleDiagnostic() 178 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in createInvocationForMigration() local 183 FileMgr, *Diags); in createInvocationForMigration() 219 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in emitPremigrationErrors() local 222 Diags->setSourceManager(&PP.getSourceManager()); in emitPremigrationErrors() 225 arcDiags.reportDiagnostics(*Diags); in emitPremigrationErrors() [all …]
|
/external/clang/lib/Lex/ |
D | LiteralSupport.cpp | 64 static DiagnosticBuilder Diag(DiagnosticsEngine *Diags, in Diag() argument 71 return Diags->Report(Begin, DiagID) << in Diag() 81 DiagnosticsEngine *Diags, in ProcessCharEscape() argument 104 if (Diags) in ProcessCharEscape() 105 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape() 110 if (Diags) in ProcessCharEscape() 111 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape() 133 if (Diags) in ProcessCharEscape() 134 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape() 158 if (Overflow && Diags) // Too many digits to fit in in ProcessCharEscape() [all …]
|
D | ModuleMap.cpp | 62 Diags.Report(Id[0].second, diag::err_mmap_missing_module_unqualified) in resolveModuleId() 73 Diags.Report(Id[I].second, diag::err_mmap_missing_module_qualified) in resolveModuleId() 86 ModuleMap::ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags, in ModuleMap() argument 89 : SourceMgr(SourceMgr), Diags(Diags), LangOpts(LangOpts), Target(Target), in ModuleMap() 288 Diags.Report(FilenameLoc, diag::error_use_of_private_header_outside_module) in diagnoseHeaderInclusion() 295 Diags.Report(FilenameLoc, diag::error_undeclared_use_of_module) in diagnoseHeaderInclusion() 306 Diags.Report(FilenameLoc, diag::error_undeclared_use_of_module) in diagnoseHeaderInclusion() 312 Diags.Report(FilenameLoc, DiagID) << RequestingModule->getFullModuleName(); in diagnoseHeaderInclusion() 975 DiagnosticsEngine &Diags; member in clang::ModuleMapParser 1029 DiagnosticsEngine &Diags, in ModuleMapParser() argument [all …]
|
D | PTHLexer.cpp | 438 static void InvalidPTH(DiagnosticsEngine &Diags, const char *Msg) { in InvalidPTH() argument 439 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Error, "%0")) << Msg; in InvalidPTH() 443 DiagnosticsEngine &Diags) { in Create() argument 450 Diags.Report(diag::err_invalid_pth_file) << file; in Create() 465 Diags.Report(diag::err_invalid_pth_file) << file; in Create() 474 InvalidPTH(Diags, in Create() 485 Diags.Report(diag::err_invalid_pth_file) << file; in Create() 496 Diags.Report(diag::err_invalid_pth_file) << file; in Create() 505 InvalidPTH(Diags, "PTH file contains no cached source data"); in Create() 514 Diags.Report(diag::err_invalid_pth_file) << file; in Create() [all …]
|
/external/clang/tools/driver/ |
D | cc1as_main.cpp | 145 const char **ArgEnd, DiagnosticsEngine &Diags); 153 DiagnosticsEngine &Diags) { in CreateFromArgs() argument 167 Diags.Report(diag::err_drv_missing_argument) in CreateFromArgs() 176 Diags.Report(diag::err_drv_unknown_argument) << (*it)->getAsString(*Args); in CreateFromArgs() 217 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(*Args); in CreateFromArgs() 232 Diags.Report(diag::err_drv_invalid_value) in CreateFromArgs() 243 getLastArgIntValue(*Args.get(), OPT_output_asm_variant, 0, Diags); in CreateFromArgs() 255 DiagnosticsEngine &Diags, in GetOutputStream() argument 270 Diags.Report(diag::err_fe_unable_to_open_output) in GetOutputStream() 280 DiagnosticsEngine &Diags) { in ExecuteAssembler() argument [all …]
|
D | cc1_main.cpp | 46 DiagnosticsEngine &Diags = *static_cast<DiagnosticsEngine*>(UserData); in LLVMErrorHandler() local 48 Diags.Report(diag::err_fe_error_backend) << Message; in LLVMErrorHandler() 86 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer); in cc1_main() local 89 ArgBegin, ArgEnd, Diags); in cc1_main()
|
/external/clang/lib/AST/ |
D | MicrosoftMangle.cpp | 95 MicrosoftMangleContextImpl(ASTContext &Context, DiagnosticsEngine &Diags) in MicrosoftMangleContextImpl() argument 96 : MicrosoftMangleContext(Context, Diags) {} in MicrosoftMangleContextImpl() 363 DiagnosticsEngine &Diags = Context.getDiags(); in mangle() local 364 unsigned DiagID = Diags.getCustomDiagID( in mangle() 366 Diags.Report(D->getLocation(), DiagID) << D->getSourceRange(); in mangle() 820 DiagnosticsEngine &Diags = Context.getDiags(); in mangleNestedName() local 822 Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleNestedName() 824 Diags.Report(BD->getLocation(), DiagID); in mangleNestedName() 982 DiagnosticsEngine &Diags = Context.getDiags(); in mangleOperatorName() local 983 unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleOperatorName() [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() 166 static void groupDiagnostics(const std::vector<Record*> &Diags, in groupDiagnostics() argument 170 for (unsigned i = 0, e = Diags.size(); i != e; ++i) { in groupDiagnostics() 171 const Record *R = Diags[i]; in groupDiagnostics() 299 const std::vector<Record*> &Diags; member in __anon0b5aaf620311::InferPedantic 306 const std::vector<Record*> &Diags, in InferPedantic() argument 310 Diags(Diags), in InferPedantic() 400 for (unsigned i = 0, e = Diags.size(); i != e; ++i) { in compute() [all …]
|
/external/clang/include/clang/Frontend/ |
D | Utils.h | 179 IntrusiveRefCntPtr<DiagnosticsEngine> Diags = 186 DiagnosticsEngine *Diags = nullptr); 190 DiagnosticsEngine &Diags) { in getLastArgIntValue() argument 191 return getLastArgIntValue(Args, Id, Default, &Diags); in getLastArgIntValue() 196 DiagnosticsEngine *Diags = nullptr); 201 DiagnosticsEngine &Diags) { in getLastArgUInt64Value() argument 202 return getLastArgUInt64Value(Args, Id, Default, &Diags); in getLastArgUInt64Value()
|
/external/clang/unittests/Lex/ |
D | PPConditionalDirectiveRecordTest.cpp | 36 Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()), in PPConditionalDirectiveRecordTest() 37 SourceMgr(Diags, FileMgr), in PPConditionalDirectiveRecordTest() 41 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in PPConditionalDirectiveRecordTest() 47 DiagnosticsEngine Diags; member in __anon1d22d0a60111::PPConditionalDirectiveRecordTest 97 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F() 99 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F()
|
D | PPCallbacksTest.cpp | 121 Diags(DiagID, DiagOpts.get(), new IgnoringDiagConsumer()), in PPCallbacksTest() 122 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions()) { in PPCallbacksTest() 124 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in PPCallbacksTest() 131 DiagnosticsEngine Diags; member in __anonac01f1f40111::PPCallbacksTest 169 HeaderSearch HeaderInfo(HSOpts, SourceMgr, Diags, LangOpts, in InclusionDirectiveFilenameRange() 174 Preprocessor PP(PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader, in InclusionDirectiveFilenameRange() 204 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, in PragmaOpenCLExtensionCall() 207 Preprocessor PP(new PreprocessorOptions(), Diags, OpenCLLangOpts, SourceMgr, in PragmaOpenCLExtensionCall()
|
/external/clang/include/clang/AST/ |
D | Mangle.h | 52 DiagnosticsEngine &Diags; variable 63 DiagnosticsEngine &Diags, in MangleContext() argument 65 : Context(Context), Diags(Diags), Kind(Kind) {} in MangleContext() 71 DiagnosticsEngine &getDiags() const { return Diags; } in getDiags() 164 DiagnosticsEngine &Diags); 209 DiagnosticsEngine &Diags);
|
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 37 Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()), in SourceManagerTest() 38 SourceMgr(Diags, FileMgr), in SourceManagerTest() 41 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in SourceManagerTest() 47 DiagnosticsEngine Diags; member in __anonf5b5f4d90111::SourceManagerTest 82 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F() 84 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F() 199 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F() 201 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F() 297 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F() 299 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F()
|
/external/clang/examples/clang-interpreter/ |
D | main.cpp | 77 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient); in main() local 78 Driver TheDriver(Path, llvm::sys::getProcessTriple(), Diags); in main() 100 Diags.Report(diag::err_fe_expected_compiler_job) << OS.str(); in main() 106 Diags.Report(diag::err_fe_expected_clang_command); in main() 117 Diags); in main()
|
/external/clang/tools/libclang/ |
D | CIndexDiagnostic.cpp | 233 CXDiagnosticSetImpl *Diags = static_cast<CXDiagnosticSetImpl*>(D); in clang_getDiagnostic() local 234 if (Index >= Diags->getNumDiagnostics()) in clang_getDiagnostic() 237 return Diags->getDiagnostic(Index); in clang_getDiagnostic() 455 void clang_disposeDiagnosticSet(CXDiagnosticSet Diags) { in clang_disposeDiagnosticSet() argument 456 if (CXDiagnosticSetImpl *D = static_cast<CXDiagnosticSetImpl *>(Diags)) { in clang_disposeDiagnosticSet() 462 CXDiagnostic clang_getDiagnosticInSet(CXDiagnosticSet Diags, in clang_getDiagnosticInSet() argument 464 if (CXDiagnosticSetImpl *D = static_cast<CXDiagnosticSetImpl*>(Diags)) in clang_getDiagnosticInSet() 478 unsigned clang_getNumDiagnosticsInSet(CXDiagnosticSet Diags) { in clang_getNumDiagnosticsInSet() argument 479 if (CXDiagnosticSetImpl *D = static_cast<CXDiagnosticSetImpl*>(Diags)) in clang_getNumDiagnosticsInSet()
|