Home
last modified time | relevance | path

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

/external/clang/lib/Frontend/
DTextDiagnosticPrinter.cpp30 : OS(os), LangOpts(0), DiagOpts(&diags), SM(0), in TextDiagnosticPrinter()
57 const DiagnosticOptions &DiagOpts) { in printDiagnosticOptions() argument
59 if (DiagOpts.ShowOptionNames) { in printDiagnosticOptions()
100 if (DiagOpts.ShowCategories) { in printDiagnosticOptions()
106 if (DiagOpts.ShowCategories == 1) in printDiagnosticOptions()
109 assert(DiagOpts.ShowCategories == 2 && "Invalid ShowCategories value"); in printDiagnosticOptions()
129 printDiagnosticOptions(DiagMessageStream, Level, Info, *DiagOpts); in HandleDiagnostic()
145 TextDiagnostic::printDiagnosticLevel(OS, Level, DiagOpts->ShowColors); in HandleDiagnostic()
148 DiagOpts->MessageLength, in HandleDiagnostic()
149 DiagOpts->ShowColors); in HandleDiagnostic()
[all …]
DTextDiagnostic.cpp607 const DiagnosticOptions &DiagOpts) in TextDiagnostic() argument
608 : DiagnosticRenderer(SM, LangOpts, DiagOpts), OS(OS) {} in TextDiagnostic()
624 if (DiagOpts.ShowColors) in emitDiagnosticMessage()
627 printDiagnosticLevel(OS, Level, DiagOpts.ShowColors); in emitDiagnosticMessage()
630 DiagOpts.MessageLength, DiagOpts.ShowColors); in emitDiagnosticMessage()
716 if (!DiagOpts.ShowLocation) in emitDiagnosticLoc()
719 if (DiagOpts.ShowColors) in emitDiagnosticLoc()
723 switch (DiagOpts.Format) { in emitDiagnosticLoc()
729 if (DiagOpts.ShowColumn) in emitDiagnosticLoc()
732 if (DiagOpts.Format == DiagnosticOptions::Msvc) { in emitDiagnosticLoc()
[all …]
DDiagnosticRenderer.cpp128 const DiagnosticOptions &DiagOpts) in DiagnosticRenderer() argument
129 : SM(SM), LangOpts(LangOpts), DiagOpts(DiagOpts), LastLevel() {} in DiagnosticRenderer()
254 if (!DiagOpts.ShowNoteIncludeStack && Level == DiagnosticsEngine::Note) in emitIncludeStack()
327 if (MacroDepth > DiagOpts.MacroBacktraceLimit && in emitMacroExpansionsAndCarets()
328 DiagOpts.MacroBacktraceLimit != 0) { in emitMacroExpansionsAndCarets()
329 MacroSkipStart = DiagOpts.MacroBacktraceLimit / 2 + in emitMacroExpansionsAndCarets()
330 DiagOpts.MacroBacktraceLimit % 2; in emitMacroExpansionsAndCarets()
331 MacroSkipEnd = MacroDepth - DiagOpts.MacroBacktraceLimit / 2; in emitMacroExpansionsAndCarets()
DCreateInvocationFromCommandLine.cpp37 DiagnosticOptions DiagOpts; in createInvocationFromCommandLine() local
38 Diags = CompilerInstance::createDiagnostics(DiagOpts, ArgList.size(), in createInvocationFromCommandLine()
DCompilerInstance.cpp95 static void SetUpBuildDumpLog(const DiagnosticOptions &DiagOpts, in SetUpBuildDumpLog() argument
100 new llvm::raw_fd_ostream(DiagOpts.DumpBuildInformation.c_str(), ErrorInfo)); in SetUpBuildDumpLog()
103 << DiagOpts.DumpBuildInformation << ErrorInfo; in SetUpBuildDumpLog()
114 new TextDiagnosticPrinter(*OS.take(), DiagOpts, /*OwnsOutputStream=*/true); in SetUpBuildDumpLog()
118 static void SetUpDiagnosticLog(const DiagnosticOptions &DiagOpts, in SetUpDiagnosticLog() argument
124 if (DiagOpts.DiagnosticLogFile != "-") { in SetUpDiagnosticLog()
127 new llvm::raw_fd_ostream(DiagOpts.DiagnosticLogFile.c_str(), in SetUpDiagnosticLog()
131 << DiagOpts.DumpBuildInformation << ErrorInfo; in SetUpDiagnosticLog()
141 LogDiagnosticPrinter *Logger = new LogDiagnosticPrinter(*OS, DiagOpts, in SetUpDiagnosticLog()
148 static void SetupSerializedDiagnostics(const DiagnosticOptions &DiagOpts, in SetupSerializedDiagnostics() argument
[all …]
DLogDiagnosticPrinter.cpp21 : OS(os), LangOpts(0), DiagOpts(&diags), in LogDiagnosticPrinter()
175 return new LogDiagnosticPrinter(OS, *DiagOpts, /*OwnsOutputStream=*/false); in clone()
DSerializedDiagnosticPrinter.cpp58 const DiagnosticOptions &DiagOpts) in SDiagsRenderer() argument
59 : DiagnosticNoteRenderer(SM, LangOpts, DiagOpts), in SDiagsRenderer()
93 : LangOpts(0), DiagOpts(diags), in SDiagsWriter()
159 const DiagnosticOptions &DiagOpts; member in __anon2831bf040111::SDiagsWriter
488 SDiagsRenderer Renderer(*this, Record, SM, *LangOpts, DiagOpts); in HandleDiagnostic()
DASTUnit.cpp642 DiagnosticOptions DiagOpts; in ConfigureDiags() local
646 Diags = CompilerInstance::createDiagnostics(DiagOpts, ArgEnd-ArgBegin, in ConfigureDiags()
1892 DiagnosticOptions DiagOpts; in LoadFromCommandLine() local
1893 Diags = CompilerInstance::createDiagnostics(DiagOpts, ArgEnd - ArgBegin, in LoadFromCommandLine()
/external/clang/include/clang/Frontend/
DDiagnosticRenderer.h48 const DiagnosticOptions &DiagOpts; variable
71 const DiagnosticOptions &DiagOpts);
136 const DiagnosticOptions &DiagOpts) in DiagnosticNoteRenderer() argument
137 : DiagnosticRenderer(SM, LangOpts, DiagOpts) {} in DiagnosticNoteRenderer()
DTextDiagnosticPrinter.h30 const DiagnosticOptions *DiagOpts; variable
DLogDiagnosticPrinter.h45 const DiagnosticOptions *DiagOpts; variable
DTextDiagnostic.h44 const DiagnosticOptions &DiagOpts);
/external/clang/tools/driver/
Ddriver.cpp378 DiagnosticOptions DiagOpts; in main() local
388 (void) ParseDiagnosticArgs(DiagOpts, *Args); in main()
393 = new TextDiagnosticPrinter(llvm::errs(), DiagOpts); in main()
398 ProcessWarningOptions(Diags, DiagOpts); in main()
/external/clang/tools/libclang/
DCIndexDiagnostic.cpp91 const DiagnosticOptions &DiagOpts, in CXDiagnosticRenderer() argument
93 : DiagnosticNoteRenderer(SM, LangOpts, DiagOpts), in CXDiagnosticRenderer()
DIndexing.cpp284 DiagnosticOptions DiagOpts; in clang_indexSourceFile_Impl() local
286 Diags(CompilerInstance::createDiagnostics(DiagOpts, num_command_line_args, in clang_indexSourceFile_Impl()
DCIndex.cpp2527 DiagnosticOptions DiagOpts; in clang_parseTranslationUnit_Impl() local
2529 Diags(CompilerInstance::createDiagnostics(DiagOpts, num_command_line_args, in clang_parseTranslationUnit_Impl()