Commit 0bf40a73 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

C++: Use explicit namespaces in LookupContext

Change-Id: I0c0cc577db9b75044ebd9f5fdc51cecc0f91e3ea
Reviewed-by: default avatarAdam Majer <adamm@zombino.com>
Reviewed-by: default avatarPrzemyslaw Gorszkowski <pgorszkowski@gmail.com>
parent 0e96bd7e
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment