clang  3.9.0
Functions
Lookup.cpp File Reference
#include "clang/Tooling/Core/Lookup.h"
#include "clang/AST/Decl.h"
Include dependency graph for Lookup.cpp:

Go to the source code of this file.

Functions

static bool isInsideDifferentNamespaceWithSameName (const DeclContext *DeclA, const DeclContext *DeclB)
 
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...
 

Function Documentation

static StringRef getBestNamespaceSubstr ( const DeclContext DeclA,
StringRef  NewName,
bool  HadLeadingColonColon 
)
static

Definition at line 49 of file Lookup.cpp.

References clang::DeclContext::getParent().

Referenced by clang::tooling::replaceNestedName().

static bool isFullyQualified ( const NestedNameSpecifier NNS)
static

Check if the name specifier begins with a written "::".

Definition at line 76 of file Lookup.cpp.

References clang::NestedNameSpecifier::getKind(), clang::NestedNameSpecifier::getPrefix(), and clang::NestedNameSpecifier::Global.

Referenced by clang::tooling::replaceNestedName().

static bool isInsideDifferentNamespaceWithSameName ( const DeclContext DeclA,
const DeclContext DeclB 
)
static

Definition at line 19 of file Lookup.cpp.

References clang::DeclContext::getParent().

Referenced by clang::tooling::replaceNestedName().