Adapt new code to getLocStart rename

Change-Id: I96cabd351e06de6b3e728c456bd05156572822c9
This commit is contained in:
Stephan Bergmann
2018-08-14 14:27:48 +02:00
parent 013c278d56
commit d206ddf6c5

View File

@@ -109,7 +109,7 @@ public:
explicit FilteringPlugin( const InstantiationData& data ) : Plugin(data) {}
bool TraverseNamespaceDecl(NamespaceDecl * decl) {
if (ignoreLocation(decl->getLocStart()))
if (ignoreLocation(compat::getBeginLoc(decl)))
return true;
return RecursiveASTVisitor<Derived>::TraverseNamespaceDecl(decl);
}
@@ -247,7 +247,7 @@ public:
explicit FilteringRewritePlugin( const InstantiationData& data ) : RewritePlugin(data) {}
bool TraverseNamespaceDecl(NamespaceDecl * decl) {
if (ignoreLocation(decl->getLocStart()))
if (ignoreLocation(compat::getBeginLoc(decl)))
return true;
return RecursiveASTVisitor<Derived>::TraverseNamespaceDecl(decl);
}