Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DTextDiagnosticPrinter.cpp27 : OS(os), DiagOpts(diags), in TextDiagnosticPrinter()
39 TextDiag.reset(new TextDiagnostic(OS, LO, &*DiagOpts, PP)); in BeginSourceFile()
54 const DiagnosticOptions &DiagOpts) { in printDiagnosticOptions() argument
56 if (DiagOpts.ShowOptionNames) { in printDiagnosticOptions()
91 if (DiagOpts.ShowCategories) { in printDiagnosticOptions()
97 if (DiagOpts.ShowCategories == 1) in printDiagnosticOptions()
100 assert(DiagOpts.ShowCategories == 2 && "Invalid ShowCategories value"); in printDiagnosticOptions()
120 printDiagnosticOptions(DiagMessageStream, Level, Info, *DiagOpts); in HandleDiagnostic()
136 TextDiagnostic::printDiagnosticLevel(OS, Level, DiagOpts->ShowColors); in HandleDiagnostic()
140 DiagOpts->MessageLength, DiagOpts->ShowColors); in HandleDiagnostic()
[all …]
H A DTextDiagnostic.cpp657 DiagnosticOptions *DiagOpts, in TextDiagnostic() argument
659 : DiagnosticRenderer(LangOpts, DiagOpts), OS(OS), PP(PP) {} in TextDiagnostic()
673 if (DiagOpts->ShowColors) in emitDiagnosticMessage()
676 if (DiagOpts->ShowLevel) in emitDiagnosticMessage()
677 printDiagnosticLevel(OS, Level, DiagOpts->ShowColors); in emitDiagnosticMessage()
681 DiagOpts->MessageLength, DiagOpts->ShowColors); in emitDiagnosticMessage()
746 if (DiagOpts->AbsolutePath) { in emitFilename()
799 if (!DiagOpts->ShowLocation) in emitDiagnosticLoc()
802 if (DiagOpts->ShowColors) in emitDiagnosticLoc()
806 switch (DiagOpts->getFormat()) { in emitDiagnosticLoc()
[all …]
H A DSARIFDiagnosticPrinter.cpp30 : OS(OS), DiagOpts(Diags) {} in SARIFDiagnosticPrinter()
37 SARIFDiag = std::make_unique<SARIFDiagnostic>(OS, LO, &*DiagOpts, &*Writer); in BeginSourceFile()
75 assert(DiagOpts && "Unexpected diagnostic without options set"); in HandleDiagnostic()
H A DDiagnosticRenderer.cpp33 DiagnosticOptions *DiagOpts) in DiagnosticRenderer() argument
34 : LangOpts(LangOpts), DiagOpts(DiagOpts), LastLevel() {} in DiagnosticRenderer()
119 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitDiagnostic()
176 if (!DiagOpts->ShowNoteIncludeStack && Level == DiagnosticsEngine::Note) in emitIncludeStack()
195 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitIncludeStackRecursively()
236 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitImportStackRecursively()
252 DiagOpts->ShowPresumedLoc), in emitModuleBuildStack()
565 unsigned MacroLimit = DiagOpts->MacroBacktraceLimit; in emitMacroExpansions()
H A DSerializedDiagnosticPrinter.cpp60 DiagnosticOptions *DiagOpts) in SDiagsRenderer() argument
61 : DiagnosticNoteRenderer(LangOpts, DiagOpts), Writer(Writer) {} in SDiagsRenderer()
246 : DiagOpts(Diags), Stream(Buffer), OutputFile(File.str()), in SharedState()
250 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; member
618 SDiagsRenderer Renderer(*this, *LangOpts, &*State->DiagOpts); in HandleDiagnostic()
757 new TextDiagnosticPrinter(llvm::errs(), State->DiagOpts.get()); in getMetaDiags()
759 IDs, State->DiagOpts.get(), Client); in getMetaDiags()
H A DFrontendActions.cpp667 bool ReadDiagnosticOptions(IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts, in ReadDiagnosticOptions() argument
670 #define DIAGOPT(Name, Bits, Default) DUMP_BOOLEAN(DiagOpts->Name, #Name); in ReadDiagnosticOptions()
672 Out.indent(4) << #Name << ": " << DiagOpts->get##Name() << "\n"; in ReadDiagnosticOptions()
674 Out.indent(4) << #Name << ": " << DiagOpts->Name << "\n"; in ReadDiagnosticOptions()
678 for (const std::string &Warning : DiagOpts->Warnings) in ReadDiagnosticOptions()
680 for (const std::string &Remark : DiagOpts->Remarks) in ReadDiagnosticOptions()
H A DCompilerInstance.cpp283 static void SetUpDiagnosticLog(DiagnosticOptions *DiagOpts, in SetUpDiagnosticLog() argument
289 if (DiagOpts->DiagnosticLogFile != "-") { in SetUpDiagnosticLog()
292 DiagOpts->DiagnosticLogFile, EC, in SetUpDiagnosticLog()
296 << DiagOpts->DiagnosticLogFile << EC.message(); in SetUpDiagnosticLog()
305 auto Logger = std::make_unique<LogDiagnosticPrinter>(*OS, DiagOpts, in SetUpDiagnosticLog()
318 static void SetupSerializedDiagnostics(DiagnosticOptions *DiagOpts, in SetupSerializedDiagnostics() argument
322 clang::serialized_diags::create(OutputFile, DiagOpts); in SetupSerializedDiagnostics()
1224 DiagnosticOptions &DiagOpts = Invocation->getDiagnosticOpts(); local
1226 DiagOpts.VerifyDiagnostics = 0;
1243 if (llvm::is_contained(DiagOpts.SystemHeaderWarningsModules, ModuleName))
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DTextDiagnostics.cpp38 PathDiagnosticConsumerOptions DiagOpts; member in __anonba5c3fec0111::TextDiagnostics
44 TextDiagnostics(PathDiagnosticConsumerOptions DiagOpts, in TextDiagnostics() argument
47 : DiagOpts(std::move(DiagOpts)), DiagEng(DiagEng), LO(LO), in TextDiagnostics()
63 DiagOpts.ShouldDisplayWarningsAsErrors in FlushDiagnosticsImpl()
73 if (!DiagOpts.ShouldApplyFixIts) { in FlushDiagnosticsImpl()
90 std::string WarningMsg = (DiagOpts.ShouldDisplayDiagnosticName in FlushDiagnosticsImpl()
138 PathDiagnosticConsumerOptions DiagOpts, PathDiagnosticConsumers &C, in createTextPathDiagnosticConsumer() argument
142 C.emplace_back(new TextDiagnostics(std::move(DiagOpts), PP.getDiagnostics(), in createTextPathDiagnosticConsumer()
148 PathDiagnosticConsumerOptions DiagOpts, PathDiagnosticConsumers &C, in createTextMinimalPathDiagnosticConsumer() argument
152 C.emplace_back(new TextDiagnostics(std::move(DiagOpts), PP.getDiagnostics(), in createTextMinimalPathDiagnosticConsumer()
H A DHTMLDiagnostics.cpp65 PathDiagnosticConsumerOptions DiagOpts; member in __anon0dc04f5c0111::HTMLDiagnostics
76 HTMLDiagnostics(PathDiagnosticConsumerOptions DiagOpts, in HTMLDiagnostics() argument
79 : DiagOpts(std::move(DiagOpts)), Directory(OutputDir), PP(pp), in HTMLDiagnostics()
177 PathDiagnosticConsumerOptions DiagOpts, PathDiagnosticConsumers &C, in createHTMLDiagnosticConsumer() argument
187 createTextMinimalPathDiagnosticConsumer(DiagOpts, C, OutputDir, PP, CTU, in createHTMLDiagnosticConsumer()
194 C.push_back(new HTMLDiagnostics(std::move(DiagOpts), OutputDir, PP, true)); in createHTMLDiagnosticConsumer()
198 PathDiagnosticConsumerOptions DiagOpts, PathDiagnosticConsumers &C, in createHTMLSingleFileDiagnosticConsumer() argument
202 createTextMinimalPathDiagnosticConsumer(DiagOpts, C, OutputDir, PP, CTU, in createHTMLSingleFileDiagnosticConsumer()
209 C.push_back(new HTMLDiagnostics(std::move(DiagOpts), OutputDir, PP, false)); in createHTMLSingleFileDiagnosticConsumer()
213 PathDiagnosticConsumerOptions DiagOpts, PathDiagnosticConsumers &C, in createPlistHTMLDiagnosticConsumer() argument
[all …]
H A DSarifDiagnostics.cpp54 PathDiagnosticConsumerOptions DiagOpts, PathDiagnosticConsumers &C, in createSarifDiagnosticConsumer() argument
65 createTextMinimalPathDiagnosticConsumer(std::move(DiagOpts), C, Output, PP, in createSarifDiagnosticConsumer()
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DDiagnosticRenderer.h50 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
72 DiagnosticOptions *DiagOpts);
145 DiagnosticOptions *DiagOpts) in DiagnosticNoteRenderer() argument
146 : DiagnosticRenderer(LangOpts, DiagOpts) {} in DiagnosticNoteRenderer()
H A DLogDiagnosticPrinter.h54 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
H A DSARIFDiagnosticPrinter.h63 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
H A DSARIFDiagnostic.h26 DiagnosticOptions *DiagOpts, SarifDocumentWriter *Writer);
H A DTextDiagnostic.h41 DiagnosticOptions *DiagOpts, const Preprocessor *PP = nullptr);
/freebsd/contrib/llvm-project/clang/tools/driver/
H A Ddriver.cpp316 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = in clang_main() local
320 = new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts); in clang_main()
325 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient); in clang_main()
327 if (!DiagOpts->DiagnosticSerializationFile.empty()) { in clang_main()
329 clang::serialized_diags::create(DiagOpts->DiagnosticSerializationFile, in clang_main()
330 &*DiagOpts, /*MergeChildRecords=*/true); in clang_main()
335 ProcessWarningOptions(Diags, *DiagOpts, /*ReportDiags=*/false); in clang_main()
H A Dcc1gen_reproducer_main.cpp120 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions; in generateReproducerForInvocationArguments() local
123 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new IgnoringDiagConsumer()); in generateReproducerForInvocationArguments()
124 ProcessWarningOptions(Diags, *DiagOpts, /*ReportDiags=*/false); in generateReproducerForInvocationArguments()
H A Dcc1_main.cpp230 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in cc1_main() local
232 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer); in cc1_main()
H A Dcc1as_main.cpp650 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in cc1as_main() local
652 = new TextDiagnosticPrinter(errs(), &*DiagOpts); in cc1as_main()
655 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient); in cc1as_main()
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningWorker.cpp190 static void sanitizeDiagOpts(DiagnosticOptions &DiagOpts) { in sanitizeDiagOpts() argument
192 DiagOpts.ShowCarets = false; in sanitizeDiagOpts()
194 DiagOpts.DiagnosticSerializationFile.clear(); in sanitizeDiagOpts()
202 llvm::erase_if(DiagOpts.Warnings, [](StringRef Warning) { in sanitizeDiagOpts()
514 auto DiagOpts = CreateAndPopulateDiagOpts(CLI); in computeDependencies() local
515 sanitizeDiagOpts(*DiagOpts); in computeDependencies()
521 TextDiagnosticPrinter DiagPrinter(DiagnosticsOS, DiagOpts.release()); in computeDependencies()
634 auto DiagOpts = CreateAndPopulateDiagOpts(FinalCCommandLine); in computeDependencies() local
635 sanitizeDiagOpts(*DiagOpts); in computeDependencies()
637 CompilerInstance::createDiagnostics(DiagOpts.release(), &DC, in computeDependencies()
/freebsd/contrib/llvm-project/clang/lib/Tooling/
H A DTooling.cpp381 DiagnosticOptions *DiagOpts = this->DiagOpts; in run() local
382 if (!DiagOpts) { in run()
384 DiagOpts = &*ParsedDiagOpts; in run()
387 TextDiagnosticPrinter DiagnosticPrinter(llvm::errs(), DiagOpts); in run()
390 &*DiagOpts, DiagConsumer ? DiagConsumer : &DiagnosticPrinter, false); in run()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreter.cpp91 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in CreateCI() local
93 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer); in CreateCI()
167 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = in create() local
170 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer); in create()
H A DCodeCompletion.cpp360 auto DiagOpts = DiagnosticOptions(); in codeComplete() local
/freebsd/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp522 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts(new DiagnosticOptions()); in format() local
525 IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs), &*DiagOpts, in format()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DDiagnostic.cpp73 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts, DiagnosticConsumer *client, in DiagnosticsEngine() argument
75 : Diags(std::move(diags)), DiagOpts(std::move(DiagOpts)) { in DiagnosticsEngine()

12