clang 20.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 > | |
llvm::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 171 of file AbstractBasicReader.h.
|
inline |
Definition at line 165 of file AbstractBasicReader.h.
References isUnsigned().
|
inline |
Definition at line 147 of file AbstractBasicReader.h.
|
inline |
Definition at line 252 of file AbstractBasicReader.h.
|
inline |
Definition at line 138 of file AbstractBasicReader.h.
References clang::T.
|
inline |
Definition at line 223 of file AbstractBasicReader.h.
References clang::EST_Dynamic, clang::EST_Unevaluated, clang::EST_Uninstantiated, clang::FunctionProtoType::ExceptionSpecInfo::Exceptions, clang::isComputedNoexcept(), clang::FunctionProtoType::ExceptionSpecInfo::NoexceptExpr, clang::FunctionProtoType::ExceptionSpecInfo::SourceDecl, clang::FunctionProtoType::ExceptionSpecInfo::SourceTemplate, and clang::FunctionProtoType::ExceptionSpecInfo::Type.
|
inline |
Definition at line 239 of file AbstractBasicReader.h.
References clang::FunctionType::ExtParameterInfo::getOpaqueValue().
|
inline |
Definition at line 180 of file AbstractBasicReader.h.
|
inline |
Definition at line 247 of file AbstractBasicReader.h.
References clang::FunctionEffect::fromOpaqueInt32().
|
inline |
Definition at line 191 of file AbstractBasicReader.h.
References clang::APValue::LValuePathEntry::ArrayIndex(), clang::ast_matchers::decl, and clang::ast_matchers::recordDecl.
|
inline |
Definition at line 256 of file AbstractBasicReader.h.
References clang::NestedNameSpecifier::Create(), clang::NestedNameSpecifier::Global, clang::NestedNameSpecifier::GlobalSpecifier(), clang::NestedNameSpecifier::Identifier, clang::NestedNameSpecifier::Namespace, clang::NestedNameSpecifier::NamespaceAlias, clang::NestedNameSpecifier::Super, clang::NestedNameSpecifier::SuperSpecifier(), clang::NestedNameSpecifier::TypeSpec, and clang::NestedNameSpecifier::TypeSpecWithTemplate.
|
inline |
Definition at line 144 of file AbstractBasicReader.h.
|
inline |
Definition at line 160 of file AbstractBasicReader.h.
|
inline |
Definition at line 215 of file AbstractBasicReader.h.
References clang::Qualifiers::fromOpaqueValue(), and clang::Qualifiers::getAsOpaqueValue().