[Libreoffice-commits] core.git: compilerplugins/clang

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Feb 11 09:37:32 UTC 2019


 compilerplugins/clang/indentation.cxx |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

New commits:
commit c04eb27affb8f6284d01dbd9f8b3c92a7979087a
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Feb 11 11:36:01 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Feb 11 11:37:07 2019 +0200

    remove debugging code
    
    Change-Id: Ibb6f3a1c711959cb4f32541dba96f005e51c9040

diff --git a/compilerplugins/clang/indentation.cxx b/compilerplugins/clang/indentation.cxx
index 3a8667c97f29..362ad11583bf 100644
--- a/compilerplugins/clang/indentation.cxx
+++ b/compilerplugins/clang/indentation.cxx
@@ -25,11 +25,6 @@ TODO else should line up with if
 
 namespace
 {
-static bool startswith(const std::string& rStr, const char* pSubStr)
-{
-    return rStr.compare(0, strlen(pSubStr), pSubStr) == 0;
-}
-
 class Indentation : public loplugin::FilteringPlugin<Indentation>
 {
 public:
@@ -55,7 +50,7 @@ public:
         if (fn == SRCDIR "/binaryurp/source/bridge.cxx")
             return;
         // the QEMIT macros
-        if (startswith(fn, SRCDIR "/vcl/qt5/"))
+        if (loplugin::hasPathnamePrefix(fn, SRCDIR "/vcl/qt5/"))
             return;
         TraverseDecl(compiler.getASTContext().getTranslationUnitDecl());
     }
@@ -169,7 +164,6 @@ bool Indentation::VisitCompoundStmt(CompoundStmt const* compoundStmt)
                    compat::getBeginLoc(firstStmt));
             //getParentStmt(compoundStmt)->dump();
             //stmt->dump();
-            compoundStmt->dump();
         }
     }
     return true;


More information about the Libreoffice-commits mailing list