diff options
Diffstat (limited to 'compilerplugins/clang/logexceptionnicely.cxx')
-rw-r--r-- | compilerplugins/clang/logexceptionnicely.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/compilerplugins/clang/logexceptionnicely.cxx b/compilerplugins/clang/logexceptionnicely.cxx index a262d276b88c..6cc66fdf0289 100644 --- a/compilerplugins/clang/logexceptionnicely.cxx +++ b/compilerplugins/clang/logexceptionnicely.cxx @@ -12,7 +12,7 @@ #include "plugin.hxx" #include "check.hxx" -#include "compat.hxx" +#include "config_clang.h" #include <fstream> #include <unordered_set> @@ -46,6 +46,12 @@ public: return false; if (loplugin::hasPathnamePrefix(fn, SRCDIR "/comphelper/")) return false; + if (loplugin::hasPathnamePrefix(fn, SRCDIR "/io/")) + return false; + if (loplugin::hasPathnamePrefix(fn, SRCDIR "/javaunohelper/")) + return false; + if (loplugin::hasPathnamePrefix(fn, SRCDIR "/stoc/")) + return false; // can't do that here, don't have an Any if (loplugin::hasPathnamePrefix(fn, SRCDIR "/connectivity/source/drivers/hsqldb/HStorageMap.cxx")) @@ -101,7 +107,7 @@ public: return true; StringRef fn = getFilenameOfLocation( - compiler.getSourceManager().getExpansionLoc(compat::getBeginLoc(operatorCallExpr))); + compiler.getSourceManager().getExpansionLoc(operatorCallExpr->getBeginLoc())); // these are below tools in the module hierarchy, so we can't use the pretty printing if (loplugin::hasPathnamePrefix(fn, SRCDIR "/include/comphelper/")) return true; @@ -120,7 +126,7 @@ public: return true; if (!isDerivedFromException(cxxRecordDecl)) return true; - auto loc = compat::getBeginLoc(operatorCallExpr); + auto loc = operatorCallExpr->getBeginLoc(); // for some reason, I'm warning multiple times? so just check if I've warned already if (!m_visited.insert(compiler.getSourceManager().getExpansionLoc(loc)).second) return true; |