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));
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"
105 #define DIAGOPT(Name, Bits, Default)
106 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \
107 Type get##Name() const { return static_cast<Type>(Name); } \
108 void set##Name(Type Value) { Name = static_cast<unsigned>(Value); }
109 #include "clang/Basic/DiagnosticOptions.def"
112 #define DIAGOPT(Name, Bits, Default) Name = Default;
113 #define ENUM_DIAGOPT(Name, Type, Bits, Default) set##Name(Default);
114 #include "clang/Basic/DiagnosticOptions.def"
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)
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...
const internal::VariadicAllOfMatcher< Type > type
Matches Types in the clang AST.
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.
DiagnosticLevelMask operator&(DiagnosticLevelMask LHS, DiagnosticLevelMask RHS)
std::string DiagnosticLogFile
The file to log diagnostic output to.