forked from qt-creator/qt-creator
C++: Use explicit namespaces in LookupContext
Change-Id: I0c0cc577db9b75044ebd9f5fdc51cecc0f91e3ea Reviewed-by: Adam Majer <adamm@zombino.com> Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
0e96bd7e63
commit
0bf40a73c4
@@ -47,10 +47,10 @@
|
||||
#include <QVarLengthArray>
|
||||
#include <QDebug>
|
||||
|
||||
using namespace CPlusPlus;
|
||||
|
||||
static const bool debug = ! qgetenv("QTC_LOOKUPCONTEXT_DEBUG").isEmpty();
|
||||
|
||||
namespace CPlusPlus {
|
||||
|
||||
static void addNames(const Name *name, QList<const Name *> *names, bool addAllNames = false)
|
||||
{
|
||||
if (! name)
|
||||
@@ -103,8 +103,6 @@ static bool isNestedInstantiationEnclosingTemplate(ClassOrNamespace *nestedInsta
|
||||
return true;
|
||||
}
|
||||
|
||||
namespace CPlusPlus {
|
||||
|
||||
static inline bool compareName(const Name *name, const Name *other)
|
||||
{
|
||||
if (name == other)
|
||||
@@ -134,9 +132,6 @@ bool compareFullyQualifiedName(const QList<const Name *> &path, const QList<cons
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
namespace CPlusPlus {
|
||||
namespace Internal {
|
||||
|
||||
bool operator==(const FullyQualifiedName &left, const FullyQualifiedName &right)
|
||||
@@ -158,7 +153,6 @@ uint qHash(const FullyQualifiedName &fullyQualifiedName)
|
||||
return h;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
// LookupContext
|
||||
@@ -1911,3 +1905,4 @@ Symbol *CreateBindings::instantiateTemplateFunction(const TemplateNameId *instan
|
||||
return cloner.symbol(specialization, &subst);
|
||||
}
|
||||
|
||||
} // namespace CPlusPlus
|
||||
|
||||
Reference in New Issue
Block a user