[Libreoffice-commits] core.git: compilerplugins/clang
Noel (via logerrit)
logerrit at kemper.freedesktop.org
Mon Oct 26 06:44:25 UTC 2020
compilerplugins/clang/toolslong.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 96cc36009d9dbec9d146683a22121b0394197ab0
Author: Noel <noelgrandin at gmail.com>
AuthorDate: Mon Oct 26 08:43:53 2020 +0200
Commit: Noel <noelgrandin at gmail.com>
CommitDate: Mon Oct 26 08:43:53 2020 +0200
loplugin:toolslong exclude pyuno file
Change-Id: I1b4b3f48e3195c31fb6b95932e9d4893829058dd
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_))
More information about the Libreoffice-commits
mailing list