diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-11 11:36:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-11 11:37:07 +0200 |
commit | c04eb27affb8f6284d01dbd9f8b3c92a7979087a (patch) | |
tree | a833d8f6e0919adada320bd6561e5dc81d71b7d1 /compilerplugins | |
parent | 941df80853cb6ab729f713eeb75984ba6dfec4ab (diff) |
remove debugging code
Change-Id: Ibb6f3a1c711959cb4f32541dba96f005e51c9040
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/indentation.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
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; |