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));
73 #define DIAGOPT(Name, Bits, Default) unsigned Name : Bits;
74 #define ENUM_DIAGOPT(Name, Type, Bits, Default)
75 #include "clang/Basic/DiagnosticOptions.def"
80 #define DIAGOPT(Name, Bits, Default)
81 #define ENUM_DIAGOPT(Name, Type, Bits, Default) unsigned Name : Bits;
82 #include "clang/Basic/DiagnosticOptions.def"
101 #define DIAGOPT(Name, Bits, Default)
102 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \
103 Type get##Name() const { return static_cast<Type>(Name); } \
104 void set##Name(Type Value) { Name = static_cast<unsigned>(Value); }
105 #include "clang/Basic/DiagnosticOptions.def"
108 #define DIAGOPT(Name, Bits, Default) Name = Default;
109 #define ENUM_DIAGOPT(Name, Type, Bits, Default) set##Name(Default);
110 #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.