Fix unused variable
This commit is contained in:
parent
5f86cc6243
commit
c2e15f10fb
|
@ -22,7 +22,7 @@ bool Consumer::HandleTopLevelDecl(clang::DeclGroupRef groupRefDecl)
|
||||||
{
|
{
|
||||||
for (clang::Decl *decl : groupRefDecl) {
|
for (clang::Decl *decl : groupRefDecl) {
|
||||||
if (clang::NamespaceDecl *namespaceDecl = llvm::dyn_cast<clang::NamespaceDecl>(decl)) {
|
if (clang::NamespaceDecl *namespaceDecl = llvm::dyn_cast<clang::NamespaceDecl>(decl)) {
|
||||||
if (!shouldParseDecl(decl)) {
|
if (!shouldParseDecl(namespaceDecl)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue