From c91956452b5930e46d953668dff51d39746f8cf2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 6 Apr 2018 13:20:46 +0200 Subject: loplugin:useuniqueptr in ScXMLTableRowCellContext Change-Id: Ie2c50b08eed674c129f0f66eae502c61e565a7f8 Reviewed-on: https://gerrit.libreoffice.org/52495 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/useuniqueptr.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'compilerplugins/clang/useuniqueptr.cxx') diff --git a/compilerplugins/clang/useuniqueptr.cxx b/compilerplugins/clang/useuniqueptr.cxx index 3b3e9ff49e81..5d00c1a637e8 100644 --- a/compilerplugins/clang/useuniqueptr.cxx +++ b/compilerplugins/clang/useuniqueptr.cxx @@ -32,6 +32,17 @@ public: virtual void run() override { + std::string fn(compiler.getSourceManager() + .getFileEntryForID(compiler.getSourceManager().getMainFileID()) + ->getName()); + loplugin::normalizeDotDotInFilePath(fn); + // can't change these because we pass them down to the SfxItemPool stuff + if (fn == SRCDIR "/sc/source/core/data/docpool.cxx") + return; + // this just too clever for me + if (fn == SRCDIR "/sc/source/core/tool/chgtrack.cxx") + return; + TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); } -- cgit