diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-29 09:15:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-29 09:15:25 +0200 |
commit | 733198de1b7fc3907609217147704f493f6146e6 (patch) | |
tree | 1ab5ee016775b53b00a3ccdc43f7bd3a767982b6 /compilerplugins/clang/literaltoboolconversion.cxx | |
parent | Improve readability of OUString concatanation in SvNumberFormatter (diff) | |
download | core-733198de1b7fc3907609217147704f493f6146e6.tar.gz core-733198de1b7fc3907609217147704f493f6146e6.zip |
Remove support for Clang < 3.4
Change-Id: I81e97c5f720535b33dd3ce72d01151765e4e93a0
Diffstat (limited to 'compilerplugins/clang/literaltoboolconversion.cxx')
-rw-r--r-- | compilerplugins/clang/literaltoboolconversion.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compilerplugins/clang/literaltoboolconversion.cxx b/compilerplugins/clang/literaltoboolconversion.cxx index c89ad3509227..26a661eb9e02 100644 --- a/compilerplugins/clang/literaltoboolconversion.cxx +++ b/compilerplugins/clang/literaltoboolconversion.cxx @@ -9,7 +9,6 @@ #include "clang/Lex/Lexer.h" -#include "compat.hxx" #include "plugin.hxx" namespace { @@ -50,7 +49,7 @@ bool LiteralToBoolConversion::VisitImplicitCastExpr( bool LiteralToBoolConversion::isFromCIncludeFile( SourceLocation spellingLocation) const { - return !compat::isInMainFile(compiler.getSourceManager(), spellingLocation) + return !compiler.getSourceManager().isInMainFile(spellingLocation) && (StringRef( compiler.getSourceManager().getPresumedLoc(spellingLocation) .getFilename()) |