summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/externandnotdefined.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-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/+1
Change-Id: I26734c13515394162d88351a1cbe2b20abdac865
2017-06-20reformat some loplugin codeNoel Grandin1-1/+1
to match our more normal conventions. Also drop the 'using std' and some other cruft Change-Id: I02ef81c5427188bc03a20b157a57a900a9d7bf0d
2017-05-18Adapt pathname checks to mixed usage of \ and / on WindowsStephan Bergmann1-1/+1
Change-Id: I91bc89a9076c6642e06b238f65f2d31a1d20c6b5
2016-06-29Remove support for Clang < 3.4Stephan Bergmann1-2/+2
Change-Id: I81e97c5f720535b33dd3ce72d01151765e4e93a0
2016-06-29Remove support for Clang < 3.3Stephan Bergmann1-1/+1
Change-Id: I185852a738bac10dc6d331afccfcbc7ae1225cb1
2014-07-29fix for running externandnotdefined plugin on UbuntuNoel Grandin1-2/+1
Change-Id: I00804b2dd63df44478a14a3eaf2fdcd4e4ce5d09
2014-07-11new loplugin: externalandnotdefinedNoel Grandin1-0/+79
Find "missing headers," where a function is declared directly in the .cxx (as extern) and not defined, and should arguably instead be declared in an include file. Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2