clang  6.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
clang::MultiplexExternalSemaSource Class Reference

An abstract interface that should be implemented by external AST sources that also provide information for semantic analysis. More...

#include "clang/Sema/MultiplexExternalSemaSource.h"

Inheritance diagram for clang::MultiplexExternalSemaSource:
Inheritance graph
[legend]
Collaboration diagram for clang::MultiplexExternalSemaSource:
Collaboration graph
[legend]

Public Member Functions

 MultiplexExternalSemaSource (ExternalSemaSource &s1, ExternalSemaSource &s2)
 Constructs a new multiplexing external sema source and appends the given element to it. More...
 
 ~MultiplexExternalSemaSource () override
 
void addSource (ExternalSemaSource &source)
 Appends new source to the source list. More...
 
DeclGetExternalDecl (uint32_t ID) override
 Resolve a declaration ID into a declaration, potentially building a new declaration. More...
 
void CompleteRedeclChain (const Decl *D) override
 Complete the redeclaration chain if it's been extended since the previous generation of the AST source. More...
 
Selector GetExternalSelector (uint32_t ID) override
 Resolve a selector ID into a selector. More...
 
uint32_t GetNumExternalSelectors () override
 Returns the number of selectors known to the external AST source. More...
 
StmtGetExternalDeclStmt (uint64_t Offset) override
 Resolve the offset of a statement in the decl stream into a statement. More...
 
CXXBaseSpecifierGetExternalCXXBaseSpecifiers (uint64_t Offset) override
 Resolve the offset of a set of C++ base specifiers in the decl stream into an array of specifiers. More...
 
CXXCtorInitializer ** GetExternalCXXCtorInitializers (uint64_t Offset) override
 Resolve a handle to a list of ctor initializers into the list of initializers themselves. More...
 
ExtKind hasExternalDefinitions (const Decl *D) override
 
bool FindExternalVisibleDeclsByName (const DeclContext *DC, DeclarationName Name) override
 Find all declarations with the given name in the given context. More...
 
void completeVisibleDeclsMap (const DeclContext *DC) override
 Ensures that the table of all visible declarations inside this context is up to date. More...
 
void FindExternalLexicalDecls (const DeclContext *DC, llvm::function_ref< bool(Decl::Kind)> IsKindWeWant, SmallVectorImpl< Decl *> &Result) override
 Finds all declarations lexically contained within the given DeclContext, after applying an optional filter predicate. More...
 
void FindFileRegionDecls (FileID File, unsigned Offset, unsigned Length, SmallVectorImpl< Decl *> &Decls) override
 Get the decls that are contained in a file in the Offset/Length range. More...
 
void CompleteType (TagDecl *Tag) override
 Gives the external AST source an opportunity to complete an incomplete type. More...
 
void CompleteType (ObjCInterfaceDecl *Class) override
 Gives the external AST source an opportunity to complete an incomplete Objective-C class. More...
 
void ReadComments () override
 Loads comment ranges. More...
 
void StartedDeserializing () override
 Notify ExternalASTSource that we started deserialization of a decl or type so until FinishedDeserializing is called there may be decls that are initializing. More...
 
void FinishedDeserializing () override
 Notify ExternalASTSource that we finished the deserialization of a decl or type. More...
 
void StartTranslationUnit (ASTConsumer *Consumer) override
 Function that will be invoked when we begin parsing a new translation unit involving this external AST source. More...
 
void PrintStats () override
 Print any statistics that have been gathered regarding the external AST source. More...
 
bool layoutRecordType (const RecordDecl *Record, uint64_t &Size, uint64_t &Alignment, llvm::DenseMap< const FieldDecl *, uint64_t > &FieldOffsets, llvm::DenseMap< const CXXRecordDecl *, CharUnits > &BaseOffsets, llvm::DenseMap< const CXXRecordDecl *, CharUnits > &VirtualBaseOffsets) override
 Perform layout on the given record. More...
 
void getMemoryBufferSizes (MemoryBufferSizes &sizes) const override
 Return the amount of memory used by memory buffers, breaking down by heap-backed versus mmap'ed memory. More...
 
void InitializeSema (Sema &S) override
 Initialize the semantic source with the Sema instance being used to perform semantic analysis on the abstract syntax tree. More...
 
void ForgetSema () override
 Inform the semantic consumer that Sema is no longer available. More...
 
void ReadMethodPool (Selector Sel) override
 Load the contents of the global method pool for a given selector. More...
 
void updateOutOfDateSelector (Selector Sel) override
 Load the contents of the global method pool for a given selector if necessary. More...
 
void ReadKnownNamespaces (SmallVectorImpl< NamespaceDecl *> &Namespaces) override
 Load the set of namespaces that are known to the external source, which will be used during typo correction. More...
 
void ReadUndefinedButUsed (llvm::MapVector< NamedDecl *, SourceLocation > &Undefined) override
 Load the set of used but not defined functions or variables with internal linkage, or used but not defined inline functions. More...
 
void ReadMismatchingDeleteExpressions (llvm::MapVector< FieldDecl *, llvm::SmallVector< std::pair< SourceLocation, bool >, 4 >> &Exprs) override
 
bool LookupUnqualified (LookupResult &R, Scope *S) override
 Do last resort, unqualified lookup on a LookupResult that Sema cannot find. More...
 
void ReadTentativeDefinitions (SmallVectorImpl< VarDecl *> &Defs) override
 Read the set of tentative definitions known to the external Sema source. More...
 
void ReadUnusedFileScopedDecls (SmallVectorImpl< const DeclaratorDecl *> &Decls) override
 Read the set of unused file-scope declarations known to the external Sema source. More...
 
void ReadDelegatingConstructors (SmallVectorImpl< CXXConstructorDecl *> &Decls) override
 Read the set of delegating constructors known to the external Sema source. More...
 
void ReadExtVectorDecls (SmallVectorImpl< TypedefNameDecl *> &Decls) override
 Read the set of ext_vector type declarations known to the external Sema source. More...
 
void ReadUnusedLocalTypedefNameCandidates (llvm::SmallSetVector< const TypedefNameDecl *, 4 > &Decls) override
 Read the set of potentially unused typedefs known to the source. More...
 
void ReadReferencedSelectors (SmallVectorImpl< std::pair< Selector, SourceLocation > > &Sels) override
 Read the set of referenced selectors known to the external Sema source. More...
 
void ReadWeakUndeclaredIdentifiers (SmallVectorImpl< std::pair< IdentifierInfo *, WeakInfo > > &WI) override
 Read the set of weak, undeclared identifiers known to the external Sema source. More...
 
void ReadUsedVTables (SmallVectorImpl< ExternalVTableUse > &VTables) override
 Read the set of used vtables known to the external Sema source. More...
 
void ReadPendingInstantiations (SmallVectorImpl< std::pair< ValueDecl *, SourceLocation > > &Pending) override
 Read the set of pending instantiations known to the external Sema source. More...
 
void ReadLateParsedTemplates (llvm::MapVector< const FunctionDecl *, std::unique_ptr< LateParsedTemplate >> &LPTMap) override
 Read the set of late parsed template functions for this source. More...
 
TypoCorrection CorrectTypo (const DeclarationNameInfo &Typo, int LookupKind, Scope *S, CXXScopeSpec *SS, CorrectionCandidateCallback &CCC, DeclContext *MemberContext, bool EnteringContext, const ObjCObjectPointerType *OPT) override
 Try to "correct" a typo in the source code by finding visible declarations whose names are similar to the name that was present in the source code. More...
 
bool MaybeDiagnoseMissingCompleteType (SourceLocation Loc, QualType T) override
 Produces a diagnostic note if one of the attached sources contains a complete definition for T. More...
 
- Public Member Functions inherited from clang::ExternalSemaSource
 ExternalSemaSource ()
 
 ~ExternalSemaSource () override
 
