clang 22.0.0git
|
DataStreamBasicReader provides convenience implementations for many BasicReader methods based on the assumption that the ultimate reader implementation is based on a variable-length stream of unstructured data (like Clang's module files). More...
#include "clang/AST/AbstractBasicReader.h"
Public Member Functions | |
Impl & | find (const char *propertyName) |
Implement property-find by ignoring it. | |
template<class T> | |
T | readEnum () |
Impl & | readObject () |
template<class T> | |
ArrayRef< T > | readArray (llvm::SmallVectorImpl< T > &buffer) |
template<class T, class... Args> | |
std::optional< T > | readOptional (Args &&...args) |
llvm::APSInt | readAPSInt () |
llvm::APInt | readAPInt () |
llvm::FixedPointSemantics | readFixedPointSemantics () |
APValue::LValuePathSerializationHelper | readLValuePathSerializationHelper (SmallVectorImpl< APValue::LValuePathEntry > &path) |
Qualifiers | readQualifiers () |
FunctionProtoType::ExceptionSpecInfo | readExceptionSpecInfo (llvm::SmallVectorImpl< QualType > &buffer) |
FunctionProtoType::ExtParameterInfo | readExtParameterInfo () |
FunctionEffect | readFunctionEffect () |
EffectConditionExpr | readEffectConditionExpr () |
NestedNameSpecifier | readNestedNameSpecifier () |
Protected Member Functions | |
DataStreamBasicReader (ASTContext &ctx) |
DataStreamBasicReader provides convenience implementations for many BasicReader methods based on the assumption that the ultimate reader implementation is based on a variable-length stream of unstructured data (like Clang's module files).
It is designed to pair with DataStreamBasicWriter.
This class can also act as a PropertyReader, implementing find("...") by simply forwarding to itself.
Unimplemented methods: readBool readUInt32 readUInt64 readIdentifier readSelector readSourceLocation readQualType readStmtRef readDeclRef
Definition at line 123 of file AbstractBasicReader.h.
|
inlineprotected |
Definition at line 126 of file AbstractBasicReader.h.
|
inline |
Implement property-find by ignoring it.
We rely on properties being serialized and deserialized in a reliable order instead.
Definition at line 133 of file AbstractBasicReader.h.
|
inline |
Definition at line 170 of file AbstractBasicReader.h.
|
inline |
Definition at line 164 of file AbstractBasicReader.h.
References isUnsigned().
|
inline |
Definition at line 146 of file AbstractBasicReader.h.
Referenced by readExceptionSpecInfo().
|
inline |
Definition at line 251 of file AbstractBasicReader.h.
|
inline |
Definition at line 138 of file AbstractBasicReader.h.
References clang::T.
|
inline |
Definition at line 222 of file AbstractBasicReader.h.
References clang::EST_Dynamic, clang::EST_Unevaluated, clang::EST_Uninstantiated, clang::FunctionProtoType::ExceptionSpecInfo::Exceptions, clang::isComputedNoexcept(), clang::FunctionProtoType::ExceptionSpecInfo::NoexceptExpr, readArray(), clang::FunctionProtoType::ExceptionSpecInfo::SourceDecl, clang::FunctionProtoType::ExceptionSpecInfo::SourceTemplate, and clang::FunctionProtoType::ExceptionSpecInfo::Type.
|
inline |
Definition at line 238 of file AbstractBasicReader.h.
References clang::FunctionType::ExtParameterInfo::getOpaqueValue().
|
inline |
Definition at line 179 of file AbstractBasicReader.h.
|
inline |
Definition at line 246 of file AbstractBasicReader.h.
References clang::FunctionEffect::fromOpaqueInt32().
|
inline |
Definition at line 190 of file AbstractBasicReader.h.
References clang::APValue::LValuePathEntry::ArrayIndex(), clang::cast(), clang::ast_matchers::decl, and clang::ast_matchers::recordDecl.
|
inline |
|
inline |
Definition at line 144 of file AbstractBasicReader.h.
|
inline |
Definition at line 159 of file AbstractBasicReader.h.
|
inline |
Definition at line 214 of file AbstractBasicReader.h.
References clang::Qualifiers::fromOpaqueValue(), and clang::Qualifiers::getAsOpaqueValue().