summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/pluginhandler.cxx
AgeCommit message (Collapse)AuthorFilesLines
2014-02-27Remove visual noise from compilerpluginsAlexander Wilms1-1/+0
Change-Id: Ibfed0b64bd60804fa377b5e25e5f197a7772d605 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-02-25...but Flags parameter was plain unsigned int prior to Clang 3.4Stephan Bergmann1-5/+6
Change-Id: Ife39abda6b5274ae196dcbf591d02fa3f36f6072
2014-02-25raw_fd_ostream Flags parameter no longer defaultedStephan Bergmann1-1/+1
...at least on trunk r202077. Change-Id: Ieb59cc7ac70e2a57ac13eefdfcbb6bfa42e25218
2014-02-20Don't attempt to actually do double code removalsStephan Bergmann1-0/+5
...that easily works around the problem that in a rewriter rewriting types of VarDecls like T x, y; it would try to replace T twice. Also, keep the list of removals globally with the (global) rewriter. Change-Id: I55b8d11986c2a29e09ff40132fd114a0cc48dc90
2014-02-17Run the non-rewriter plugins even when rewriters are specifiedStephan Bergmann1-23/+10
Change-Id: I8262091c52522c54f84c0fac5fd180871d4a3a9f
2014-01-31clang::DiagnosticsEnginge::getCustomDiagID now needs a literal FormatStringStephan Bergmann1-2/+3
...at least in trunk 200400 towards Clang 3.5. Change-Id: Ibe956a7f28c16510506bd354582b3fe5a72582e5
2014-01-27Prepare dual-mode compiler plugin featureStephan Bergmann1-9/+38
...which can act as either a rewriter or a non-rewriter that emits warnings. Also added COMPILER_PLUGIN_WARNINGS_ONLY=X to demote warnings from plugin X from errors to warnings, even under --enable-werror. Change-Id: I05361936240a890515c6bba2459565417c1746b7
2013-10-31solver doesn't solve anything...Michael Stahl1-22/+3
... it is an abbreviation of "Solar Version". Since nobody can remember that: remove OUTDIR OUTDIR_FOR_BUILD SOLARVER SOLARVERSION solarpath and any mention thereof. Change-Id: Idb3031c4f25a76ac05b22ec67e3ca3e1e8e512ad Reviewed-on: https://gerrit.libreoffice.org/6515 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-09-22add mode lines to new files (and idls) since last runCaolán McNamara1-0/+3
Change-Id: Id1e74f18c90e69d1a781c8f02e30dc3c005ed4fd
2013-08-21prevent crash when rewriting sourceLuboš Luňák1-0/+2
Change-Id: I97519c2fb08efa2c694c9fb91a4cc402a6347c2c
2013-08-06error: cannot use dynamic_cast with -fno-rttiStephan Bergmann1-2/+4
...with recent Clang trunk towards 3.4 Change-Id: Ie0991c7bd560c30551aeaada426382a889b46391
2013-06-05Adapt UPDATE_FILES=<module> to headers being moved to include/Stephan Bergmann1-1/+12
Change-Id: I6af5236358a51a51514d646c809147db56b2464b
2013-04-04don't explicitly delete PPCallbacks-based compiler plugin actionsLuboš Luňák1-1/+6
If the class is based on PPCallbacks too, Clang internals will delete the instance. Change-Id: I6dd83d800e6cca17eb0b5de23c8994f11c087fd5
2013-03-28pass around CompilerInstance rather than ASTContextLuboš Luňák1-9/+9
It's possible to get the latter from the former, and the former is useful for other things too (access to the preprocessor, for example). Change-Id: I708d709129fd3a35bf7c63da4de09c2e696b382d
2013-03-28-Wextra for compiler pluginsLuboš Luňák1-2/+2
Change-Id: I246dcf1d2c099c510435d21f0dd47e3c098456f2
2013-02-09make it possible to limit what files will be modified by a compiler pluginLuboš Luňák1-23/+78
Change-Id: I4e3e8f5ca5e5b5b59b1bd067281f90940dd893b1
2013-02-09fix check whether a file is in a directoryLuboš Luňák1-4/+4
Make sure / is appended, otherwise /foo might match /foobar/file . Change-Id: I36469916b72b407c8f0c9c255099ee671039cf17
2013-02-02remove not needed #includeLuboš Luňák1-1/+0
Change-Id: I0fa791733407199db5be2cc9606ac9be1da64188
2013-02-02append [loplugin] automatically in report() rathen than manually everywhereLuboš Luňák1-6/+6
Change-Id: I2f98622f152ae0c7ac8d1113d6380f686ac7234c
2013-02-02always use the report() helperLuboš Luňák1-17/+14
Change-Id: I2966fdb5bd98b1ddf718079584acf90a3e3a3700
2013-02-02move documentation of plugins to the .cxx filesLuboš Luňák1-0/+4
It's mostly there already anyway, no need to duplicate it. Change-Id: I5b066f90725a064fb0746e1411900e835e3f66c3
2013-02-02avoid having to manuall modify sources when adding a new clang pluginLuboš Luňák1-23/+64
Now each one registers in its .cxx file. Change-Id: I811c0d4400c2bdccc1c287269378d7e8ad8743ce
2013-02-02move plugin handling to separate source filesLuboš Luňák1-0/+137
Change-Id: Ifa1af34121bda9ca3250d09a3b8a46ea226795ed