class Redeclarable
Declaration
template <typename decl_type>
class Redeclarable { /* full declaration omitted */ };
Description
Provides common interface for the Decls that can be redeclared.
Declared at: clang/include/clang/AST/Redeclarable.h:84
Templates
- decl_type
Member Variables
- protected clang::Redeclarable::DeclLink RedeclLink
- If there is only one declaration, it is <pointer to self, true>
- protected decl_type* First
Method Overview
- protected static clang::Redeclarable::DeclLink LatestDeclLink(const clang::ASTContext & Ctx)
- protected static clang::Redeclarable::DeclLink PreviousDeclLink(decl_type * D)
- public Redeclarable<decl_type>(const clang::ASTContext & Ctx)
- public decl_type * getFirstDecl()
- public const decl_type * getFirstDecl() const
- public decl_type * getMostRecentDecl()
- public const decl_type * getMostRecentDecl() const
- protected decl_type * getNextRedeclaration() const
- public decl_type * getPreviousDecl()
- public const decl_type * getPreviousDecl() const
- public bool isFirstDecl() const
- public clang::Redeclarable::redecl_range redecls() const
- public clang::Redeclarable::redecl_iterator redecls_begin() const
- public clang::Redeclarable::redecl_iterator redecls_end() const
- public void setPreviousDecl(decl_type * PrevDecl)
Methods
¶static clang::Redeclarable::DeclLink
LatestDeclLink(const clang::ASTContext& Ctx)
static clang::Redeclarable::DeclLink
LatestDeclLink(const clang::ASTContext& Ctx)
Declared at: clang/include/clang/AST/Redeclarable.h:170
Parameters
- const clang::ASTContext& Ctx
¶static clang::Redeclarable::DeclLink
PreviousDeclLink(decl_type* D)
static clang::Redeclarable::DeclLink
PreviousDeclLink(decl_type* D)
Declared at: clang/include/clang/AST/Redeclarable.h:166
Parameters
- decl_type* D
¶Redeclarable<decl_type>(
const clang::ASTContext& Ctx)
Redeclarable<decl_type>(
const clang::ASTContext& Ctx)
Declared at: clang/include/clang/AST/Redeclarable.h:198
Parameters
- const clang::ASTContext& Ctx
¶decl_type* getFirstDecl()
decl_type* getFirstDecl()
Description
Return the first declaration of this declaration or itself if this is the only declaration.
Declared at: clang/include/clang/AST/Redeclarable.h:216
¶const decl_type* getFirstDecl() const
const decl_type* getFirstDecl() const
Description
Return the first declaration of this declaration or itself if this is the only declaration.
Declared at: clang/include/clang/AST/Redeclarable.h:220
¶decl_type* getMostRecentDecl()
decl_type* getMostRecentDecl()
Description
Returns the most recent (re)declaration of this declaration.
Declared at: clang/include/clang/AST/Redeclarable.h:226
¶const decl_type* getMostRecentDecl() const
const decl_type* getMostRecentDecl() const
Description
Returns the most recent (re)declaration of this declaration.
Declared at: clang/include/clang/AST/Redeclarable.h:231
¶decl_type* getNextRedeclaration() const
decl_type* getNextRedeclaration() const
Declared at: clang/include/clang/AST/Redeclarable.h:189
¶decl_type* getPreviousDecl()
decl_type* getPreviousDecl()
Description
Return the previous declaration of this declaration or NULL if this is the first declaration.
Declared at: clang/include/clang/AST/Redeclarable.h:204
¶const decl_type* getPreviousDecl() const
const decl_type* getPreviousDecl() const
Declared at: clang/include/clang/AST/Redeclarable.h:209
¶bool isFirstDecl() const
bool isFirstDecl() const
Description
True if this is the first declaration in its redeclaration chain.
Declared at: clang/include/clang/AST/Redeclarable.h:223
¶clang::Redeclarable::redecl_range redecls() const
clang::Redeclarable::redecl_range redecls() const
Description
Returns an iterator range for all the redeclarations of the same decl. It will iterate at least once (when this decl is the only one).
Declared at: clang/include/clang/AST/Redeclarable.h:296
¶clang::Redeclarable::redecl_iterator
redecls_begin() const
clang::Redeclarable::redecl_iterator
redecls_begin() const
Declared at: clang/include/clang/AST/Redeclarable.h:302
¶clang::Redeclarable::redecl_iterator redecls_end()
const
clang::Redeclarable::redecl_iterator redecls_end()
const
Declared at: clang/include/clang/AST/Redeclarable.h:303
¶void setPreviousDecl(decl_type* PrevDecl)
void setPreviousDecl(decl_type* PrevDecl)
Description
Set the previous declaration. If PrevDecl is NULL, set this as the first and only declaration.
Declared at: clang/include/clang/AST/Redeclarable.h:237
Parameters
- decl_type* PrevDecl