diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-06 13:20:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-06 15:13:20 +0200 |
commit | c91956452b5930e46d953668dff51d39746f8cf2 (patch) | |
tree | 0e6a8c385a4363e46dbeb899ca5888abc0208572 /compilerplugins | |
parent | cc20344010e94eda22fee662aab966d395a0796a (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.cxx | 11 |
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()); } |