clang 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::PreprocessingDirective Class Reference

Records the presence of a preprocessor directive. More...

#include "clang/Lex/PreprocessingRecord.h"

Inheritance diagram for clang::PreprocessingDirective:
Inheritance graph

Public Member Functions

 PreprocessingDirective (EntityKind Kind, SourceRange Range)
- Public Member Functions inherited from clang::PreprocessedEntity
EntityKind getKind () const
 Retrieve the kind of preprocessed entity stored in this object.
SourceRange getSourceRange () const LLVM_READONLY
 Retrieve the source range that covers this entire preprocessed entity.
bool isInvalid () const
 Returns true if there was a problem loading the preprocessed entity.
void * operator new (size_t bytes, PreprocessingRecord &PR, unsigned alignment=8) noexcept
void * operator new (size_t bytes, void *mem) noexcept
void operator delete (void *ptr, PreprocessingRecord &PR, unsigned alignment) noexcept
void operator delete (void *, std::size_t) noexcept
void operator delete (void *, void *) noexcept

Static Public Member Functions

static bool classof (const PreprocessedEntity *PD)

Additional Inherited Members

- Public Types inherited from clang::PreprocessedEntity
enum  EntityKind {
  InvalidKind , MacroExpansionKind , MacroDefinitionKind , InclusionDirectiveKind ,
  FirstPreprocessingDirective = MacroDefinitionKind , LastPreprocessingDirective = InclusionDirectiveKind
 The kind of preprocessed entity an object describes. More...
- Protected Member Functions inherited from clang::PreprocessedEntity
 PreprocessedEntity (EntityKind Kind, SourceRange Range)

Detailed Description

Records the presence of a preprocessor directive.

Definition at line 133 of file PreprocessingRecord.h.

Constructor & Destructor Documentation

◆ PreprocessingDirective()

clang::PreprocessingDirective::PreprocessingDirective ( EntityKind  Kind,
SourceRange  Range 

Definition at line 135 of file PreprocessingRecord.h.

Member Function Documentation

◆ classof()

static bool clang::PreprocessingDirective::classof ( const PreprocessedEntity PD)

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