clang  6.0.0svn
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"

Collaboration diagram for clang::VerifyDiagnosticConsumer::Directive:
Collaboration graph
[legend]

Public Member Functions

virtual ~Directive ()
 
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 MatchAnyLine, StringRef Text, unsigned Min, unsigned Max)
 

Public Attributes

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

Static Public Attributes

static const unsigned MaxCount = UINT_MAX
 Constant representing n or more matches. More...
 

Protected Member Functions

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

Detailed Description

Directive - Abstract class representing a parsed verify directive.

Definition at line 146 of file VerifyDiagnosticConsumer.h.

Constructor & Destructor Documentation

◆ ~Directive()

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

Definition at line 164 of file VerifyDiagnosticConsumer.h.

References clang::Error, isValid(), and match().

◆ Directive()

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

Definition at line 174 of file VerifyDiagnosticConsumer.h.

References clang::SourceLocation::isInvalid(), and MatchAnyLine.

Member Function Documentation

◆ create()

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

Definition at line 945 of file VerifyDiagnosticConsumer.cpp.

References Text.

◆ isValid()

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

Referenced by ~Directive().

◆ match()

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

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

Member Data Documentation

◆ DiagnosticLoc

SourceLocation clang::VerifyDiagnosticConsumer::Directive::DiagnosticLoc

Definition at line 159 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists(), and PrintExpected().

◆ DirectiveLoc

SourceLocation clang::VerifyDiagnosticConsumer::Directive::DirectiveLoc

Definition at line 158 of file VerifyDiagnosticConsumer.h.

Referenced by PrintExpected().

◆ MatchAnyLine

bool clang::VerifyDiagnosticConsumer::Directive::MatchAnyLine

Definition at line 162 of file VerifyDiagnosticConsumer.h.

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

◆ Max

unsigned clang::VerifyDiagnosticConsumer::Directive::Max

Definition at line 161 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists().

◆ MaxCount

const unsigned clang::VerifyDiagnosticConsumer::Directive::MaxCount = UINT_MAX
static

Constant representing n or more matches.

Definition at line 156 of file VerifyDiagnosticConsumer.h.

◆ Min

unsigned clang::VerifyDiagnosticConsumer::Directive::Min

Definition at line 161 of file VerifyDiagnosticConsumer.h.

Referenced by CheckLists().

◆ Text

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

Definition at line 160 of file VerifyDiagnosticConsumer.h.

Referenced by PrintExpected().


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