summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/stringconcat.cxx
AgeCommit message (Collapse)AuthorFilesLines
2018-08-14filter out some of the AST in the pluginsNoel Grandin1-2/+2
by checking if the current namespace decl is in our code, so we have to scan less stuff, which results in a 10% perf improvement for me Change-Id: Idf0e30d57b6d0dcd13daa9ed679c28b9d233d387 Reviewed-on: https://gerrit.libreoffice.org/58942 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-08-10Avoid -Werror=deprecated-declarations with recent Clang trunkStephan Bergmann1-5/+5
...which first added alternative names to and then deprecated getLocBegin/End Change-Id: Iaefb8ce259057abfa6cd20f0b63c0ef2949a96b2 Reviewed-on: https://gerrit.libreoffice.org/58820 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-07-06compilerplugins: try to make these work with icecreamMichael Stahl1-1/+1
There are some problems here, this should fix one of them: the getFilename function returns "<stdin>" for spelling locations, because the input to clang is sort of preprocessed via -frewrite-includes if icecream is used and the file is built on a remote host (whereas it's apparently not preprocessed if the file is compiled locally by icecream). Using getPresumedLoc() uses the #line directives in the preprocessed input, which avoids the problem but is more expensive, so try to use it only when necessary. The getFileEntry(getMainFileID())->getName() pattern will also result in "<stdin>", but fortunately icecream passes -main-file-name, which oddly enough isn't used by the SourceManager's spelling locations, but is available separately via CodeGenOptions. This builds everything successfully with clang version 6.0.0: ICECC_PREFERRED_HOST=myremote make check gb_SUPPRESS_TESTS=t Change-Id: Ic121511683e5302d7b9d85186c8b9c4a5443fa1b Reviewed-on: https://gerrit.libreoffice.org/54993 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-11-07Clean away temporarily added using declarationsStephan Bergmann1-1/+2
Change-Id: I26734c13515394162d88351a1cbe2b20abdac865
2017-05-18Adapt pathname checks to mixed usage of \ and / on WindowsStephan Bergmann1-2/+4
Change-Id: I91bc89a9076c6642e06b238f65f2d31a1d20c6b5
2017-02-01More ctor check fixesStephan Bergmann1-2/+5
Change-Id: Ifcce63b975fb7c4ac7e7545e3eadcc6f7f12e466
2017-02-01loplugin: use TypeCheck instead of getQualifiedNameAsStringNoel Grandin1-2/+4
since the latter is rather slow Change-Id: Ib73cdb923585580777c2265b561c1808e93b2baa Reviewed-on: https://gerrit.libreoffice.org/33585 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-18loplugin:stringconcat: Adapt to definition of OSL_THIS_FUNC on WindowsStephan Bergmann1-4/+21
Change-Id: I9a2be8c4265095ff2ac5e2216cb08c35c9049bf8
2016-12-14Disambiguate clang::StringLiteralStephan Bergmann1-1/+1
...vs. recently introduced llvm::StringLiteral (llvm/ADT/StringRef.h) Change-Id: I4d74546b0d1401a74b0c15368bbc93794ecd0b1d
2015-12-02loplugin:stringconcat: Also look through O[U]String ctorsStephan Bergmann1-3/+32
Change-Id: I4f07c7c61d324a85f9f5dee0f25a7358facebd41
2015-12-02loplugin:stringconcat: Handle base case of recursion into left argStephan Bergmann1-18/+23
Change-Id: I9ed8586e8b77b009d55e411fdaa863eefc38b1c2
2014-07-01New loplugin:stringconcatStephan Bergmann1-0/+82
Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac