clang API Documentation
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 <Redeclarable.h>
Public Member Functions | |
Mergeable () | |
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 251 of file Redeclarable.h.
clang::Mergeable< decl_type >::Mergeable | ( | ) | [inline] |
Definition at line 253 of file Redeclarable.h.
decl_type* clang::Mergeable< decl_type >::getFirstDecl | ( | ) | [inline] |
Return the first declaration of this declaration or itself if this is the only declaration.
Definition at line 257 of file Redeclarable.h.
Referenced by dumpPreviousDeclImpl(), and clang::Mergeable< UnresolvedUsingTypenameDecl >::isFirstDecl().
const decl_type* clang::Mergeable< decl_type >::getFirstDecl | ( | ) | const [inline] |
Return the first declaration of this declaration or itself if this is the only declaration.
Definition at line 266 of file Redeclarable.h.
bool clang::Mergeable< decl_type >::isFirstDecl | ( | ) | const [inline] |
Returns true if this is the first declaration.
Definition at line 274 of file Redeclarable.h.