class DataStreamBasicReader
Declaration
template <class Impl>
class DataStreamBasicReader { /* full declaration omitted */ };
Description
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
Declared at: clang/include/clang/AST/AbstractBasicReader.h:123
Templates
- Impl
Method Overview
- protected DataStreamBasicReader<Impl>(clang::ASTContext & ctx)
- public Impl & find(const char * propertyName)
- public llvm::APInt readAPInt()
- public llvm::APSInt readAPSInt()
- public template <class T>llvm::ArrayRef<T> readArray(llvm::SmallVectorImpl<T> & buffer)
- public template <class T>T readEnum()
- public FunctionProtoType::ExceptionSpecInfo readExceptionSpecInfo(llvm::SmallVectorImpl<QualType> & buffer)
- public FunctionProtoType::ExtParameterInfo readExtParameterInfo()
- public llvm::FixedPointSemantics readFixedPointSemantics()
- public APValue::LValuePathSerializationHelper readLValuePathSerializationHelper(SmallVectorImpl<APValue::LValuePathEntry> & path)
- public clang::NestedNameSpecifier * readNestedNameSpecifier()
- public Impl & readObject()
- public template <class T, class... Args>llvm::Optional<T> readOptional(Args &&... args)
- public clang::Qualifiers readQualifiers()
Methods
¶DataStreamBasicReader<Impl>(
clang::ASTContext& ctx)
DataStreamBasicReader<Impl>(
clang::ASTContext& ctx)
Declared at: clang/include/clang/AST/AbstractBasicReader.h:126
Parameters
- clang::ASTContext& ctx
¶Impl& find(const char* propertyName)
Impl& find(const char* propertyName)
Description
Implement property-find by ignoring it. We rely on properties being serialized and deserialized in a reliable order instead.
Declared at: clang/include/clang/AST/AbstractBasicReader.h:133
Parameters
- const char* propertyName
¶llvm::APInt readAPInt()
llvm::APInt readAPInt()
Declared at: clang/include/clang/AST/AbstractBasicReader.h:171
¶llvm::APSInt readAPSInt()
llvm::APSInt readAPSInt()
Declared at: clang/include/clang/AST/AbstractBasicReader.h:165
¶template <class T>
llvm::ArrayRef<T> readArray(
llvm::SmallVectorImpl<T>& buffer)
template <class T>
llvm::ArrayRef<T> readArray(
llvm::SmallVectorImpl<T>& buffer)
Declared at: clang/include/clang/AST/AbstractBasicReader.h:147
Templates
- T
Parameters
- llvm::SmallVectorImpl<T>& buffer
¶template <class T>
T readEnum()
template <class T>
T readEnum()
Declared at: clang/include/clang/AST/AbstractBasicReader.h:138
Templates
- T
¶FunctionProtoType::ExceptionSpecInfo
readExceptionSpecInfo(
llvm::SmallVectorImpl<QualType>& buffer)
FunctionProtoType::ExceptionSpecInfo
readExceptionSpecInfo(
llvm::SmallVectorImpl<QualType>& buffer)
Declared at: clang/include/clang/AST/AbstractBasicReader.h:222
Parameters
- llvm::SmallVectorImpl<QualType>& buffer
¶FunctionProtoType::ExtParameterInfo
readExtParameterInfo()
FunctionProtoType::ExtParameterInfo
readExtParameterInfo()
Declared at: clang/include/clang/AST/AbstractBasicReader.h:238
¶llvm::FixedPointSemantics
readFixedPointSemantics()
llvm::FixedPointSemantics
readFixedPointSemantics()
Declared at: clang/include/clang/AST/AbstractBasicReader.h:180
¶APValue::LValuePathSerializationHelper
readLValuePathSerializationHelper(
SmallVectorImpl<APValue::LValuePathEntry>&
path)
APValue::LValuePathSerializationHelper
readLValuePathSerializationHelper(
SmallVectorImpl<APValue::LValuePathEntry>&
path)
Declared at: clang/include/clang/AST/AbstractBasicReader.h:191
Parameters
- SmallVectorImpl<APValue::LValuePathEntry>& path
¶clang::NestedNameSpecifier*
readNestedNameSpecifier()
clang::NestedNameSpecifier*
readNestedNameSpecifier()
Declared at: clang/include/clang/AST/AbstractBasicReader.h:246
¶Impl& readObject()
Impl& readObject()
Declared at: clang/include/clang/AST/AbstractBasicReader.h:144
¶template <class T, class... Args>
llvm::Optional<T> readOptional(Args&&... args)
template <class T, class... Args>
llvm::Optional<T> readOptional(Args&&... args)
Declared at: clang/include/clang/AST/AbstractBasicReader.h:160
Templates
- T
- Args
Parameters
- Args&&... args
¶clang::Qualifiers readQualifiers()
clang::Qualifiers readQualifiers()
Declared at: clang/include/clang/AST/AbstractBasicReader.h:214