summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/redundantstatic.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/redundantstatic.cxx')
-rw-r--r--compilerplugins/clang/redundantstatic.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/compilerplugins/clang/redundantstatic.cxx b/compilerplugins/clang/redundantstatic.cxx
index 95a3c85c9d17..40f6ab45f132 100644
--- a/compilerplugins/clang/redundantstatic.cxx
+++ b/compilerplugins/clang/redundantstatic.cxx
@@ -8,7 +8,6 @@
#ifndef LO_CLANG_SHARED_PLUGINS
#include "check.hxx"
-#include "compat.hxx"
#include "plugin.hxx"
/*
@@ -42,7 +41,7 @@ class RedundantStatic
return true;
}
if (decl->isInAnonymousNamespace()) {
- auto loc = compat::getBeginLoc(decl);
+ auto loc = decl->getBeginLoc();
while (compiler.getSourceManager().isMacroArgExpansion(loc)) {
loc = compiler.getSourceManager().getImmediateMacroCallerLoc(loc);
}
@@ -105,7 +104,7 @@ bool RedundantStatic::VisitFunctionDecl( const FunctionDecl* func )
{
report( DiagnosticsEngine::Warning,
"redundant 'static' keyword in unnamed namespace",
- compat::getBeginLoc(func));
+ func->getBeginLoc());
}
}
}