clang 23.0.0git
clang::VerifyDiagnosticConsumer::Directive Class Referenceabstract

Directive - Abstract class representing a parsed verify directive. More...

#include "clang/Frontend/VerifyDiagnosticConsumer.h"

Public Member Functions

 Directive (const Directive &)=delete
Directiveoperator= (const Directive &)=delete
virtual ~Directive ()=default
virtual bool isValid (std::string &Error)=0
virtual DiagnosticMatchResult match (StringRef S) const =0

Static Public Member Functions

static std::unique_ptr< Directivecreate (bool RegexKind, SourceLocation DirectiveLoc, SourceLocation DiagnosticLoc, StringRef Spelling, bool MatchAnyFileAndLine, bool MatchAnyLine, StringRef Text, unsigned Min, unsigned Max, bool FullMatchRequired)

Public Attributes

SourceLocation DirectiveLoc
SourceLocation DiagnosticLoc
const std::string Spelling
const std::string Text
unsigned Min
unsigned Max
bool MatchAnyLine
bool MatchAnyFileAndLine
bool FullMatchRequired

Static Public Attributes

static const unsigned MaxCount = std::numeric_limits<unsigned>::max()
 Constant representing n or more matches.

Protected Member Functions

 Directive (SourceLocation DirectiveLoc, SourceLocation DiagnosticLoc, StringRef Spelling, bool MatchAnyFileAndLine, bool MatchAnyLine, StringRef Text, unsigned Min, unsigned Max, bool FullMatchRequired)

Detailed Description

Directive - Abstract class representing a parsed verify directive.

Definition at line 50 of file VerifyDiagnosticConsumer.h.

Constructor & Destructor Documentation

◆ Directive() [1/2]

clang::VerifyDiagnosticConsumer::Directive::Directive ( const Directive & )
delete

References Directive().

Referenced by Directive(), and operator=().

◆ ~Directive()

virtual clang::VerifyDiagnosticConsumer::Directive::~Directive ( )
virtualdefault

◆ Directive() [2/2]

clang::VerifyDiagnosticConsumer::Directive::Directive ( SourceLocation DirectiveLoc,
SourceLocation DiagnosticLoc,
StringRef Spelling,
bool MatchAnyFileAndLine,
bool MatchAnyLine,
StringRef Text,
unsigned Min,
unsigned Max,
bool FullMatchRequired )
inlineprotected

Member Function Documentation

◆ create()

std::unique_ptr< Directive > Directive::create ( bool RegexKind,
SourceLocation DirectiveLoc,
SourceLocation DiagnosticLoc,
StringRef Spelling,
bool MatchAnyFileAndLine,
bool MatchAnyLine,
StringRef Text,
unsigned Min,
unsigned Max,
bool FullMatchRequired )
static

◆ isValid()

virtual bool clang::VerifyDiagnosticConsumer::Directive::isValid ( std::string & Error)
pure virtual

References clang::Error.

◆ match()

virtual DiagnosticMatchResult clang::VerifyDiagnosticConsumer::Directive::match ( StringRef S) const
pure virtual

Referenced by CheckLists().

◆ operator=()

Directive & clang::VerifyDiagnosticConsumer::Directive::operator= ( const Directive & )
delete

References Directive().

Member Data Documentation

◆ DiagnosticLoc

SourceLocation clang::VerifyDiagnosticConsumer::Directive::DiagnosticLoc

Definition at line 63 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists(), create(), and Directive().

◆ DirectiveLoc

SourceLocation clang::VerifyDiagnosticConsumer::Directive::DirectiveLoc

Definition at line 62 of file VerifyDiagnosticConsumer.h.

Referenced by CheckResultsAreInOrder(), create(), and Directive().

◆ FullMatchRequired

bool clang::VerifyDiagnosticConsumer::Directive::FullMatchRequired

Definition at line 69 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists(), create(), and Directive().

◆ MatchAnyFileAndLine

bool clang::VerifyDiagnosticConsumer::Directive::MatchAnyFileAndLine

Definition at line 68 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists(), create(), and Directive().

◆ MatchAnyLine

bool clang::VerifyDiagnosticConsumer::Directive::MatchAnyLine

Definition at line 67 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists(), create(), and Directive().

◆ Max

unsigned clang::VerifyDiagnosticConsumer::Directive::Max

Definition at line 66 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists(), create(), and Directive().

◆ MaxCount

const unsigned clang::VerifyDiagnosticConsumer::Directive::MaxCount = std::numeric_limits<unsigned>::max()
static

Constant representing n or more matches.

Definition at line 60 of file VerifyDiagnosticConsumer.h.

Referenced by ParseDirective().

◆ Min

unsigned clang::VerifyDiagnosticConsumer::Directive::Min

Definition at line 66 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists(), create(), and Directive().

◆ Spelling

const std::string clang::VerifyDiagnosticConsumer::Directive::Spelling

Definition at line 64 of file VerifyDiagnosticConsumer.h.

Referenced by create(), and Directive().

◆ Text

const std::string clang::VerifyDiagnosticConsumer::Directive::Text

Definition at line 65 of file VerifyDiagnosticConsumer.h.

Referenced by create(), and Directive().


The documentation for this class was generated from the following files: