clang 19.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


class  Factory

Public Member Functions

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

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 754 of file BugReporter.h.

Constructor & Destructor Documentation

◆ DataTag()

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

Definition at line 774 of file BugReporter.h.

Member Function Documentation

◆ getTagDescription()

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

Implements clang::ProgramPointTag.

Reimplemented in clang::ento::NoteTag.

Definition at line 756 of file BugReporter.h.

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