clang
10.0.0git
|
This wrapper is used to ensure that only StringRefs originating from the CheckerRegistry are used as check names. More...
#include "clang/StaticAnalyzer/Core/CheckerManager.h"
Public Member Functions | |
CheckerNameRef ()=default | |
StringRef | getName () const |
operator StringRef () const | |
Friends | |
class | ::clang::ento::CheckerRegistry |
This wrapper is used to ensure that only StringRefs originating from the CheckerRegistry are used as check names.
We want to make sure all checker name strings have a lifetime that keeps them alive at least until the path diagnostics have been processed, since they are expected to be constexpr string literals (most likely generated by TblGen).
Definition at line 103 of file CheckerManager.h.
|
default |
|
inline |
Definition at line 113 of file CheckerManager.h.
Referenced by clang::ento::CheckerBase::getTagDescription(), and clang::ento::operator<<().
|
inline |
Definition at line 114 of file CheckerManager.h.
|
friend |
Definition at line 104 of file CheckerManager.h.