summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/externandnotdefined.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-29 09:15:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-29 09:15:25 +0200
commit733198de1b7fc3907609217147704f493f6146e6 (patch)
tree1ab5ee016775b53b00a3ccdc43f7bd3a767982b6 /compilerplugins/clang/externandnotdefined.cxx
parent94809ea0d4101679794bb239313c4d73fab30419 (diff)
Remove support for Clang < 3.4
Change-Id: I81e97c5f720535b33dd3ce72d01151765e4e93a0
Diffstat (limited to 'compilerplugins/clang/externandnotdefined.cxx')
-rw-r--r--compilerplugins/clang/externandnotdefined.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/externandnotdefined.cxx b/compilerplugins/clang/externandnotdefined.cxx
index 57669a57dac8..6d4a7989782e 100644
--- a/compilerplugins/clang/externandnotdefined.cxx
+++ b/compilerplugins/clang/externandnotdefined.cxx
@@ -10,7 +10,6 @@
#include <string>
#include "plugin.hxx"
-#include "compat.hxx"
// Having an extern prototype for a method in a module and not actually declaring that method is dodgy.
//
@@ -54,7 +53,8 @@ bool ExternAndNotDefined::VisitFunctionDecl(const FunctionDecl * functionDecl) {
if (functionName == "gdk_x11_screen_get_screen_number") {
return true;
}
- if (!compat::isInMainFile( compiler.getSourceManager(), functionDecl->getLocation())) {
+ if (!compiler.getSourceManager().isInMainFile(functionDecl->getLocation()))
+ {
return true;
}
StringRef fileName { compiler.getSourceManager().getFilename(functionDecl->getLocation()) };