clang API Documentation
#include "clang/Sema/IdentifierResolver.h"
#include "clang/AST/Decl.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Lex/ExternalPreprocessorSource.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Sema/Scope.h"
Go to the source code of this file.
Classes | |
class | clang::IdentifierResolver::IdDeclInfoMap |
struct | clang::IdentifierResolver::IdDeclInfoMap::IdDeclInfoPool |
Enumerations | |
enum | DeclMatchKind |
Functions | |
static DeclMatchKind | compareDeclarations (NamedDecl *Existing, NamedDecl *New) |
Compare two declarations to see whether they are different or, if they are the same, whether the new declaration should replace the existing declaration. |
enum DeclMatchKind |
Definition at line 248 of file IdentifierResolver.cpp.
static DeclMatchKind compareDeclarations | ( | NamedDecl * | Existing, |
NamedDecl * | New | ||
) | [static] |
Compare two declarations to see whether they are different or, if they are the same, whether the new declaration should replace the existing declaration.
Definition at line 258 of file IdentifierResolver.cpp.
References clang::Decl::getCanonicalDecl(), clang::Decl::getKind(), clang::NamedDecl::getMostRecentDecl(), and clang::Decl::redecls().
Referenced by clang::IdentifierResolver::tryAddTopLevelDecl().