/external/clang/lib/Frontend/ |
D | TextDiagnosticPrinter.cpp | 30 : OS(os), DiagOpts(diags), in TextDiagnosticPrinter() 42 TextDiag.reset(new TextDiagnostic(OS, LO, &*DiagOpts)); in BeginSourceFile() 57 const DiagnosticOptions &DiagOpts) { in printDiagnosticOptions() argument 59 if (DiagOpts.ShowOptionNames) { in printDiagnosticOptions() 94 if (DiagOpts.ShowCategories) { in printDiagnosticOptions() 100 if (DiagOpts.ShowCategories == 1) in printDiagnosticOptions() 103 assert(DiagOpts.ShowCategories == 2 && "Invalid ShowCategories value"); in printDiagnosticOptions() 123 printDiagnosticOptions(DiagMessageStream, Level, Info, *DiagOpts); in HandleDiagnostic() 139 TextDiagnostic::printDiagnosticLevel(OS, Level, DiagOpts->ShowColors, in HandleDiagnostic() 140 DiagOpts->CLFallbackMode); in HandleDiagnostic() [all …]
|
D | TextDiagnostic.cpp | 669 DiagnosticOptions *DiagOpts) in TextDiagnostic() argument 670 : DiagnosticRenderer(LangOpts, DiagOpts), OS(OS) {} in TextDiagnostic() 688 if (DiagOpts->ShowColors) in emitDiagnosticMessage() 691 printDiagnosticLevel(OS, Level, DiagOpts->ShowColors, in emitDiagnosticMessage() 692 DiagOpts->CLFallbackMode); in emitDiagnosticMessage() 696 DiagOpts->MessageLength, DiagOpts->ShowColors); in emitDiagnosticMessage() 793 if (!DiagOpts->ShowLocation) in emitDiagnosticLoc() 796 if (DiagOpts->ShowColors) in emitDiagnosticLoc() 800 switch (DiagOpts->getFormat()) { in emitDiagnosticLoc() 806 if (DiagOpts->ShowColumn) in emitDiagnosticLoc() [all …]
|
D | DiagnosticRenderer.cpp | 27 DiagnosticOptions *DiagOpts) in DiagnosticRenderer() argument 28 : LangOpts(LangOpts), DiagOpts(DiagOpts), LastLevel() {} in DiagnosticRenderer() 117 PresumedLoc PLoc = SM->getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitDiagnostic() 179 if (!DiagOpts->ShowNoteIncludeStack && Level == DiagnosticsEngine::Note) in emitIncludeStack() 199 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitIncludeStackRecursively() 242 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitImportStackRecursively() 262 DiagOpts->ShowPresumedLoc), in emitModuleBuildStack() 556 unsigned MacroLimit = DiagOpts->MacroBacktraceLimit; in emitMacroExpansions()
|
D | FrontendActions.cpp | 516 bool ReadDiagnosticOptions(IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts, in ReadDiagnosticOptions() argument 519 #define DIAGOPT(Name, Bits, Default) DUMP_BOOLEAN(DiagOpts->Name, #Name); in ReadDiagnosticOptions() 521 Out.indent(4) << #Name << ": " << DiagOpts->get##Name() << "\n"; in ReadDiagnosticOptions() 523 Out.indent(4) << #Name << ": " << DiagOpts->Name << "\n"; in ReadDiagnosticOptions() 527 for (const std::string &Warning : DiagOpts->Warnings) in ReadDiagnosticOptions() 529 for (const std::string &Remark : DiagOpts->Remarks) in ReadDiagnosticOptions()
|
D | SerializedDiagnosticPrinter.cpp | 63 DiagnosticOptions *DiagOpts) in SDiagsRenderer() argument 64 : DiagnosticNoteRenderer(LangOpts, DiagOpts), Writer(Writer) {} in SDiagsRenderer() 259 : DiagOpts(Diags), Stream(Buffer), OutputFile(File.str()), in SharedState() 263 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; member 623 SDiagsRenderer Renderer(*this, *LangOpts, &*State->DiagOpts); in HandleDiagnostic() 773 new TextDiagnosticPrinter(llvm::errs(), State->DiagOpts.get()); in getMetaDiags() 775 IDs, State->DiagOpts.get(), Client); in getMetaDiags()
|
D | CompilerInstance.cpp | 144 static void SetUpDiagnosticLog(DiagnosticOptions *DiagOpts, in SetUpDiagnosticLog() argument 150 if (DiagOpts->DiagnosticLogFile != "-") { in SetUpDiagnosticLog() 153 DiagOpts->DiagnosticLogFile, EC, in SetUpDiagnosticLog() 157 << DiagOpts->DiagnosticLogFile << EC.message(); in SetUpDiagnosticLog() 166 auto Logger = llvm::make_unique<LogDiagnosticPrinter>(*OS, DiagOpts, in SetUpDiagnosticLog() 175 static void SetupSerializedDiagnostics(DiagnosticOptions *DiagOpts, in SetupSerializedDiagnostics() argument 179 clang::serialized_diags::create(OutputFile, DiagOpts); in SetupSerializedDiagnostics()
|
/external/clang/unittests/Driver/ |
D | ToolChainTest.cpp | 29 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in TEST() local 33 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer); in TEST() 82 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in TEST() local 86 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer); in TEST()
|
/external/clang/tools/driver/ |
D | driver.cpp | 264 auto *DiagOpts = new DiagnosticOptions; in CreateAndPopulateDiagOpts() local 272 (void)ParseDiagnosticArgs(*DiagOpts, Args); in CreateAndPopulateDiagOpts() 273 return DiagOpts; in CreateAndPopulateDiagOpts() 429 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = in main() local 433 = new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts); in main() 438 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient); in main() 440 if (!DiagOpts->DiagnosticSerializationFile.empty()) { in main() 442 clang::serialized_diags::create(DiagOpts->DiagnosticSerializationFile, in main() 443 &*DiagOpts, /*MergeChildRecords=*/true); in main() 448 ProcessWarningOptions(Diags, *DiagOpts, /*ReportDiags=*/false); in main()
|
D | cc1_main.cpp | 89 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in cc1_main() local 91 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer); in cc1_main()
|
D | cc1as_main.cpp | 457 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in cc1as_main() local 459 = new TextDiagnosticPrinter(errs(), &*DiagOpts); in cc1as_main() 462 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient); in cc1as_main()
|
/external/clang/unittests/Tooling/ |
D | RewriterTestContext.h | 38 : DiagOpts(new DiagnosticOptions()), in RewriterTestContext() 40 &*DiagOpts), in RewriterTestContext() 41 DiagnosticPrinter(llvm::outs(), &*DiagOpts), in RewriterTestContext() 114 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
|
/external/clang/lib/Index/ |
D | SimpleFormatContext.h | 38 : DiagOpts(new DiagnosticOptions()), in SimpleFormatContext() 40 DiagOpts.get())), in SimpleFormatContext() 64 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
|
/external/clang/include/clang/Frontend/ |
D | DiagnosticRenderer.h | 49 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable 71 DiagnosticOptions *DiagOpts); 158 DiagnosticOptions *DiagOpts) in DiagnosticNoteRenderer() argument 159 : DiagnosticRenderer(LangOpts, DiagOpts) {} in DiagnosticNoteRenderer()
|
D | TextDiagnosticPrinter.h | 30 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
|
D | LogDiagnosticPrinter.h | 55 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
|
D | TextDiagnostic.h | 41 DiagnosticOptions *DiagOpts);
|
/external/clang/lib/Tooling/ |
D | Refactoring.cpp | 42 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in runAndSave() local 43 TextDiagnosticPrinter DiagnosticPrinter(llvm::errs(), &*DiagOpts); in runAndSave() 46 &*DiagOpts, &DiagnosticPrinter, false); in runAndSave()
|
D | CompilationDatabase.cpp | 208 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in stripPositionalArgs() local 212 &*DiagOpts, &DiagClient, false); in stripPositionalArgs()
|
D | Tooling.cpp | 242 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in run() local 244 llvm::errs(), &*DiagOpts); in run() 246 IntrusiveRefCntPtr<clang::DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts, in run()
|
/external/clang/tools/arcmt-test/ |
D | arcmt-test.cpp | 109 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in checkForMigration() local 111 new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts); in checkForMigration() 114 new DiagnosticsEngine(DiagID, &*DiagOpts, DiagClient)); in checkForMigration() 154 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in performTransformations() local 156 new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts); in performTransformations() 159 new DiagnosticsEngine(DiagID, &*DiagOpts, &*DiagClient)); in performTransformations()
|
/external/clang/tools/clang-fuzzer/ |
D | ClangFuzzer.cpp | 31 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in LLVMFuzzerTestOneInput() local 33 IntrusiveRefCntPtr<clang::DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts, in LLVMFuzzerTestOneInput()
|
/external/clang/examples/clang-interpreter/ |
D | main.cpp | 83 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in main() local 85 new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts); in main() 88 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient); in main()
|
/external/clang/unittests/Lex/ |
D | PPCallbacksTest.cpp | 115 DiagID(new DiagnosticIDs()), DiagOpts(new DiagnosticOptions()), in PPCallbacksTest() 116 Diags(DiagID, DiagOpts.get(), new IgnoringDiagConsumer()), in PPCallbacksTest() 125 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; member in __anoned4599ed0111::PPCallbacksTest
|
/external/clang/tools/libclang/ |
D | CIndexDiagnostic.cpp | 90 DiagnosticOptions *DiagOpts, in CXDiagnosticRenderer() argument 92 : DiagnosticNoteRenderer(LangOpts, DiagOpts), in CXDiagnosticRenderer()
|
D | CIndexCodeCompletion.cpp | 261 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; member 324 DiagOpts(new DiagnosticOptions), in AllocatedCXCodeCompleteResults() 326 IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs), &*DiagOpts)), in AllocatedCXCodeCompleteResults()
|