clang  10.0.0svn
Public Member Functions | Friends | List of all members
clang::ento::CheckerNameRef Class Reference

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
 

Detailed Description

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 98 of file CheckerManager.h.

Constructor & Destructor Documentation

◆ CheckerNameRef()

clang::ento::CheckerNameRef::CheckerNameRef ( )
default

Member Function Documentation

◆ getName()

StringRef clang::ento::CheckerNameRef::getName ( ) const
inline

◆ operator StringRef()

clang::ento::CheckerNameRef::operator StringRef ( ) const
inline

Definition at line 109 of file CheckerManager.h.

Friends And Related Function Documentation

◆ ::clang::ento::CheckerRegistry

friend class ::clang::ento::CheckerRegistry
friend

Definition at line 99 of file CheckerManager.h.


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