Remove support for Clang < 3.4
Change-Id: I81e97c5f720535b33dd3ce72d01151765e4e93a0
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user