clang API Documentation
Namespaces | |
namespace | internal |
Classes | |
struct | SourceLocation |
struct | SourceRange |
struct | ParserValue |
A VariantValue instance annotated with its parser context. More... | |
class | Diagnostics |
Helper class to manage error messages. More... | |
class | Parser |
Matcher expression parser. More... | |
struct | MatcherCompletion |
class | Registry |
class | ArgKind |
Kind identifier. More... | |
class | VariantMatcher |
A variant matcher object. More... | |
struct | final |
class | VariantValue |
Variant value class. More... | |
Typedefs | |
typedef const internal::MatcherDescriptor * | MatcherCtor |
Functions | |
StringRef | contextTypeToFormatString (Diagnostics::ContextType Type) |
StringRef | errorTypeToFormatString (Diagnostics::ErrorType Type) |
void | formatErrorString (StringRef FormatString, ArrayRef< std::string > Args, llvm::raw_ostream &OS) |
static void | maybeAddLineAndColumn (const SourceRange &Range, llvm::raw_ostream &OS) |
static void | printContextFrameToStream (const Diagnostics::ContextFrame &Frame, llvm::raw_ostream &OS) |
static void | printMessageToStream (const Diagnostics::ErrorContent::Message &Message, const Twine Prefix, llvm::raw_ostream &OS) |
static void | printErrorContentToStream (const Diagnostics::ErrorContent &Content, llvm::raw_ostream &OS) |
Variables | |
static llvm::ManagedStatic < Parser::RegistrySema > | DefaultRegistrySema |
Definition at line 35 of file Registry.h.
StringRef clang::ast_matchers::dynamic::contextTypeToFormatString | ( | Diagnostics::ContextType | Type | ) |
Definition at line 78 of file Diagnostics.cpp.
References clang::ast_matchers::dynamic::Diagnostics::CT_MatcherArg, and clang::ast_matchers::dynamic::Diagnostics::CT_MatcherConstruct.
Referenced by printContextFrameToStream().
StringRef clang::ast_matchers::dynamic::errorTypeToFormatString | ( | Diagnostics::ErrorType | Type | ) |
Definition at line 88 of file Diagnostics.cpp.
References clang::ast_matchers::dynamic::Diagnostics::ET_None, clang::ast_matchers::dynamic::Diagnostics::ET_ParserInvalidToken, clang::ast_matchers::dynamic::Diagnostics::ET_ParserMalformedBindExpr, clang::ast_matchers::dynamic::Diagnostics::ET_ParserNoCloseParen, clang::ast_matchers::dynamic::Diagnostics::ET_ParserNoCode, clang::ast_matchers::dynamic::Diagnostics::ET_ParserNoComma, clang::ast_matchers::dynamic::Diagnostics::ET_ParserNoOpenParen, clang::ast_matchers::dynamic::Diagnostics::ET_ParserNotAMatcher, clang::ast_matchers::dynamic::Diagnostics::ET_ParserOverloadedType, clang::ast_matchers::dynamic::Diagnostics::ET_ParserStringError, clang::ast_matchers::dynamic::Diagnostics::ET_ParserTrailingCode, clang::ast_matchers::dynamic::Diagnostics::ET_ParserUnsignedError, clang::ast_matchers::dynamic::Diagnostics::ET_RegistryAmbiguousOverload, clang::ast_matchers::dynamic::Diagnostics::ET_RegistryMatcherNotFound, clang::ast_matchers::dynamic::Diagnostics::ET_RegistryNotBindable, clang::ast_matchers::dynamic::Diagnostics::ET_RegistryValueNotFound, clang::ast_matchers::dynamic::Diagnostics::ET_RegistryWrongArgCount, and clang::ast_matchers::dynamic::Diagnostics::ET_RegistryWrongArgType.
Referenced by printMessageToStream().
void clang::ast_matchers::dynamic::formatErrorString | ( | StringRef | FormatString, |
ArrayRef< std::string > | Args, | ||
llvm::raw_ostream & | OS | ||
) |
Definition at line 133 of file Diagnostics.cpp.
Referenced by printContextFrameToStream(), and printMessageToStream().
static void clang::ast_matchers::dynamic::maybeAddLineAndColumn | ( | const SourceRange & | Range, |
llvm::raw_ostream & | OS | ||
) | [static] |
Definition at line 153 of file Diagnostics.cpp.
References clang::ast_matchers::dynamic::SourceLocation::Column, clang::ast_matchers::dynamic::SourceLocation::Line, and clang::ast_matchers::dynamic::SourceRange::Start.
Referenced by printContextFrameToStream(), and printMessageToStream().
static void clang::ast_matchers::dynamic::printContextFrameToStream | ( | const Diagnostics::ContextFrame & | Frame, |
llvm::raw_ostream & | OS | ||
) | [static] |
Definition at line 160 of file Diagnostics.cpp.
References clang::ast_matchers::dynamic::Diagnostics::ContextFrame::Args, contextTypeToFormatString(), formatErrorString(), maybeAddLineAndColumn(), clang::ast_matchers::dynamic::Diagnostics::ContextFrame::Range, and clang::ast_matchers::dynamic::Diagnostics::ContextFrame::Type.
Referenced by clang::ast_matchers::dynamic::Diagnostics::printToStreamFull().
static void clang::ast_matchers::dynamic::printErrorContentToStream | ( | const Diagnostics::ErrorContent & | Content, |
llvm::raw_ostream & | OS | ||
) | [static] |
Definition at line 174 of file Diagnostics.cpp.
References clang::ast_matchers::dynamic::Diagnostics::ErrorContent::Messages, and printMessageToStream().
Referenced by clang::ast_matchers::dynamic::Diagnostics::printToStream(), and clang::ast_matchers::dynamic::Diagnostics::printToStreamFull().
static void clang::ast_matchers::dynamic::printMessageToStream | ( | const Diagnostics::ErrorContent::Message & | Message, |
const Twine | Prefix, | ||
llvm::raw_ostream & | OS | ||
) | [static] |
Definition at line 167 of file Diagnostics.cpp.
References clang::ast_matchers::dynamic::Diagnostics::ErrorContent::Message::Args, errorTypeToFormatString(), formatErrorString(), maybeAddLineAndColumn(), clang::ast_matchers::dynamic::Diagnostics::ErrorContent::Message::Range, and clang::ast_matchers::dynamic::Diagnostics::ErrorContent::Message::Type.
Referenced by printErrorContentToStream().
llvm::ManagedStatic<Parser::RegistrySema> clang::ast_matchers::dynamic::DefaultRegistrySema [static] |
Definition at line 522 of file ASTMatchers/Dynamic/Parser.cpp.