Home
last modified time | relevance | path

Searched refs:DiagOpts (Results 1 – 25 of 31) sorted by relevance

12

/external/clang/lib/Frontend/
DTextDiagnosticPrinter.cpp30 : 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 …]
DTextDiagnostic.cpp669 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 …]
DDiagnosticRenderer.cpp27 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()
DFrontendActions.cpp516 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()
DSerializedDiagnosticPrinter.cpp63 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()
DCompilerInstance.cpp144 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/
DToolChainTest.cpp29 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/
Ddriver.cpp264 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()
Dcc1_main.cpp89 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in cc1_main() local
91 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer); in cc1_main()
Dcc1as_main.cpp457 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/
DRewriterTestContext.h38 : 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/
DSimpleFormatContext.h38 : DiagOpts(new DiagnosticOptions()), in SimpleFormatContext()
40 DiagOpts.get())), in SimpleFormatContext()
64 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
/external/clang/include/clang/Frontend/
DDiagnosticRenderer.h49 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
71 DiagnosticOptions *DiagOpts);
158 DiagnosticOptions *DiagOpts) in DiagnosticNoteRenderer() argument
159 : DiagnosticRenderer(LangOpts, DiagOpts) {} in DiagnosticNoteRenderer()
DTextDiagnosticPrinter.h30 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
DLogDiagnosticPrinter.h55 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
DTextDiagnostic.h41 DiagnosticOptions *DiagOpts);
/external/clang/lib/Tooling/
DRefactoring.cpp42 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in runAndSave() local
43 TextDiagnosticPrinter DiagnosticPrinter(llvm::errs(), &*DiagOpts); in runAndSave()
46 &*DiagOpts, &DiagnosticPrinter, false); in runAndSave()
DCompilationDatabase.cpp208 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in stripPositionalArgs() local
212 &*DiagOpts, &DiagClient, false); in stripPositionalArgs()
DTooling.cpp242 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/
Darcmt-test.cpp109 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/
DClangFuzzer.cpp31 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in LLVMFuzzerTestOneInput() local
33 IntrusiveRefCntPtr<clang::DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts, in LLVMFuzzerTestOneInput()
/external/clang/examples/clang-interpreter/
Dmain.cpp83 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/
DPPCallbacksTest.cpp115 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/
DCIndexDiagnostic.cpp90 DiagnosticOptions *DiagOpts, in CXDiagnosticRenderer() argument
92 : DiagnosticNoteRenderer(LangOpts, DiagOpts), in CXDiagnosticRenderer()
DCIndexCodeCompletion.cpp261 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; member
324 DiagOpts(new DiagnosticOptions), in AllocatedCXCodeCompleteResults()
326 IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs), &*DiagOpts)), in AllocatedCXCodeCompleteResults()

12