clang 18.0.0git
|
Provides common interface for the Decls that cannot be redeclared, but can be merged if the same declaration is brought in from multiple modules. More...
#include "clang/AST/Redeclarable.h"
Public Member Functions | |
Mergeable ()=default | |
decl_type * | getFirstDecl () |
Return the first declaration of this declaration or itself if this is the only declaration. | |
const decl_type * | getFirstDecl () const |
Return the first declaration of this declaration or itself if this is the only declaration. | |
bool | isFirstDecl () const |
Returns true if this is the first declaration. | |
Provides common interface for the Decls that cannot be redeclared, but can be merged if the same declaration is brought in from multiple modules.
Definition at line 314 of file Redeclarable.h.
|
default |
|
inline |
Return the first declaration of this declaration or itself if this is the only declaration.
Definition at line 320 of file Redeclarable.h.
References clang::getPrimaryMergedDecl().
Referenced by dumpPreviousDeclImpl(), and clang::Mergeable< decl_type >::isFirstDecl().
|
inline |
Return the first declaration of this declaration or itself if this is the only declaration.
Definition at line 329 of file Redeclarable.h.
References clang::getPrimaryMergedDecl().
|
inline |
Returns true if this is the first declaration.
Definition at line 337 of file Redeclarable.h.
References clang::Mergeable< decl_type >::getFirstDecl().