clang  14.0.0git
Classes | Public Member Functions | Protected Member Functions | List of all members
clang::ento::DataTag Class Reference

The tag that carries some information with it. More...

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

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

Classes

class  Factory
 

Public Member Functions

StringRef getTagDescription () const override
 
- Public Member Functions inherited from clang::ProgramPointTag
 ProgramPointTag (void *tagKind=nullptr)
 
virtual ~ProgramPointTag ()
 
const void * getTagKind () const
 Used to implement 'isKind' in subclasses. More...
 

Protected Member Functions

 DataTag (void *TagKind)
 

Detailed Description

The tag that carries some information with it.

It can be valuable to produce tags with some bits of information and later reuse them for a better diagnostic.

Please make sure that derived class' constuctor is private and that the user can only create objects using DataTag::Factory. This also means that DataTag::Factory should be friend for every derived class.

Definition at line 740 of file BugReporter.h.

Constructor & Destructor Documentation

◆ DataTag()

clang::ento::DataTag::DataTag ( void *  TagKind)
inlineprotected

Definition at line 760 of file BugReporter.h.

Member Function Documentation

◆ getTagDescription()

StringRef clang::ento::DataTag::getTagDescription ( ) const
inlineoverridevirtual

Implements clang::ProgramPointTag.

Reimplemented in clang::ento::NoteTag.

Definition at line 742 of file BugReporter.h.


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