14 #ifndef LLVM_CLANG_ASTMATCHERS_DYNAMIC_DIAGNOSTICS_H 15 #define LLVM_CLANG_ASTMATCHERS_DYNAMIC_DIAGNOSTICS_H 19 #include "llvm/ADT/ArrayRef.h" 20 #include "llvm/ADT/StringRef.h" 21 #include "llvm/ADT/Twine.h" 22 #include "llvm/Support/raw_ostream.h" 55 CT_MatcherConstruct = 1
62 ET_RegistryMatcherNotFound = 1,
63 ET_RegistryWrongArgCount = 2,
64 ET_RegistryWrongArgType = 3,
65 ET_RegistryNotBindable = 4,
66 ET_RegistryAmbiguousOverload = 5,
67 ET_RegistryValueNotFound = 6,
69 ET_ParserStringError = 100,
70 ET_ParserNoOpenParen = 101,
71 ET_ParserNoCloseParen = 102,
72 ET_ParserNoComma = 103,
73 ET_ParserNoCode = 104,
74 ET_ParserNotAMatcher = 105,
75 ET_ParserInvalidToken = 106,
76 ET_ParserMalformedBindExpr = 107,
77 ET_ParserTrailingCode = 108,
78 ET_ParserNumberError = 109,
79 ET_ParserOverloadedType = 110
85 ArgStream(std::vector<std::string> *Out) : Out(Out) {}
92 std::vector<std::string> *Out;
163 void printToStream(llvm::raw_ostream &OS)
const;
169 void printToStreamFull(llvm::raw_ostream &OS)
const;
170 std::string toStringFull()
const;
176 std::vector<ContextFrame> ContextStack;
177 std::vector<ErrorContent> Errors;
184 #endif // LLVM_CLANG_AST_MATCHERS_DYNAMIC_DIAGNOSTICS_H
The base class of the type hierarchy.
std::vector< std::string > Args
MatcherArgEnum
About to recurse into parsing one argument for a matcher.
ContextType
Parser context types.
static std::string toString(const clang::SanitizerSet &Sanitizers)
Produce a string containing comma-separated names of sanitizers in Sanitizers set.
ConstructMatcherEnum
About to call the constructor for a matcher.
std::vector< Message > Messages
ArrayRef< ErrorContent > errors() const
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
Class defining a parser context.
A VariantValue instance annotated with its parser context.
ArgStream(std::vector< std::string > *Out)
static llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const std::set< ASTNodeKind > &KS)
Helper class to manage error messages.
Dataflow Directional Tag Classes.
ErrorType
All errors from the system.
ArgStream & operator<<(const T &Arg)
std::vector< ContextFrame > ContextStack
Context for overloaded matcher construction.
Information stored for each error found.
std::vector< std::string > Args
Information stored for one frame of the context.