10 #ifndef LLVM_CLANG_BASIC_DIAGNOSTICOPTIONS_H 11 #define LLVM_CLANG_BASIC_DIAGNOSTICOPTIONS_H 14 #include "llvm/ADT/IntrusiveRefCntPtr.h" 16 #include <type_traits> 48 static_cast<UT
>(LHS) | static_cast<UT>(RHS));
55 static_cast<UT
>(LHS) & static_cast<UT>(RHS));
69 DefaultMacroBacktraceLimit = 6,
70 DefaultTemplateBacktraceLimit = 10,
71 DefaultConstexprBacktraceLimit = 10,
72 DefaultSpellCheckingLimit = 50,
73 DefaultSnippetLineLimit = 1,
77 #define DIAGOPT(Name, Bits, Default) unsigned Name : Bits; 78 #define ENUM_DIAGOPT(Name, Type, Bits, Default) 79 #include "clang/Basic/DiagnosticOptions.def" 84 #define DIAGOPT(Name, Bits, Default) 85 #define ENUM_DIAGOPT(Name, Type, Bits, Default) unsigned Name : Bits; 86 #include "clang/Basic/DiagnosticOptions.def" 109 #define DIAGOPT(Name, Bits, Default) 110 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \ 111 Type get##Name() const { return static_cast<Type>(Name); } \ 112 void set##Name(Type Value) { Name = static_cast<unsigned>(Value); } 113 #include "clang/Basic/DiagnosticOptions.def" 116 #define DIAGOPT(Name, Bits, Default) Name = Default; 117 #define ENUM_DIAGOPT(Name, Type, Bits, Default) set##Name(Default); 118 #include "clang/Basic/DiagnosticOptions.def" const internal::VariadicAllOfMatcher< Type > type
Matches Types in the clang AST.
const DiagnosticBuilder & operator<<(const DiagnosticBuilder &DB, const Attr *At)
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
std::vector< std::string > Warnings
The list of -W...
DiagnosticLevelMask operator|(DiagnosticLevelMask LHS, DiagnosticLevelMask RHS)
DiagnosticLevelMask operator &(DiagnosticLevelMask LHS, DiagnosticLevelMask RHS)
Show just the "best" overload candidates.
Options for controlling the compiler diagnostics engine.
std::string DiagnosticSerializationFile
The file to serialize diagnostics to (non-appending).
DiagnosticOptions::TextDiagnosticFormat TextDiagnosticFormat
std::vector< std::string > Remarks
The list of -R...
Dataflow Directional Tag Classes.
std::vector< std::string > VerifyPrefixes
The prefixes for comment directives sought by -verify ("expected" by default).
DiagnosticLevelMask operator~(DiagnosticLevelMask M)
OverloadsShown
Specifies which overload candidates to display when overload resolution fails.
DiagnosticLevelMask
A bitmask representing the diagnostic levels used by VerifyDiagnosticConsumer.
std::string DiagnosticLogFile
The file to log diagnostic output to.