clang 22.0.0git
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:
[legend]

Classes

class  Factory

Public Member Functions

StringRef getDebugTag () const override
 The description of this program point which will be dumped for debugging purposes.
Public Member Functions inherited from clang::ProgramPointTag
 ProgramPointTag (void *tagKind=nullptr)
virtual ~ProgramPointTag ()
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' constructor 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 761 of file BugReporter.h.

Constructor & Destructor Documentation

◆ DataTag()

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

Definition at line 781 of file BugReporter.h.

References clang::ProgramPointTag::ProgramPointTag().

Member Function Documentation

◆ getDebugTag()

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

The description of this program point which will be dumped for debugging purposes.

Do not use in user-facing output!

Implements clang::ProgramPointTag.

Reimplemented in clang::ento::NoteTag.

Definition at line 763 of file BugReporter.h.


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