clang  6.0.0svn
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::ento::PathDiagnosticMacroPiece Class Reference

#include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"

Inheritance diagram for clang::ento::PathDiagnosticMacroPiece:
Inheritance graph
[legend]
Collaboration diagram for clang::ento::PathDiagnosticMacroPiece:
Collaboration graph
[legend]

Public Member Functions

 PathDiagnosticMacroPiece (const PathDiagnosticLocation &pos)
 
 ~PathDiagnosticMacroPiece () override
 
bool containsEvent () const
 
void flattenLocations () override
 
void dump () const override
 
void Profile (llvm::FoldingSetNodeID &ID) const override
 
- Public Member Functions inherited from clang::ento::PathDiagnosticSpotPiece
 PathDiagnosticSpotPiece (const PathDiagnosticLocation &pos, StringRef s, PathDiagnosticPiece::Kind k, bool addPosRange=true)
 
PathDiagnosticLocation getLocation () const override
 
- Public Member Functions inherited from clang::ento::PathDiagnosticPiece
virtual ~PathDiagnosticPiece ()
 
StringRef getString () const
 
void setTag (const char *tag)
 Tag this PathDiagnosticPiece with the given C-string. More...
 
const void * getTag () const
 Return the opaque tag (if any) on the PathDiagnosticPiece. More...
 
StringRef getTagStr () const
 Return the string representation of the tag. More...
 
DisplayHint getDisplayHint () const
 getDisplayHint - Return a hint indicating where the diagnostic should be displayed by the PathDiagnosticConsumer. More...
 
Kind getKind () const
 
void addRange (SourceRange R)
 
void addRange (SourceLocation B, SourceLocation E)
 
ArrayRef< SourceRangegetRanges () const
 Return the SourceRanges associated with this PathDiagnosticPiece. More...
 
void setAsLastInMainSourceFile ()
 
bool isLastInMainSourceFile () const
 

Static Public Member Functions

static bool classof (const PathDiagnosticPiece *P)
 
- Static Public Member Functions inherited from clang::ento::PathDiagnosticSpotPiece
static bool classof (const PathDiagnosticPiece *P)
 

Public Attributes

PathPieces subPieces
 

Additional Inherited Members

- Public Types inherited from clang::ento::PathDiagnosticPiece
enum  Kind {
  ControlFlow, Event, Macro, Call,
  Note
}
 
enum  DisplayHint { Above, Below }
 
- Protected Member Functions inherited from clang::ento::PathDiagnosticPiece
 PathDiagnosticPiece (StringRef s, Kind k, DisplayHint hint=Below)
 
 PathDiagnosticPiece (Kind k, DisplayHint hint=Below)
 

Detailed Description

Definition at line 693 of file PathDiagnostic.h.

Constructor & Destructor Documentation

◆ PathDiagnosticMacroPiece()

clang::ento::PathDiagnosticMacroPiece::PathDiagnosticMacroPiece ( const PathDiagnosticLocation pos)
inline

Definition at line 695 of file PathDiagnostic.h.

◆ ~PathDiagnosticMacroPiece()

PathDiagnosticMacroPiece::~PathDiagnosticMacroPiece ( )
override

Definition at line 61 of file PathDiagnostic.cpp.

Member Function Documentation

◆ classof()

static bool clang::ento::PathDiagnosticMacroPiece::classof ( const PathDiagnosticPiece P)
inlinestatic

◆ containsEvent()

bool PathDiagnosticMacroPiece::containsEvent ( ) const

Definition at line 31 of file PathDiagnostic.cpp.

References P, and subPieces.

◆ dump()

LLVM_DUMP_METHOD void PathDiagnosticMacroPiece::dump ( ) const
overridevirtual

Implements clang::ento::PathDiagnosticPiece.

Definition at line 3648 of file BugReporter.cpp.

◆ flattenLocations()

void clang::ento::PathDiagnosticMacroPiece::flattenLocations ( )
inlineoverridevirtual

◆ Profile()

void PathDiagnosticMacroPiece::Profile ( llvm::FoldingSetNodeID &  ID) const
overridevirtual

Member Data Documentation

◆ subPieces

PathPieces clang::ento::PathDiagnosticMacroPiece::subPieces

Definition at line 700 of file PathDiagnostic.h.

Referenced by compareMacro(), and containsEvent().


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