clang
3.7.0
|
#include <PathDiagnostic.h>
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 |
![]() | |
PathDiagnosticSpotPiece (const PathDiagnosticLocation &pos, StringRef s, PathDiagnosticPiece::Kind k, bool addPosRange=true) | |
PathDiagnosticLocation | getLocation () const override |
![]() | |
~PathDiagnosticPiece () override | |
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 |
DisplayHint | getDisplayHint () const |
Kind | getKind () const |
void | addRange (SourceRange R) |
void | addRange (SourceLocation B, SourceLocation E) |
ArrayRef< SourceRange > | getRanges () 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 bool | classof (const PathDiagnosticPiece *P) |
Public Attributes | |
PathPieces | subPieces |
Additional Inherited Members | |
![]() | |
enum | Kind { ControlFlow, Event, Macro, Call } |
enum | DisplayHint { Above, Below } |
![]() | |
PathDiagnosticPiece (StringRef s, Kind k, DisplayHint hint=Below) | |
PathDiagnosticPiece (Kind k, DisplayHint hint=Below) | |
Definition at line 688 of file PathDiagnostic.h.
|
inline |
Definition at line 690 of file PathDiagnostic.h.
|
override |
Definition at line 62 of file PathDiagnostic.cpp.
|
inlinestatic |
Definition at line 705 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticPiece::getKind(), and clang::ento::PathDiagnosticPiece::Macro.
bool PathDiagnosticMacroPiece::containsEvent | ( | ) | const |
Definition at line 31 of file PathDiagnostic.cpp.
References subPieces.
|
overridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 3513 of file BugReporter.cpp.
|
inlineoverridevirtual |
Reimplemented from clang::ento::PathDiagnosticSpotPiece.
Definition at line 699 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticSpotPiece::flattenLocations(), and subPieces.
|
overridevirtual |
Reimplemented from clang::ento::PathDiagnosticSpotPiece.
Definition at line 1102 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticSpotPiece::Profile().
PathPieces clang::ento::PathDiagnosticMacroPiece::subPieces |
Definition at line 695 of file PathDiagnostic.h.
Referenced by compareMacro(), containsEvent(), flattenLocations(), removeUnneededCalls(), and ReportMacro().