class PreprocessedEntity

Declaration

class PreprocessedEntity { /* full declaration omitted */ };

Description

Base class that describes a preprocessed entity, which may be a preprocessor directive or macro expansion.

Declared at: clang/include/clang/Lex/PreprocessingRecord.h:59

Member Variables

private clang::PreprocessedEntity::EntityKind Kind
The kind of preprocessed entity that this object describes.
private clang::SourceRange Range
The source range that covers this preprocessed entity.

Method Overview

Methods

PreprocessedEntity(
    clang::PreprocessedEntity::EntityKind Kind,
    clang::SourceRange Range)

Declared at: clang/include/clang/Lex/PreprocessingRecord.h:95

Parameters

clang::PreprocessedEntity::EntityKind Kind
clang::SourceRange Range

clang::PreprocessedEntity::EntityKind getKind()
    const

Description

Retrieve the kind of preprocessed entity stored in this object.

Declared at: clang/include/clang/Lex/PreprocessingRecord.h:100

clang::SourceRange getSourceRange() const

Description

Retrieve the source range that covers this entire preprocessed entity.

Declared at: clang/include/clang/Lex/PreprocessingRecord.h:104

bool isInvalid() const

Description

Returns true if there was a problem loading the preprocessed entity.

Declared at: clang/include/clang/Lex/PreprocessingRecord.h:108