compilerplugins/clang/toolslong.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 96cc36009d9dbec9d146683a22121b0394197ab0
Author:     Noel <noelgran...@gmail.com>
AuthorDate: Mon Oct 26 08:43:53 2020 +0200
Commit:     Noel <noelgran...@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_))
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to