summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 11:26:03 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 11:26:03 +0100
commit986c495052d165308f9cd1039cf6f6d9b8dbcf7c (patch)
treee9c8b78676fe9dc548d0c3e6fdb9897205d6d748 /compilerplugins
parent1cd6e2e08eba3bc55fbf6dda3cd3d19a5d95f798 (diff)
Missing isInLokIncludeFile check
Change-Id: I6577987f3f3717337e6607ffbe38397f229978f0
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/store/nullptr.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/store/nullptr.cxx b/compilerplugins/clang/store/nullptr.cxx
index 83812d0ccd49..5b38bbffa790 100644
--- a/compilerplugins/clang/store/nullptr.cxx
+++ b/compilerplugins/clang/store/nullptr.cxx
@@ -112,6 +112,8 @@ bool Nullptr::VisitImplicitCastExpr(CastExpr const * expr) {
.getImmediateExpansionRange(loc).first;
if (isInUnoIncludeFile(
compiler.getSourceManager().getSpellingLoc(loc))
+ || isInLokIncludeFile(
+ compiler.getSourceManager().getSpellingLoc(loc))
|| isFromCIncludeFile(
compiler.getSourceManager().getSpellingLoc(
loc)))