10 #ifndef LLVM_CLANG_BASIC_DIAGNOSTICOPTIONS_H 11 #define LLVM_CLANG_BASIC_DIAGNOSTICOPTIONS_H 14 #include "llvm/ADT/IntrusiveRefCntPtr.h" 16 #include <type_traits> 51 static_cast<UT
>(LHS) | static_cast<UT>(RHS));
58 static_cast<UT
>(LHS) & static_cast<UT>(RHS));
72 DefaultMacroBacktraceLimit = 6,
73 DefaultTemplateBacktraceLimit = 10,
74 DefaultConstexprBacktraceLimit = 10,
75 DefaultSpellCheckingLimit = 50,
76 DefaultSnippetLineLimit = 1,
80 #define DIAGOPT(Name, Bits, Default) unsigned Name : Bits; 81 #define ENUM_DIAGOPT(Name, Type, Bits, Default) 82 #include "clang/Basic/DiagnosticOptions.def" 87 #define DIAGOPT(Name, Bits, Default) 88 #define ENUM_DIAGOPT(Name, Type, Bits, Default) unsigned Name : Bits; 89 #include "clang/Basic/DiagnosticOptions.def" 112 #define DIAGOPT(Name, Bits, Default) 113 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \ 114 Type get##Name() const { return static_cast<Type>(Name); } \ 115 void set##Name(Type Value) { Name = static_cast<unsigned>(Value); } 116 #include "clang/Basic/DiagnosticOptions.def" 119 #define DIAGOPT(Name, Bits, Default) Name = Default; 120 #define ENUM_DIAGOPT(Name, Type, Bits, Default) set##Name(Default); 121 #include "clang/Basic/DiagnosticOptions.def" 129 #endif // LLVM_CLANG_BASIC_DIAGNOSTICOPTIONS_H 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).
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.