- Public Member Functions inherited from clang::ExternalASTSource
 ExternalASTSource ()=default
 
virtual ~ExternalASTSource ()
 
uint32_t getGeneration () const
 Get the current generation of this AST source. More...
 
virtual void updateOutOfDateIdentifier (IdentifierInfo &II)
 Update an out-of-date identifier. More...
 
virtual ModulegetModule (unsigned ID)
 Retrieve the module that corresponds to the given module ID. More...
 
virtual llvm::Optional< ASTSourceDescriptorgetSourceDescriptor (unsigned ID)
 Return a descriptor for the corresponding module, if one exists. More...
 
void FindExternalLexicalDecls (const DeclContext *DC, SmallVectorImpl< Decl *> &Result)
 Finds all declarations lexically contained within the given DeclContext. More...
 
MemoryBufferSizes getMemoryBufferSizes () const
 Return the amount of memory used by memory buffers, breaking down by heap-backed versus mmap'ed memory. More...
 

Static Public Member Functions

static bool classof (const MultiplexExternalSemaSource *)
 
- Static Public Member Functions inherited from clang::ExternalSemaSource
static bool classof (const ExternalASTSource *Source)
 

Additional Inherited Members

- Public Types inherited from clang::ExternalASTSource
enum  ExtKind { EK_Always, EK_Never, EK_ReplyHazy }
 
- Protected Member Functions inherited from clang::ExternalASTSource
uint32_t incrementGeneration (ASTContext &C)
 Increment the current generation. More...
 
- Static Protected Member Functions inherited from clang::ExternalASTSource
static DeclContextLookupResult SetExternalVisibleDeclsForName (const DeclContext *DC, DeclarationName Name, ArrayRef< NamedDecl *> Decls)
 
static DeclContextLookupResult SetNoExternalVisibleDeclsForName (const DeclContext *DC, DeclarationName Name)
 

Detailed Description

An abstract interface that should be implemented by external AST sources that also provide information for semantic analysis.

Definition at line 39 of file MultiplexExternalSemaSource.h.

Constructor & Destructor Documentation

◆ MultiplexExternalSemaSource()

MultiplexExternalSemaSource::MultiplexExternalSemaSource ( ExternalSemaSource s1,
ExternalSemaSource s2 
)

Constructs a new multiplexing external sema source and appends the given element to it.

Parameters
[in]s1- A non-null (old) ExternalSemaSource.
[in]s2- A non-null (new) ExternalSemaSource.

Definition at line 22 of file MultiplexExternalSemaSource.cpp.

◆ ~MultiplexExternalSemaSource()

MultiplexExternalSemaSource::~MultiplexExternalSemaSource ( )
override

Definition at line 29 of file MultiplexExternalSemaSource.cpp.

Member Function Documentation

◆ addSource()

void MultiplexExternalSemaSource::addSource ( ExternalSemaSource source)

Appends new source to the source list.

Parameters
[in]source- An ExternalSemaSource.

Definition at line 35 of file MultiplexExternalSemaSource.cpp.

◆ classof()

static bool clang::MultiplexExternalSemaSource::classof ( const MultiplexExternalSemaSource )
inlinestatic

Definition at line 353 of file MultiplexExternalSemaSource.h.

◆ CompleteRedeclChain()

void MultiplexExternalSemaSource::CompleteRedeclChain ( const Decl D)
overridevirtual

Complete the redeclaration chain if it's been extended since the previous generation of the AST source.

Reimplemented from clang::ExternalASTSource.

Definition at line 50 of file MultiplexExternalSemaSource.cpp.

◆ CompleteType() [1/2]

void MultiplexExternalSemaSource::CompleteType ( TagDecl Tag)
overridevirtual

Gives the external AST source an opportunity to complete an incomplete type.

Reimplemented from clang::ExternalASTSource.

Definition at line 132 of file MultiplexExternalSemaSource.cpp.

