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

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

Inheritance diagram for clang::ento::PathDiagnosticSpotPiece:
Inheritance graph
Collaboration diagram for clang::ento::PathDiagnosticSpotPiece:
Collaboration graph

Public Member Functions

 PathDiagnosticSpotPiece (const PathDiagnosticLocation &pos, StringRef s, PathDiagnosticPiece::Kind k, bool addPosRange=true)
PathDiagnosticLocation getLocation () const override
void flattenLocations () override
void Profile (llvm::FoldingSetNodeID &ID) 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
virtual void dump () const =0

Static Public Member Functions

static bool classof (const PathDiagnosticPiece *P)

Additional Inherited Members

- Public Types inherited from clang::ento::PathDiagnosticPiece
enum  Kind {
  ControlFlow, Event, Macro, Call,
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 434 of file PathDiagnostic.h.

Constructor & Destructor Documentation

◆ PathDiagnosticSpotPiece()

clang::ento::PathDiagnosticSpotPiece::PathDiagnosticSpotPiece ( const PathDiagnosticLocation pos,
StringRef  s,
PathDiagnosticPiece::Kind  k,
bool  addPosRange = true 

Member Function Documentation

◆ classof()

static bool clang::ento::PathDiagnosticSpotPiece::classof ( const PathDiagnosticPiece P)

Definition at line 453 of file PathDiagnostic.h.

References clang::ento::PathDiagnosticPiece::getKind().

◆ flattenLocations()

void clang::ento::PathDiagnosticSpotPiece::flattenLocations ( )

◆ getLocation()

PathDiagnosticLocation clang::ento::PathDiagnosticSpotPiece::getLocation ( ) const

Implements clang::ento::PathDiagnosticPiece.

Definition at line 448 of file PathDiagnostic.h.

Referenced by eventsDescribeSameCondition().

◆ Profile()

void PathDiagnosticSpotPiece::Profile ( llvm::FoldingSetNodeID &  ID) const

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