clang API Documentation

Public Types | Public Member Functions | Public Attributes
clang::DiagnosticOptions Class Reference

#include <DiagnosticOptions.h>

Collaboration diagram for clang::DiagnosticOptions:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

DiagnosticOptions - Options for controlling the compiler diagnostics engine.

Definition at line 22 of file DiagnosticOptions.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
DefaultTabStop 
MaxTabStop 
DefaultMacroBacktraceLimit 
DefaultTemplateBacktraceLimit 
DefaultConstexprBacktraceLimit 

Definition at line 57 of file DiagnosticOptions.h.

Format for diagnostics:

Enumerator:
Clang 
Msvc 
Vi 

Definition at line 41 of file DiagnosticOptions.h.


Constructor & Destructor Documentation

clang::DiagnosticOptions::DiagnosticOptions ( ) [inline]

Member Data Documentation

Limit depth of instantiation backtrace.

Definition at line 53 of file DiagnosticOptions.h.

Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), clang::ParseDiagnosticArgs(), and clang::ProcessWarningOptions().

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().

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().

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().

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().

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().

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().

Show carets in diagnostics.

Definition at line 31 of file DiagnosticOptions.h.

Referenced by DiagnosticOptions(), DiagnosticOptsToArgs(), 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().

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().

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().


The documentation for this class was generated from the following file: