clang
10.0.0git
|
#include "clang/Tooling/Core/Lookup.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclarationName.h"
#include "clang/Basic/SourceLocation.h"
#include "llvm/ADT/SmallVector.h"
Go to the source code of this file.
Functions | |
static llvm::SmallVector< const NamespaceDecl *, 4 > | getAllNamedNamespaces (const DeclContext *Context) |
static bool | usingFromDifferentCanonicalNamespace (const DeclContext *FromContext, const DeclContext *UseContext) |
static StringRef | getBestNamespaceSubstr (const DeclContext *DeclA, StringRef NewName, bool HadLeadingColonColon) |
static bool | isFullyQualified (const NestedNameSpecifier *NNS) |
Check if the name specifier begins with a written "::". More... | |
static std::string | disambiguateSpellingInScope (StringRef Spelling, StringRef QName, const DeclContext &UseContext, SourceLocation UseLoc) |
|
static |
Definition at line 125 of file Lookup.cpp.
References getAllNamedNamespaces(), clang::DeclContext::getParentASTContext(), clang::ASTContext::getSourceManager(), clang::SourceManager::getSpellingLoc(), clang::SourceManager::isBeforeInTranslationUnit(), and SM.
Referenced by clang::tooling::replaceNestedName().
|
static |
Definition at line 28 of file Lookup.cpp.
Referenced by disambiguateSpellingInScope(), and usingFromDifferentCanonicalNamespace().
|
static |
Definition at line 83 of file Lookup.cpp.
References clang::DeclContext::getParent().
Referenced by clang::tooling::replaceNestedName().
|
static |
Check if the name specifier begins with a written "::".
Definition at line 110 of file Lookup.cpp.
References clang::NestedNameSpecifier::getKind(), clang::NestedNameSpecifier::getPrefix(), and clang::NestedNameSpecifier::Global.
Referenced by clang::tooling::replaceNestedName().
|
static |
Definition at line 47 of file Lookup.cpp.
References getAllNamedNamespaces().
Referenced by clang::tooling::replaceNestedName().