clang 19.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
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 bool match (StringRef S)=0
 

Static Public Member Functions

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

Public Attributes

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

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, bool MatchAnyFileAndLine, bool MatchAnyLine, StringRef Text, unsigned Min, unsigned Max)
 

Detailed Description

Directive - Abstract class representing a parsed verify directive.

Definition at line 43 of file VerifyDiagnosticConsumer.h.

Constructor & Destructor Documentation

◆ Directive() [1/2]

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

◆ ~Directive()

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

◆ Directive() [2/2]

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

Member Function Documentation

◆ create()

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

Definition at line 1145 of file VerifyDiagnosticConsumer.cpp.

References clang::Max, clang::Min, and Text.

◆ isValid()

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

◆ match()

virtual bool clang::VerifyDiagnosticConsumer::Directive::match ( StringRef  S)
pure virtual

Referenced by CheckLists().

◆ operator=()

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

Member Data Documentation

◆ DiagnosticLoc

SourceLocation clang::VerifyDiagnosticConsumer::Directive::DiagnosticLoc

Definition at line 55 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists(), and Directive().

◆ DirectiveLoc

SourceLocation clang::VerifyDiagnosticConsumer::Directive::DirectiveLoc

Definition at line 54 of file VerifyDiagnosticConsumer.h.

Referenced by Directive().

◆ MatchAnyFileAndLine

bool clang::VerifyDiagnosticConsumer::Directive::MatchAnyFileAndLine

Definition at line 59 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists().

◆ MatchAnyLine

bool clang::VerifyDiagnosticConsumer::Directive::MatchAnyLine

Definition at line 58 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists(), and Directive().

◆ Max

unsigned clang::VerifyDiagnosticConsumer::Directive::Max

Definition at line 57 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists().

◆ MaxCount

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

Constant representing n or more matches.

Definition at line 52 of file VerifyDiagnosticConsumer.h.

Referenced by ParseDirective().

◆ Min

unsigned clang::VerifyDiagnosticConsumer::Directive::Min

Definition at line 57 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists().

◆ Text

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

Definition at line 56 of file VerifyDiagnosticConsumer.h.


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