Remove support for Clang < 3.4

Change-Id: I81e97c5f720535b33dd3ce72d01151765e4e93a0
This commit is contained in:
Stephan Bergmann
2016-06-29 09:15:05 +02:00
parent 94809ea0d4
commit 733198de1b
34 changed files with 25 additions and 127 deletions

View File

@@ -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")