• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/

Lines Matching refs:Diagnostics

1 //===--- Diagnostics.cpp - Helper class for error diagnostics ---*- C++ -*-===//
9 #include "clang/ASTMatchers/Dynamic/Diagnostics.h"
14 Diagnostics::ArgStream Diagnostics::pushContextFrame(ContextType Type,
23 Diagnostics::Context::Context(ConstructMatcherEnum, Diagnostics *Error,
30 Diagnostics::Context::Context(MatcherArgEnum, Diagnostics *Error,
39 Diagnostics::Context::~Context() { Error->ContextStack.pop_back(); }
41 Diagnostics::OverloadContext::OverloadContext(Diagnostics *Error)
44 Diagnostics::OverloadContext::~OverloadContext() {
47 Diagnostics::ErrorContent &Dest = Error->Errors[BeginIndex];
55 void Diagnostics::OverloadContext::revertErrors() {
60 Diagnostics::ArgStream &Diagnostics::ArgStream::operator<<(const Twine &Arg) {
65 Diagnostics::ArgStream Diagnostics::addError(SourceRange Range,
76 static StringRef contextTypeToFormatString(Diagnostics::ContextType Type) {
78 case Diagnostics::CT_MatcherConstruct:
80 case Diagnostics::CT_MatcherArg:
86 static StringRef errorTypeToFormatString(Diagnostics::ErrorType Type) {
88 case Diagnostics::ET_RegistryMatcherNotFound:
90 case Diagnostics::ET_RegistryWrongArgCount:
92 case Diagnostics::ET_RegistryWrongArgType:
94 case Diagnostics::ET_RegistryNotBindable:
96 case Diagnostics::ET_RegistryAmbiguousOverload:
99 case Diagnostics::ET_RegistryValueNotFound:
101 case Diagnostics::ET_RegistryUnknownEnumWithReplace:
104 case Diagnostics::ET_ParserStringError:
106 case Diagnostics::ET_ParserNoOpenParen:
108 case Diagnostics::ET_ParserNoCloseParen:
110 case Diagnostics::ET_ParserNoComma:
112 case Diagnostics::ET_ParserNoCode:
114 case Diagnostics::ET_ParserNotAMatcher:
116 case Diagnostics::ET_ParserInvalidToken:
118 case Diagnostics::ET_ParserMalformedBindExpr:
120 case Diagnostics::ET_ParserTrailingCode:
122 case Diagnostics::ET_ParserNumberError:
124 case Diagnostics::ET_ParserOverloadedType:
127 case Diagnostics::ET_None:
161 static void printContextFrameToStream(const Diagnostics::ContextFrame &Frame,
168 printMessageToStream(const Diagnostics::ErrorContent::Message &Message,
175 static void printErrorContentToStream(const Diagnostics::ErrorContent &Content,
188 void Diagnostics::printToStream(llvm::raw_ostream &OS) const {
195 std::string Diagnostics::toString() const {
202 void Diagnostics::printToStreamFull(llvm::raw_ostream &OS) const {
214 std::string Diagnostics::toStringFull() const {