diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-26 08:43:53 +0200 |
---|---|---|
committer | Noel <noelgrandin@gmail.com> | 2020-10-26 08:43:53 +0200 |
commit | 96cc36009d9dbec9d146683a22121b0394197ab0 (patch) | |
tree | fb3d2fe49fa537b578ace0c0db68fe9442c03e75 | |
parent | 4fbd63860500b2db76df4d5aedbe5e3aa31fac69 (diff) |
loplugin:toolslong exclude pyuno file
Change-Id: I1b4b3f48e3195c31fb6b95932e9d4893829058dd
-rw-r--r-- | compilerplugins/clang/toolslong.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/toolslong.cxx b/compilerplugins/clang/toolslong.cxx index 591ce6a5cc7c..1e808cf9daab 100644 --- a/compilerplugins/clang/toolslong.cxx +++ b/compilerplugins/clang/toolslong.cxx @@ -121,6 +121,11 @@ void ToolsLong::run() if (!compiler.getLangOpts().CPlusPlus) return; + StringRef fn(handler.getMainFileName()); + // sberg says this is fine + if (loplugin::isSamePathname(fn, SRCDIR "/pyuno/source/module/pyuno.cxx")) + return; + TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); for (auto const& dcl : reverseSourceOrder(varDecls_)) |