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
- protected PreprocessedEntity(clang::PreprocessedEntity::EntityKind Kind, clang::SourceRange Range)
- public clang::PreprocessedEntity::EntityKind getKind() const
- public clang::SourceRange getSourceRange() const
- public bool isInvalid() const
Methods
¶PreprocessedEntity(
clang::PreprocessedEntity::EntityKind Kind,
clang::SourceRange Range)
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
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
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
bool isInvalid() const
Description
Returns true if there was a problem loading the preprocessed entity.
Declared at: clang/include/clang/Lex/PreprocessingRecord.h:108