clang API Documentation
#include <DiagnosticOptions.h>

Public Types | |
| enum | TextDiagnosticFormat { Clang, Msvc, Vi } |
| Format for diagnostics: More... | |
| enum | { DefaultTabStop = 8, MaxTabStop = 100, DefaultMacroBacktraceLimit = 6, DefaultTemplateBacktraceLimit = 10, DefaultConstexprBacktraceLimit = 10 } |
Public Member Functions | |
| DiagnosticOptions () | |
Public Attributes | |
| unsigned | IgnoreWarnings: 1 |
| unsigned | NoRewriteMacros: 1 |
| unsigned | Pedantic: 1 |
| unsigned | PedanticErrors: 1 |
| unsigned | ShowColumn: 1 |
| unsigned | ShowLocation: 1 |
| Show column number on diagnostics. | |
| unsigned | ShowCarets: 1 |
| Show source location information. | |
| unsigned | ShowFixits: 1 |
| Show carets in diagnostics. | |
| unsigned | ShowSourceRanges: 1 |
| Show fixit information. | |
| unsigned | ShowParseableFixits: 1 |
| Show source ranges in numeric form. | |
| unsigned | ShowOptionNames: 1 |
| Show machine parseable fix-its. | |
| unsigned | ShowNoteIncludeStack: 1 |
| unsigned | ShowCategories: 2 |
| Show include stacks for notes. | |
| unsigned | Format: 2 |
| unsigned | ShowColors: 1 |
| unsigned | ShowOverloads: 1 |
| Show diagnostics with ANSI color sequences. | |
| unsigned | VerifyDiagnostics: 1 |
| unsigned | ErrorLimit |
| unsigned | MacroBacktraceLimit |
| Limit # errors emitted. | |
| unsigned | TemplateBacktraceLimit |
| Limit depth of macro expansion backtrace. | |
| unsigned | ConstexprBacktraceLimit |
| Limit depth of instantiation backtrace. | |
| unsigned | TabStop |
| Limit depth of constexpr backtrace. | |
| unsigned | MessageLength |
| Column limit for formatting message diagnostics, or 0 if unused. | |
| std::string | DumpBuildInformation |
| std::string | DiagnosticLogFile |
| The file to log diagnostic output to. | |
| std::string | DiagnosticSerializationFile |
| The file to serialize diagnostics to (non-appending). | |
| std::vector< std::string > | Warnings |
DiagnosticOptions - Options for controlling the compiler diagnostics engine.
Definition at line 22 of file DiagnosticOptions.h.
| anonymous enum |
| DefaultTabStop | |
| MaxTabStop | |
| DefaultMacroBacktraceLimit | |
| DefaultTemplateBacktraceLimit | |
| DefaultConstexprBacktraceLimit |
Definition at line 57 of file DiagnosticOptions.h.
Format for diagnostics:
Definition at line 41 of file DiagnosticOptions.h.
| clang::DiagnosticOptions::DiagnosticOptions | ( | ) | [inline] |
Definition at line 80 of file DiagnosticOptions.h.
References Clang, ConstexprBacktraceLimit, DefaultConstexprBacktraceLimit, DefaultMacroBacktraceLimit, DefaultTabStop, DefaultTemplateBacktraceLimit, ErrorLimit, Format, IgnoreWarnings, MacroBacktraceLimit, MessageLength, NoRewriteMacros, clang::DiagnosticsEngine::Ovl_All, Pedantic, PedanticErrors, ShowCarets, ShowCategories, ShowColors, ShowColumn, ShowFixits, ShowLocation, ShowOptionNames, ShowOverloads, ShowParseableFixits, ShowSourceRanges, TabStop, TemplateBacktraceLimit, and VerifyDiagnostics.
Limit depth of instantiation backtrace.
Definition at line 53 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), and clang::ProcessWarningOptions().
| std::string clang::DiagnosticOptions::DiagnosticLogFile |
The file to log diagnostic output to.
Definition at line 70 of file DiagnosticOptions.h.
Referenced by clang::CompilerInstance::createDiagnostics(), DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), and SetUpDiagnosticLog().
The file to serialize diagnostics to (non-appending).
Definition at line 73 of file DiagnosticOptions.h.
Referenced by clang::CompilerInstance::createDiagnostics(), and clang::ParseDiagnosticArgs().
| std::string clang::DiagnosticOptions::DumpBuildInformation |
If non-empty, a file to log extended build information to, for development testing and analysis.
Definition at line 67 of file DiagnosticOptions.h.
Referenced by clang::CompilerInstance::createDiagnostics(), DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), SetUpBuildDumpLog(), and SetUpDiagnosticLog().
| unsigned clang::DiagnosticOptions::ErrorLimit |
Check that diagnostics match the expected diagnostics, indicated by markers in the input source file.
Definition at line 50 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), and clang::ProcessWarningOptions().
| unsigned clang::DiagnosticOptions::Format |
Show categories: 0 -> none, 1 -> Number, 2 -> Full Name.
Definition at line 40 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::TextDiagnostic::emitDiagnosticLoc(), and clang::ParseDiagnosticArgs().
Definition at line 24 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), and clang::ProcessWarningOptions().
Limit # errors emitted.
Definition at line 51 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), and clang::ParseDiagnosticArgs().
Column limit for formatting message diagnostics, or 0 if unused.
Definition at line 63 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::TextDiagnostic::emitDiagnosticMessage(), clang::TextDiagnosticPrinter::HandleDiagnostic(), and clang::ParseDiagnosticArgs().
-w
Definition at line 25 of file DiagnosticOptions.h.
Referenced by clang::RewriteObjCAction::CreateASTConsumer(), DiagnosticOptions(), DiagnosticOptsToArgs(), and clang::ParseDiagnosticArgs().
| unsigned clang::DiagnosticOptions::Pedantic |
-Wno-rewrite-macros
Definition at line 26 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), and clang::ProcessWarningOptions().
-pedantic
Definition at line 27 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), and clang::ProcessWarningOptions().
| unsigned clang::DiagnosticOptions::ShowCarets |
Show source location information.
Definition at line 30 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), and clang::ParseDiagnosticArgs().
Show include stacks for notes.
Definition at line 37 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), and printDiagnosticOptions().
| unsigned clang::DiagnosticOptions::ShowColors |
Definition at line 43 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::TextDiagnostic::emitDiagnosticLoc(), clang::TextDiagnostic::emitDiagnosticMessage(), clang::TextDiagnosticPrinter::HandleDiagnostic(), and clang::ParseDiagnosticArgs().
| unsigned clang::DiagnosticOptions::ShowColumn |
-pedantic-errors
Definition at line 28 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::TextDiagnostic::emitDiagnosticLoc(), and clang::ParseDiagnosticArgs().
| unsigned clang::DiagnosticOptions::ShowFixits |
Show carets in diagnostics.
Definition at line 31 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), and clang::ParseDiagnosticArgs().
Show column number on diagnostics.
Definition at line 29 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::TextDiagnostic::emitDiagnosticLoc(), clang::TextDiagnostic::emitIncludeLocation(), and clang::ParseDiagnosticArgs().
Show the option name for mappable diagnostics.
Definition at line 36 of file DiagnosticOptions.h.
Referenced by clang::ParseDiagnosticArgs().
Show machine parseable fix-its.
Definition at line 34 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), and printDiagnosticOptions().
Show diagnostics with ANSI color sequences.
Definition at line 44 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), clang::ParseDiagnosticArgs(), and clang::ProcessWarningOptions().
Show source ranges in numeric form.
Definition at line 33 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), and clang::ParseDiagnosticArgs().
Show fixit information.
Definition at line 32 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::TextDiagnostic::emitDiagnosticLoc(), and clang::ParseDiagnosticArgs().
| unsigned clang::DiagnosticOptions::TabStop |
Limit depth of constexpr backtrace.
The distance between tab stops.
Definition at line 56 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), and clang::ParseDiagnosticArgs().
Limit depth of macro expansion backtrace.
Definition at line 52 of file DiagnosticOptions.h.
Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), and clang::ProcessWarningOptions().
Overload candidates to show. Values from DiagnosticsEngine::OverloadsShown
Definition at line 46 of file DiagnosticOptions.h.
Referenced by clang::CompilerInstance::createDiagnostics(), DiagnosticOptions(), DiagnosticOptsToArgs(), and clang::ParseDiagnosticArgs().
| std::vector<std::string> clang::DiagnosticOptions::Warnings |
The list of -W... options used to alter the diagnostic mappings, with the prefixes removed.
Definition at line 77 of file DiagnosticOptions.h.
Referenced by DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), and clang::ProcessWarningOptions().