Referenced by CompleteType().

◆ CompleteType() [2/2]

void MultiplexExternalSemaSource::CompleteType ( ObjCInterfaceDecl Class)
overridevirtual

Gives the external AST source an opportunity to complete an incomplete Objective-C class.

This routine will only be invoked if the "externally completed" bit is set on the ObjCInterfaceDecl via the function ObjCInterfaceDecl::setExternallyCompleted().

Reimplemented from clang::ExternalASTSource.

Definition at line 137 of file MultiplexExternalSemaSource.cpp.

References CompleteType().

◆ completeVisibleDeclsMap()

void MultiplexExternalSemaSource::completeVisibleDeclsMap ( const DeclContext DC)
overridevirtual

Ensures that the table of all visible declarations inside this context is up to date.

Reimplemented from clang::ExternalASTSource.

Definition at line 112 of file MultiplexExternalSemaSource.cpp.

◆ CorrectTypo()

TypoCorrection MultiplexExternalSemaSource::CorrectTypo ( const DeclarationNameInfo Typo,
int  LookupKind,
Scope S,
CXXScopeSpec SS,
CorrectionCandidateCallback CCC,
DeclContext MemberContext,
bool  EnteringContext,
const ObjCObjectPointerType OPT 
)
overridevirtual

Try to "correct" a typo in the source code by finding visible declarations whose names are similar to the name that was present in the source code.

Parameters
TypoNamethe DeclarationNameInfo structure that contains the name that was present in the source code along with its location.
LookupKindthe name-lookup criteria used to search for the name.
Sthe scope in which name lookup occurs.
SSthe nested-name-specifier that precedes the name we're looking for, if present.
CCCA CorrectionCandidateCallback object that provides further validation of typo correction candidates. It also provides flags for determining the set of keywords permitted.
MemberContextif non-NULL, the context in which to look for a member access expression.
EnteringContextwhether we're entering the context described by the nested-name-specifier SS.
OPTwhen non-NULL, the search for visible declarations will also walk the protocols in the qualified interfaces of OPT.
Returns
a TypoCorrection containing the corrected name if the typo along with information such as the NamedDecl where the corrected name was declared, and any additional NestedNameSpecifier needed to access it (C++ only). The TypoCorrection is empty if there is no correction.
Note
LookupKind must correspond to a valid Sema::LookupNameKind

ExternalSemaSource::CorrectTypo is always given the first chance to correct a typo (really, to offer suggestions to repair a failed lookup). It will even be called when SpellChecking is turned off or after a fatal error has already been detected.

Note
Returns the first nonempty correction.

Reimplemented from clang::ExternalSemaSource.

Definition at line 301 of file MultiplexExternalSemaSource.cpp.

◆ FindExternalLexicalDecls()

void MultiplexExternalSemaSource::FindExternalLexicalDecls ( const DeclContext DC,
llvm::function_ref< bool(Decl::Kind)>  IsKindWeWant,
SmallVectorImpl< Decl *> &  Result 
)
overridevirtual

Finds all declarations lexically contained within the given DeclContext, after applying an optional filter predicate.

Parameters
IsKindWeWanta predicate function that returns true if the passed declaration kind is one we are looking for.

Reimplemented from clang::ExternalASTSource.

Definition at line 117 of file MultiplexExternalSemaSource.cpp.

◆ FindExternalVisibleDeclsByName()

bool MultiplexExternalSemaSource::FindExternalVisibleDeclsByName ( const DeclContext DC,
DeclarationName  Name 
)
overridevirtual

Find all declarations with the given name in the given context.

Reimplemented from clang::ExternalASTSource.

Definition at line 105 of file MultiplexExternalSemaSource.cpp.

◆ FindFileRegionDecls()

void MultiplexExternalSemaSource::FindFileRegionDecls ( FileID  File,
unsigned  Offset,
unsigned  Length,
SmallVectorImpl< Decl *> &  Decls 
)
overridevirtual

