summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-06 13:20:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-06 15:13:20 +0200
commitc91956452b5930e46d953668dff51d39746f8cf2 (patch)
tree0e6a8c385a4363e46dbeb899ca5888abc0208572 /compilerplugins
parentcc20344010e94eda22fee662aab966d395a0796a (diff)
loplugin:useuniqueptr in ScXMLTableRowCellContext
Change-Id: Ie2c50b08eed674c129f0f66eae502c61e565a7f8 Reviewed-on: https://gerrit.libreoffice.org/52495 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/useuniqueptr.cxx11
1 files changed, 11 insertions, 0 deletions
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());
}