summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/plugin.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/plugin.cxx
parent94809ea0d4101679794bb239313c4d73fab30419 (diff)
Remove support for Clang < 3.4
Change-Id: I81e97c5f720535b33dd3ce72d01151765e4e93a0
Diffstat (limited to 'compilerplugins/clang/plugin.cxx')
-rw-r--r--compilerplugins/clang/plugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx
index af618de232b8..31648a5f9d2c 100644
--- a/compilerplugins/clang/plugin.cxx
+++ b/compilerplugins/clang/plugin.cxx
@@ -17,7 +17,6 @@
#include <clang/Lex/Lexer.h>
#include "pluginhandler.hxx"
-#include "compat.hxx"
/*
Base classes for plugin actions.
@@ -106,7 +105,7 @@ const FunctionDecl* Plugin::parentFunctionDecl( const Stmt* stmt )
bool Plugin::isInUnoIncludeFile(SourceLocation spellingLocation) const {
StringRef name {
compiler.getSourceManager().getFilename(spellingLocation) };
- return compat::isInMainFile(compiler.getSourceManager(), spellingLocation)
+ return compiler.getSourceManager().isInMainFile(spellingLocation)
? (name == SRCDIR "/cppu/source/cppu/compat.cxx"
|| name == SRCDIR "/cppuhelper/source/compat.cxx"
|| name == SRCDIR "/sal/osl/all/compat.cxx")