Get the decls that are contained in a file in the Offset/Length range.

Length can be 0 to indicate a point at Offset instead of a range.

Reimplemented from clang::ExternalASTSource.

Definition at line 124 of file MultiplexExternalSemaSource.cpp.

◆ FinishedDeserializing()

void MultiplexExternalSemaSource::FinishedDeserializing ( )
overridevirtual

Notify ExternalASTSource that we finished the deserialization of a decl or type.

Must be paired with StartedDeserializing.

Reimplemented from clang::ExternalASTSource.

Definition at line 152 of file MultiplexExternalSemaSource.cpp.

◆ ForgetSema()

void MultiplexExternalSemaSource::ForgetSema ( )
overridevirtual

Inform the semantic consumer that Sema is no longer available.

Reimplemented from clang::ExternalSemaSource.

Definition at line 197 of file MultiplexExternalSemaSource.cpp.

◆ GetExternalCXXBaseSpecifiers()

CXXBaseSpecifier * MultiplexExternalSemaSource::GetExternalCXXBaseSpecifiers ( uint64_t  Offset)
overridevirtual

Resolve the offset of a set of C++ base specifiers in the decl stream into an array of specifiers.

Reimplemented from clang::ExternalASTSource.

Definition at line 79 of file MultiplexExternalSemaSource.cpp.

◆ GetExternalCXXCtorInitializers()

CXXCtorInitializer ** MultiplexExternalSemaSource::GetExternalCXXCtorInitializers ( uint64_t  Offset)
overridevirtual

Resolve a handle to a list of ctor initializers into the list of initializers themselves.

Reimplemented from clang::ExternalASTSource.

Definition at line 88 of file MultiplexExternalSemaSource.cpp.

◆ GetExternalDecl()

Decl * MultiplexExternalSemaSource::GetExternalDecl ( uint32_t  ID)
overridevirtual

Resolve a declaration ID into a declaration, potentially building a new declaration.

Reimplemented from clang::ExternalASTSource.

Definition at line 43 of file MultiplexExternalSemaSource.cpp.

References clang::Result.

◆ GetExternalDeclStmt()

Stmt * MultiplexExternalSemaSource::GetExternalDeclStmt ( uint64_t  Offset)
overridevirtual

Resolve the offset of a statement in the decl stream into a statement.

Reimplemented from clang::ExternalASTSource.

Definition at line 72 of file MultiplexExternalSemaSource.cpp.

References clang::Result.

◆ GetExternalSelector()

Selector MultiplexExternalSemaSource::GetExternalSelector ( uint32_t  ID)
overridevirtual

Resolve a selector ID into a selector.

Reimplemented from clang::ExternalASTSource.

Definition at line 55 of file MultiplexExternalSemaSource.cpp.

References clang::Selector::isNull().

◆ getMemoryBufferSizes()

void MultiplexExternalSemaSource::getMemoryBufferSizes ( MemoryBufferSizes sizes) const
overridevirtual

Return the amount of memory used by memory buffers, breaking down by heap-backed versus mmap'ed memory.

Reimplemented from clang::ExternalASTSource.

Definition at line 181 of file MultiplexExternalSemaSource.cpp.

References clang::ExternalASTSource::getMemoryBufferSizes().

◆ GetNumExternalSelectors()

uint32_t MultiplexExternalSemaSource::GetNumExternalSelectors ( )
overridevirtual

Returns the number of selectors known to the external AST source.

Reimplemented from clang::ExternalASTSource.

Definition at line 65 of file MultiplexExternalSemaSource.cpp.

◆ hasExternalDefinitions()

ExternalASTSource::ExtKind MultiplexExternalSemaSource::hasExternalDefinitions ( const Decl D)
overridevirtual

Reimplemented from clang::ExternalASTSource.

Definition at line 96 of file MultiplexExternalSemaSource.cpp.

◆ InitializeSema()

void MultiplexExternalSemaSource::InitializeSema ( Sema S)
overridevirtual

