danmar/cppcheck — comment on commit b9c796d9f89c7d87537569acfae978472e538ea8
File: lib/symboldatabase.cpp line 1492
By edward-san:

Diff file:

```
diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp
index 2f242cb..0428e65 100644
--- a/lib/symboldatabase.cpp
+++ b/lib/symboldatabase.cpp
@@ -1485,13 +1485,6 @@ void Scope::getVariableList()
continue;
}

- //skip 'using (namespace)' keyword
- else if (tok->str() == "using") {
- if (tok->next() && tok->next()->str() == "namespace")
- tok = tok->next();
- continue;
- }
-
// Search for start of statement..
else if (tok->previous() && !Token::Match(tok->previous(), ";|{|}|public:|protected:|private:"))
continue;
diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp
index d767463..a04f84f 100644
--- a/lib/tokenize.cpp
+++ b/lib/tokenize.cpp
@@ -3647,9 +3672,12 @@ void Tokenizer::setVarId()
if (tok->str() == "unsigned")
tok = tok->next();

+ if (Token::Match(tok, "using namespace %type% ;")) {
+ tok = tok->next();
+ continue;
+ }
+
if (tok->str() == "using") {
- if (tok->next() && tok->next()->str() == "namespace")
- tok = tok->next();
continue;
}

```