Home
last modified time | relevance | path

Searched refs:DiagOpts (Results 1 – 25 of 29) 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.cpp668 DiagnosticOptions *DiagOpts) in TextDiagnostic() argument
669 : DiagnosticRenderer(LangOpts, DiagOpts), OS(OS) {} in TextDiagnostic()
687 if (DiagOpts->ShowColors) in emitDiagnosticMessage()
690 printDiagnosticLevel(OS, Level, DiagOpts->ShowColors, in emitDiagnosticMessage()
691 DiagOpts->CLFallbackMode); in emitDiagnosticMessage()
695 DiagOpts->MessageLength, DiagOpts->ShowColors); in emitDiagnosticMessage()
792 if (!DiagOpts->ShowLocation) in emitDiagnosticLoc()
795 if (DiagOpts->ShowColors) in emitDiagnosticLoc()
799 switch (DiagOpts->getFormat()) { in emitDiagnosticLoc()
805 if (DiagOpts->ShowColumn) in emitDiagnosticLoc()
[all …]
DDiagnosticRenderer.cpp69 DiagnosticOptions *DiagOpts) in DiagnosticRenderer() argument
70 : LangOpts(LangOpts), DiagOpts(DiagOpts), LastLevel() {} in DiagnosticRenderer()
159 PresumedLoc PLoc = SM->getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitDiagnostic()
222 if (!DiagOpts->ShowNoteIncludeStack && Level == DiagnosticsEngine::Note) in emitIncludeStack()
242 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitIncludeStackRecursively()
285 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitImportStackRecursively()
307 DiagOpts->ShowPresumedLoc), in emitModuleBuildStack()
427 if (MacroDepth > DiagOpts->MacroBacktraceLimit && in emitMacroExpansions()
428 DiagOpts->MacroBacktraceLimit != 0) { in emitMacroExpansions()
429 MacroSkipStart = DiagOpts->MacroBacktraceLimit / 2 + in emitMacroExpansions()
[all …]
DFrontendActions.cpp463 ReadDiagnosticOptions(IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts, in ReadDiagnosticOptions() argument
466 #define DIAGOPT(Name, Bits, Default) DUMP_BOOLEAN(DiagOpts->Name, #Name); in ReadDiagnosticOptions()
468 Out.indent(4) << #Name << ": " << DiagOpts->get##Name() << "\n"; in ReadDiagnosticOptions()
470 Out.indent(4) << #Name << ": " << DiagOpts->Name << "\n"; in ReadDiagnosticOptions()
474 for (const std::string &Warning : DiagOpts->Warnings) { in ReadDiagnosticOptions()
DSerializedDiagnosticPrinter.cpp56 DiagnosticOptions *DiagOpts) in SDiagsRenderer() argument
57 : DiagnosticNoteRenderer(LangOpts, DiagOpts), Writer(Writer) {} in SDiagsRenderer()
191 : DiagOpts(diags), Stream(Buffer), OS(os), EmittedAnyDiagBlocks(false) { } in SharedState()
194 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; member
559 SDiagsRenderer Renderer(*this, *LangOpts, &*State->DiagOpts); in HandleDiagnostic()
DCompilerInstance.cpp130 static void SetUpDiagnosticLog(DiagnosticOptions *DiagOpts, in SetUpDiagnosticLog() argument
136 if (DiagOpts->DiagnosticLogFile != "-") { in SetUpDiagnosticLog()
139 DiagOpts->DiagnosticLogFile.c_str(), ErrorInfo, in SetUpDiagnosticLog()
143 << DiagOpts->DiagnosticLogFile << ErrorInfo; in SetUpDiagnosticLog()
153 LogDiagnosticPrinter *Logger = new LogDiagnosticPrinter(*OS, DiagOpts, in SetUpDiagnosticLog()
160 static void SetupSerializedDiagnostics(DiagnosticOptions *DiagOpts, in SetupSerializedDiagnostics() argument
175 clang::serialized_diags::create(OS.release(), DiagOpts); in SetupSerializedDiagnostics()
DLogDiagnosticPrinter.cpp24 : OS(os), LangOpts(nullptr), DiagOpts(diags), in LogDiagnosticPrinter()
/external/clang/lib/Index/
DSimpleFormatContext.h38 : DiagOpts(new DiagnosticOptions()), in SimpleFormatContext()
40 DiagOpts.get())), in SimpleFormatContext()
66 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
/external/clang/unittests/Tooling/
DRewriterTestContext.h38 : DiagOpts(new DiagnosticOptions()), in RewriterTestContext()
40 &*DiagOpts), in RewriterTestContext()
41 DiagnosticPrinter(llvm::outs(), &*DiagOpts), in RewriterTestContext()
108 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
/external/clang/include/clang/Frontend/
DDiagnosticRenderer.h49 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
71 DiagnosticOptions *DiagOpts);
156 DiagnosticOptions *DiagOpts) in DiagnosticNoteRenderer() argument
157 : DiagnosticRenderer(LangOpts, DiagOpts) {} in DiagnosticNoteRenderer()
DTextDiagnosticPrinter.h30 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
DLogDiagnosticPrinter.h48 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
DTextDiagnostic.h41 DiagnosticOptions *DiagOpts);
/external/clang/tools/arcmt-test/
Darcmt-test.cpp108 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in checkForMigration() local
110 new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts); in checkForMigration()
113 new DiagnosticsEngine(DiagID, &*DiagOpts, DiagClient)); in checkForMigration()
152 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in performTransformations() local
154 new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts); in performTransformations()
157 new DiagnosticsEngine(DiagID, &*DiagOpts, &*DiagClient)); in performTransformations()
/external/clang/examples/clang-interpreter/
Dmain.cpp72 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in main() local
74 new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts); in main()
77 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient); in main()
/external/clang/tools/driver/
Dcc1_main.cpp84 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in cc1_main() local
86 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer); in cc1_main()
Ddriver.cpp346 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions; in main() local
355 (void) ParseDiagnosticArgs(*DiagOpts, *Args); in main()
360 = new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts); in main()
371 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient); in main()
372 ProcessWarningOptions(Diags, *DiagOpts, /*ReportDiags=*/false); in main()
Dcc1as_main.cpp436 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in cc1as_main() local
438 = new TextDiagnosticPrinter(errs(), &*DiagOpts); in cc1as_main()
441 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient); in cc1as_main()
/external/clang/unittests/Lex/
DPPCallbacksTest.cpp120 DiagOpts(new DiagnosticOptions()), in PPCallbacksTest()
121 Diags(DiagID, DiagOpts.get(), new IgnoringDiagConsumer()), in PPCallbacksTest()
130 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; member in __anon5fd522070111::PPCallbacksTest
/external/clang/lib/Tooling/
DRefactoring.cpp286 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in runAndSave() local
287 TextDiagnosticPrinter DiagnosticPrinter(llvm::errs(), &*DiagOpts); in runAndSave()
290 &*DiagOpts, &DiagnosticPrinter, false); in runAndSave()
DTooling.cpp204 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in run() local
206 llvm::errs(), &*DiagOpts); in run()
208 IntrusiveRefCntPtr<clang::DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts, in run()
DCompilationDatabase.cpp209 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in stripPositionalArgs() local
213 &*DiagOpts, &DiagClient, false); in stripPositionalArgs()
/external/clang/tools/libclang/
DCIndexDiagnostic.cpp92 DiagnosticOptions *DiagOpts, in CXDiagnosticRenderer() argument
94 : 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()
/external/clang/include/clang/Basic/
DDiagnostic.h188 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; variable
348 DiagnosticOptions *DiagOpts,
358 DiagnosticOptions &getDiagnosticOptions() const { return *DiagOpts; } in getDiagnosticOptions()

12