Initialize the semantic source with the Sema instance being used to perform semantic analysis on the abstract syntax tree.

Reimplemented from clang::ExternalSemaSource.

Definition at line 192 of file MultiplexExternalSemaSource.cpp.

◆ layoutRecordType()

bool MultiplexExternalSemaSource::layoutRecordType ( const RecordDecl Record,
uint64_t &  Size,
uint64_t &  Alignment,
llvm::DenseMap< const FieldDecl *, uint64_t > &  FieldOffsets,
llvm::DenseMap< const CXXRecordDecl *, CharUnits > &  BaseOffsets,
llvm::DenseMap< const CXXRecordDecl *, CharUnits > &  VirtualBaseOffsets 
)
overridevirtual

Perform layout on the given record.

This routine allows the external AST source to provide an specific layout for a record, overriding the layout that would normally be constructed. It is intended for clients who receive specific layout details rather than source code (such as LLDB). The client is expected to fill in the field offsets, base offsets, virtual base offsets, and complete object size.

Parameters
RecordThe record whose layout is being requested.
SizeThe final size of the record, in bits.
AlignmentThe final alignment of the record, in bits.
FieldOffsetsThe offset of each of the fields within the record, expressed in bits. All of the fields must be provided with offsets.
BaseOffsetsThe offset of each of the direct, non-virtual base classes. If any bases are not given offsets, the bases will be laid out according to the ABI.
VirtualBaseOffsetsThe offset of each of the virtual base classes (either direct or not). If any bases are not given offsets, the bases will be laid out according to the ABI.
Returns
true if the record layout was provided, false otherwise.

Reimplemented from clang::ExternalASTSource.

Definition at line 167 of file MultiplexExternalSemaSource.cpp.

References clang::ExternalASTSource::getMemoryBufferSizes().

◆ LookupUnqualified()

bool MultiplexExternalSemaSource::LookupUnqualified ( LookupResult R,
Scope S 
)
overridevirtual

Do last resort, unqualified lookup on a LookupResult that Sema cannot find.

Parameters
Ra LookupResult that is being recovered.
Sthe Scope of the identifier occurrence.
Returns
true to tell Sema to recover using the LookupResult.

Reimplemented from clang::ExternalSemaSource.

Definition at line 232 of file MultiplexExternalSemaSource.cpp.

◆ MaybeDiagnoseMissingCompleteType()

bool MultiplexExternalSemaSource::MaybeDiagnoseMissingCompleteType ( SourceLocation  Loc,
QualType  T 
)
overridevirtual

Produces a diagnostic note if one of the attached sources contains a complete definition for T.

Queries the sources in list order until the first one claims that a diagnostic was produced.

Parameters
Locthe location at which a complete type was required but not provided
Tthe QualType that should have been complete at Loc
Returns
true if a diagnostic was produced, false otherwise.

Reimplemented from clang::ExternalSemaSource.

Definition at line 317 of file MultiplexExternalSemaSource.cpp.

◆ PrintStats()

void MultiplexExternalSemaSource::PrintStats ( )
overridevirtual

Print any statistics that have been gathered regarding the external AST source.

Reimplemented from clang::ExternalASTSource.

Definition at line 162 of file MultiplexExternalSemaSource.cpp.

◆ ReadComments()

void MultiplexExternalSemaSource::ReadComments ( )
overridevirtual

Loads comment ranges.

Reimplemented from clang::ExternalASTSource.

Definition at line 142 of file MultiplexExternalSemaSource.cpp.

◆ ReadDelegatingConstructors()

void MultiplexExternalSemaSource::ReadDelegatingConstructors ( SmallVectorImpl< CXXConstructorDecl *> &  Decls)
overridevirtual

Read the set of delegating constructors known to the external Sema source.

The external source should append its own delegating constructors to the given vector of declarations. Note that this routine may be invoked multiple times; the external source should take care not to introduce the same declarations repeatedly.

Reimplemented from clang::ExternalSemaSource.

Definition at line 251 of file MultiplexExternalSemaSource.cpp.

◆ ReadExtVectorDecls()

void MultiplexExternalSemaSource::ReadExtVectorDecls ( SmallVectorImpl< TypedefNameDecl *> &  Decls)
overridevirtual

Read the set of ext_vector type declarations known to the external Sema source.

The external source should append its own ext_vector type declarations to the given vector of declarations. Note that this routine may be invoked multiple times; the external source should take care not to introduce the same declarations repeatedly.

Reimplemented from clang::ExternalSemaSource.

Definition at line 257 of file MultiplexExternalSemaSource.cpp.

◆ ReadKnownNamespaces()

void MultiplexExternalSemaSource::ReadKnownNamespaces ( SmallVectorImpl< NamespaceDecl *> &  Namespaces)
overridevirtual

Load the set of namespaces that are known to the external source, which will be used during typo correction.

Reimplemented from clang::ExternalSemaSource.

Definition at line 212 of file MultiplexExternalSemaSource.cpp.

References ReadKnownNamespaces().

Referenced by ReadKnownNamespaces().

◆ ReadLateParsedTemplates()

void MultiplexExternalSemaSource::ReadLateParsedTemplates ( llvm::MapVector< const FunctionDecl *, std::unique_ptr< LateParsedTemplate >> &  LPTMap)
overridevirtual

Read the set of late parsed template functions for this source.

The external source should insert its own late parsed template functions into the map. Note that this routine may be invoked multiple times; the external source should take care not to introduce the same map entries repeatedly.

Reimplemented from clang::ExternalSemaSource.

Definition at line 294 of file MultiplexExternalSemaSource.cpp.

◆ ReadMethodPool()

void MultiplexExternalSemaSource::ReadMethodPool ( Selector  Sel)
overridevirtual

Load the contents of the global method pool for a given selector.

Reimplemented from clang::ExternalSemaSource.

Definition at line 202 of file MultiplexExternalSemaSource.cpp.

◆ ReadMismatchingDeleteExpressions()

void MultiplexExternalSemaSource::ReadMismatchingDeleteExpressions ( llvm::MapVector< FieldDecl *, llvm::SmallVector< std::pair< SourceLocation, bool >, 4 >> &  Exprs)
overridevirtual

Reimplemented from clang::ExternalSemaSource.

Definition at line 224 of file MultiplexExternalSemaSource.cpp.

◆ ReadPendingInstantiations()

void MultiplexExternalSemaSource::ReadPendingInstantiations ( SmallVectorImpl< std::pair< ValueDecl *, SourceLocation > > &  Pending)
overridevirtual

Read the set of pending instantiations known to the external Sema source.

The external source should append its own pending instantiations to the given vector. Note that this routine may be invoked multiple times; the external source should take care not to introduce the same instantiations repeatedly.

Reimplemented from clang::ExternalSemaSource.

Definition at line 287 of file MultiplexExternalSemaSource.cpp.

◆ ReadReferencedSelectors()

void MultiplexExternalSemaSource::ReadReferencedSelectors ( SmallVectorImpl< std::pair< Selector, SourceLocation > > &  Sels)
overridevirtual

Read the set of referenced selectors known to the external Sema source.

The external source should append its own referenced selectors to the given vector of selectors. Note that this routine may be invoked multiple times; the external source should take care not to introduce the same selectors repeatedly.

Reimplemented from clang::ExternalSemaSource.

Definition at line 269 of file MultiplexExternalSemaSource.cpp.

◆ ReadTentativeDefinitions()

void MultiplexExternalSemaSource::ReadTentativeDefinitions ( SmallVectorImpl< VarDecl *> &  Defs)
overridevirtual

Read the set of tentative definitions known to the external Sema source.

The external source should append its own tentative definitions to the given vector of tentative definitions. Note that this routine may be invoked multiple times; the external source should take care not to introduce the same declarations repeatedly.

Reimplemented from clang::ExternalSemaSource.

