clang API Documentation
Options for controlling the compiler diagnostics engine. More...
#include <DiagnosticOptions.h>
Public Types | |
enum | TextDiagnosticFormat { Clang, Msvc, Vi } |
enum | { DefaultTabStop = 8, MaxTabStop = 100, DefaultMacroBacktraceLimit = 6, DefaultTemplateBacktraceLimit = 10, DefaultConstexprBacktraceLimit = 10 } |
Public Member Functions | |
SEMANTIC_DIAGOPT (IgnoreWarnings, 1, 0) DIAGOPT(NoRewriteMacros | |
DIAGOPT (Pedantic, 1, 0) DIAGOPT(PedanticErrors | |
DIAGOPT (ShowColumn, 1, 1) DIAGOPT(ShowLocation | |
Show column number on diagnostics. | |
DIAGOPT (ShowCarets, 1, 1) DIAGOPT(ShowFixits | |
Show source location information. | |
DIAGOPT (ShowSourceRanges, 1, 0) DIAGOPT(ShowParseableFixits | |
Show fixit information. | |
DIAGOPT (ShowPresumedLoc, 1, 0) DIAGOPT(ShowOptionNames | |
Show machine parseable fix-its. | |
DIAGOPT (ShowNoteIncludeStack, 1, 0) VALUE_DIAGOPT(ShowCategories | |
Show include stacks for notes. | |
ENUM_DIAGOPT (Format, TextDiagnosticFormat, 2, Clang) DIAGOPT(ShowColors | |
Format for diagnostics: | |
ENUM_DIAGOPT (ShowOverloads, OverloadsShown, 1, Ovl_All) DIAGOPT(VerifyDiagnostics | |
Show diagnostics with ANSI color sequences. | |
DIAGOPT (ElideType, 1, 0) DIAGOPT(ShowTemplateTree | |
Elide identical types in template diffing. | |
DIAGOPT (CLFallbackMode, 1, 0) VALUE_DIAGOPT(ErrorLimit | |
Print a template tree when diffing. | |
SEMANTIC_DIAGOPT (IgnoreWarnings, 1, 0) DIAGOPT(NoRewriteMacros | |
DIAGOPT (Pedantic, 1, 0) DIAGOPT(PedanticErrors | |
DIAGOPT (ShowColumn, 1, 1) DIAGOPT(ShowLocation | |
Show column number on diagnostics. | |
DIAGOPT (ShowCarets, 1, 1) DIAGOPT(ShowFixits | |
Show source location information. | |
DIAGOPT (ShowSourceRanges, 1, 0) DIAGOPT(ShowParseableFixits | |
Show fixit information. | |
DIAGOPT (ShowPresumedLoc, 1, 0) DIAGOPT(ShowOptionNames | |
Show machine parseable fix-its. | |
DIAGOPT (ShowNoteIncludeStack, 1, 0) VALUE_DIAGOPT(ShowCategories | |
Show include stacks for notes. | |
ENUM_DIAGOPT (Format, TextDiagnosticFormat, 2, Clang) DIAGOPT(ShowColors | |
Format for diagnostics: | |
ENUM_DIAGOPT (ShowOverloads, OverloadsShown, 1, Ovl_All) DIAGOPT(VerifyDiagnostics | |
Show diagnostics with ANSI color sequences. | |
DIAGOPT (ElideType, 1, 0) DIAGOPT(ShowTemplateTree | |
Elide identical types in template diffing. | |
DIAGOPT (CLFallbackMode, 1, 0) VALUE_DIAGOPT(ErrorLimit | |
Print a template tree when diffing. | |
VALUE_DIAGOPT (TabStop, 32, DefaultTabStop) DiagnosticOptions() | |
Limit depth of macro expansion backtrace. | |
Public Attributes | |
VALUE_DIAGOPT(TabStop, 32, DefaultTabStop) protected std::string | DiagnosticSerializationFile |
Limit depth of macro expansion backtrace. | |
std::vector< std::string > | Warnings |
std::vector< std::string > | Remarks |
Options for controlling the compiler diagnostics engine.
Definition at line 28 of file DiagnosticOptions.h.
anonymous enum |
DefaultTabStop | |
MaxTabStop | |
DefaultMacroBacktraceLimit | |
DefaultTemplateBacktraceLimit | |
DefaultConstexprBacktraceLimit |
Definition at line 33 of file DiagnosticOptions.h.
Definition at line 30 of file DiagnosticOptions.h.
clang::DiagnosticOptions::DIAGOPT | ( | Pedantic | , |
1 | , | ||
0 | |||
) |
-Wno-rewrite-macros -pedantic
clang::DiagnosticOptions::DIAGOPT | ( | Pedantic | , |
1 | , | ||
0 | |||
) |
-Wno-rewrite-macros -pedantic
clang::DiagnosticOptions::DIAGOPT | ( | ShowColumn | , |
1 | , | ||
1 | |||
) |
Show column number on diagnostics.
-pedantic-errors
clang::DiagnosticOptions::DIAGOPT | ( | ShowColumn | , |
1 | , | ||
1 | |||
) |
Show column number on diagnostics.
-pedantic-errors
clang::DiagnosticOptions::DIAGOPT | ( | ShowCarets | , |
1 | , | ||
1 | |||
) |
Show source location information.
Show carets in diagnostics.
clang::DiagnosticOptions::DIAGOPT | ( | ShowCarets | , |
1 | , | ||
1 | |||
) |
Show source location information.
Show carets in diagnostics.
clang::DiagnosticOptions::DIAGOPT | ( | ShowSourceRanges | , |
1 | , | ||
0 | |||
) |
Show fixit information.
Show source ranges in numeric form.
clang::DiagnosticOptions::DIAGOPT | ( | ShowSourceRanges | , |
1 | , | ||
0 | |||
) |
Show fixit information.
Show source ranges in numeric form.
clang::DiagnosticOptions::DIAGOPT | ( | ShowPresumedLoc | , |
1 | , | ||
0 | |||
) |
Show machine parseable fix-its.
Show presumed location for diagnostics.
clang::DiagnosticOptions::DIAGOPT | ( | ShowPresumedLoc | , |
1 | , | ||
0 | |||
) |
Show machine parseable fix-its.
Show presumed location for diagnostics.
clang::DiagnosticOptions::DIAGOPT | ( | ShowNoteIncludeStack | , |
1 | , | ||
0 | |||
) |
Show include stacks for notes.
Show the option name for mappable diagnostics.
clang::DiagnosticOptions::DIAGOPT | ( | ShowNoteIncludeStack | , |
1 | , | ||
0 | |||
) |
Show include stacks for notes.
Show the option name for mappable diagnostics.
clang::DiagnosticOptions::DIAGOPT | ( | ElideType | , |
1 | , | ||
0 | |||
) |
Elide identical types in template diffing.
Check that diagnostics match the expected diagnostics, indicated by markers in the input source file.
clang::DiagnosticOptions::DIAGOPT | ( | ElideType | , |
1 | , | ||
0 | |||
) |
Elide identical types in template diffing.
Check that diagnostics match the expected diagnostics, indicated by markers in the input source file.
clang::DiagnosticOptions::DIAGOPT | ( | CLFallbackMode | , |
1 | , | ||
0 | |||
) |
Print a template tree when diffing.
Format for clang-cl fallback mode
clang::DiagnosticOptions::DIAGOPT | ( | CLFallbackMode | , |
1 | , | ||
0 | |||
) |
Print a template tree when diffing.
Format for clang-cl fallback mode
clang::DiagnosticOptions::ENUM_DIAGOPT | ( | Format | , |
TextDiagnosticFormat | , | ||
2 | , | ||
Clang | |||
) |
Format for diagnostics:
Show categories: 0 -> none, 1 -> Number, 2 -> Full Name.
clang::DiagnosticOptions::ENUM_DIAGOPT | ( | Format | , |
TextDiagnosticFormat | , | ||
2 | , | ||
Clang | |||
) |
Format for diagnostics:
Show categories: 0 -> none, 1 -> Number, 2 -> Full Name.
clang::DiagnosticOptions::ENUM_DIAGOPT | ( | ShowOverloads | , |
OverloadsShown | , | ||
1 | , | ||
Ovl_All | |||
) |
Show diagnostics with ANSI color sequences.
Overload candidates to show.
clang::DiagnosticOptions::ENUM_DIAGOPT | ( | ShowOverloads | , |
OverloadsShown | , | ||
1 | , | ||
Ovl_All | |||
) |
Show diagnostics with ANSI color sequences.
Overload candidates to show.
clang::DiagnosticOptions::SEMANTIC_DIAGOPT | ( | IgnoreWarnings | , |
1 | , | ||
0 | |||
) |
-w
clang::DiagnosticOptions::SEMANTIC_DIAGOPT | ( | IgnoreWarnings | , |
1 | , | ||
0 | |||
) |
-w
clang::DiagnosticOptions::VALUE_DIAGOPT | ( | TabStop | , |
32 | , | ||
DefaultTabStop | |||
) | [inline] |
Limit depth of macro expansion backtrace.
Limit # errors emitted. Limit depth of instantiation backtrace. Limit depth of constexpr backtrace. The distance between tab stops. Column limit for formatting message diagnostics, or 0 if unused.
-w
-Wno-rewrite-macros
-pedantic
-pedantic-errors
Show column number on diagnostics.
Show source location information.
Show carets in diagnostics.
Show fixit information.
Show source ranges in numeric form.
Show machine parseable fix-its.
Show presumed location for diagnostics.
Show the option name for mappable diagnostics.
Show include stacks for notes.
Show categories: 0 -> none, 1 -> Number, 2 -> Full Name.
Format for diagnostics:
Show diagnostics with ANSI color sequences.
Overload candidates to show.
Check that diagnostics match the expected diagnostics, indicated by markers in the input source file.
Elide identical types in template diffing
Print a template tree when diffing
Format for clang-cl fallback mode
Limit # errors emitted.
Limit depth of macro expansion backtrace.
Limit depth of instantiation backtrace.
Limit depth of constexpr backtrace.
The distance between tab stops.
Column limit for formatting message diagnostics, or 0 if unused.
Definition at line 86 of file DiagnosticOptions.h.
VALUE_DIAGOPT (TabStop, 32, DefaultTabStop) protected std::string clang::DiagnosticOptions::DiagnosticSerializationFile |
Limit depth of macro expansion backtrace.
Limit # errors emitted. Limit depth of instantiation backtrace. Limit depth of constexpr backtrace. The distance between tab stops. Column limit for formatting message diagnostics, or 0 if unused. Show the option name for mappable diagnostics. Show categories: 0 -> none, 1 -> Number, 2 -> Full Name. Check that diagnostics match the expected diagnostics, indicated by markers in the input source file. Limit # errors emitted. The distance between tab stops. The file to serialize diagnostics to (non-appending).
Definition at line 86 of file DiagnosticOptions.h.
Referenced by clang::CompilerInstance::createDiagnostics().
std::vector<std::string> clang::DiagnosticOptions::Remarks |
The list of -R... options used to alter the diagnostic mappings, with the prefixes removed.
Definition at line 217 of file DiagnosticOptions.h.
Referenced by clang::ProcessWarningOptions().
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 213 of file DiagnosticOptions.h.
Referenced by clang::ProcessWarningOptions().