Definition at line 239 of file MultiplexExternalSemaSource.cpp.

◆ ReadUndefinedButUsed()

void MultiplexExternalSemaSource::ReadUndefinedButUsed ( llvm::MapVector< NamedDecl *, SourceLocation > &  Undefined)
overridevirtual

Load the set of used but not defined functions or variables with internal linkage, or used but not defined inline functions.

Reimplemented from clang::ExternalSemaSource.

Definition at line 218 of file MultiplexExternalSemaSource.cpp.

◆ ReadUnusedFileScopedDecls()

void MultiplexExternalSemaSource::ReadUnusedFileScopedDecls ( SmallVectorImpl< const DeclaratorDecl *> &  Decls)
overridevirtual

Read the set of unused file-scope declarations known to the external Sema source.

The external source should append its own unused, filed-scope to the given vector of declarations. Note that this routine may be invoked multiple times; the external source should take care not to introduce the same declarations repeatedly.

Reimplemented from clang::ExternalSemaSource.

Definition at line 245 of file MultiplexExternalSemaSource.cpp.

◆ ReadUnusedLocalTypedefNameCandidates()

void MultiplexExternalSemaSource::ReadUnusedLocalTypedefNameCandidates ( llvm::SmallSetVector< const TypedefNameDecl *, 4 > &  Decls)
overridevirtual

Read the set of potentially unused typedefs known to the source.

The external source should append its own potentially unused local typedefs to the given vector of declarations. Note that this routine may be invoked multiple times; the external source should take care not to introduce the same declarations repeatedly.

Reimplemented from clang::ExternalSemaSource.

Definition at line 263 of file MultiplexExternalSemaSource.cpp.

◆ ReadUsedVTables()

void MultiplexExternalSemaSource::ReadUsedVTables ( SmallVectorImpl< ExternalVTableUse > &  VTables)
overridevirtual

Read the set of used vtables known to the external Sema source.

The external source should append its own used vtables to the given vector. Note that this routine may be invoked multiple times; the external source should take care not to introduce the same vtables repeatedly.

Reimplemented from clang::ExternalSemaSource.

Definition at line 281 of file MultiplexExternalSemaSource.cpp.

◆ ReadWeakUndeclaredIdentifiers()

void MultiplexExternalSemaSource::ReadWeakUndeclaredIdentifiers ( SmallVectorImpl< std::pair< IdentifierInfo *, WeakInfo > > &  WI)
overridevirtual

Read the set of weak, undeclared identifiers known to the external Sema source.

The external source should append its own weak, undeclared identifiers to the given vector. Note that this routine may be invoked multiple times; the external source should take care not to introduce the same identifiers repeatedly.

Reimplemented from clang::ExternalSemaSource.

Definition at line 275 of file MultiplexExternalSemaSource.cpp.

◆ StartedDeserializing()

void MultiplexExternalSemaSource::StartedDeserializing ( )
overridevirtual

Notify ExternalASTSource that we started deserialization of a decl or type so until FinishedDeserializing is called there may be decls that are initializing.

Must be paired with FinishedDeserializing.

Reimplemented from clang::ExternalASTSource.

Definition at line 147 of file MultiplexExternalSemaSource.cpp.

◆ StartTranslationUnit()

void MultiplexExternalSemaSource::StartTranslationUnit ( ASTConsumer Consumer)
overridevirtual

Function that will be invoked when we begin parsing a new translation unit involving this external AST source.

Reimplemented from clang::ExternalASTSource.

Definition at line 157 of file MultiplexExternalSemaSource.cpp.

◆ updateOutOfDateSelector()

void MultiplexExternalSemaSource::updateOutOfDateSelector ( Selector  Sel)
overridevirtual

Load the contents of the global method pool for a given selector if necessary.

Reimplemented from clang::ExternalSemaSource.

Definition at line 207 of file MultiplexExternalSemaSource.cpp.


The documentation for this class was generated from the following files: