summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-modernize
Commit message (Collapse)AuthorAgeFilesLines
* Remove clang-modernize.Alexander Kornienko2015-12-1761-7630/+0
| | | | | | | | | | | | | | Summary: clang-modernize transforms have moved to clang-tidy. Removing the old tool now. Reviewers: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D15606 llvm-svn: 255886
* Revert "Apply modernize-use-default to clang-tools-extra."David Blaikie2015-10-202-3/+3
| | | | | | | | | Breaks the build in GCC 4.7.2 (see http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3 for example) This reverts commit r250824. llvm-svn: 250862
* Apply modernize-use-default to clang-tools-extra.Angel Garcia Gomez2015-10-202-3/+3
| | | | | | | | | | | | Summary: Replace empty bodies of default constructors and destructors with '= default'. Reviewers: klimek Subscribers: alexfh, cfe-commits Differential Revision: http://reviews.llvm.org/D13889 llvm-svn: 250824
* Make a bunch of static arrays const.Craig Topper2015-10-182-3/+3
| | | | llvm-svn: 250641
* SourceRanges are small and trivially copyable, don't them by reference. NFCCraig Topper2015-10-041-1/+1
| | | | llvm-svn: 249258
* Replace double negation of !FileID.isInvalid() with FileID.isValid().Yaron Keren2015-10-032-2/+2
| | | | | | +couple more of double-negated !SourceLocation.isInvalid() unfixed in r249228. llvm-svn: 249235
* Pass SourceLocation by value instead of by const reference since its just a ↵Craig Topper2015-09-212-2/+2
| | | | | | 32-bit integer. NFC llvm-svn: 248139
* clang-tools-extra: Appease PR24881. [-Wdocumentation]NAKAMURA Takumi2015-09-193-7/+13
| | | | | | \returns doesn't accept \li, but \parblock \li. llvm-svn: 248080
* Refactors AST matching code to use the new AST matcher names. This patch ↵Aaron Ballman2015-09-175-28/+27
| | | | | | correlates to r247885 which performs the AST matcher rename in Clang. llvm-svn: 247886
* Replacing a custom AST matcher with some builtin AST matchers; NFC, and ↵Aaron Ballman2015-08-191-14/+1
| | | | | | existing tests should provide sufficient coverage. llvm-svn: 245484
* [clang-modernize] Don't rely on iterator auto-dereferencing.Benjamin Kramer2015-07-181-1/+1
| | | | llvm-svn: 242607
* Revert r241330. It compiled with Visual C++ 2013 and gcc 4.9.1 (mingw) but ↵Yaron Keren2015-07-031-3/+3
| | | | | | now fails the bots. llvm-svn: 241335
* Replace some const std::string & with llvm::StringRef or std::stringYaron Keren2015-07-031-3/+3
| | | | | | | | and std::move to avoid implicit std::string construction. Patch by Eugene Kosov. llvm-svn: 241330
* Update to match clang r236404.Richard Smith2015-05-041-8/+6
| | | | llvm-svn: 236405
* Use 'override/final' instead of 'virtual' for overridden methodsAlexander Kornienko2015-04-115-25/+24
| | | | | | | | | | | | | | | | | | | | | | Summary: The patch is generated using clang-tidy misc-use-override check. This command was used: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \ -checks='-*,misc-use-override' -header-filter='llvm|clang' -j=32 -fix svn diff | clang-format-diff -i Reviewers: dblaikie Reviewed By: dblaikie Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D8927 llvm-svn: 234681
* Remove redundant virtual from member functions marked 'override'.David Blaikie2015-04-089-28/+29
| | | | llvm-svn: 234416
* Make helpers static. clang-tools edition.Benjamin Kramer2015-03-236-5/+15
| | | | | | Also purge dead code found by it. NFC. llvm-svn: 232948
* Update for clang r230512David Majnemer2015-02-251-1/+1
| | | | llvm-svn: 230513
* Revert "Adapt clang-tools-extra to clang module format changes."Adrian Prantl2015-02-251-3/+2
| | | | | | This reverts commit 230424. llvm-svn: 230456
* Adapt clang-tools-extra to clang module format changes.Adrian Prantl2015-02-251-2/+3
| | | | | | | - add clangCodeGen.a to the tools that need it - tweak pp-trace command line handling to not conflict with clang's. llvm-svn: 230424
* Revert "Add clangCodeGen.a to the tools that need it after the clang module"Adrian Prantl2015-02-241-3/+2
| | | | llvm-svn: 230310
* Fix typo s/bitcodewriter/bitwriterAdrian Prantl2015-02-241-1/+1
| | | | llvm-svn: 230307
* Add clangCodeGen.a to the tools that need it after the clang moduleAdrian Prantl2015-02-241-2/+3
| | | | | | format change. llvm-svn: 230306
* Revert "Adapt Makefile dependencies for the clang module format change in ↵Adrian Prantl2015-02-211-5/+2
| | | | | | r230089." llvm-svn: 230104
* Adapt Makefile dependencies for the clang module format change in r230089.Adrian Prantl2015-02-201-2/+5
| | | | llvm-svn: 230090
* NFC. Migrating clang-tools-extra to the cl::HideUnrelatedOptions API.Chris Bieneman2015-01-281-15/+1
| | | | llvm-svn: 227388
* Updated tools to match r227345 which changed the getRegisteredOptions methodPete Cooper2015-01-281-2/+1
| | | | llvm-svn: 227372
* Make LoopConvert work with containers that are used like arrays.Daniel Jasper2015-01-121-0/+7
| | | | llvm-svn: 225629
* Remove some redundant virtual on overridden functionsDavid Blaikie2014-11-142-4/+4
| | | | llvm-svn: 222027
* Use findProgramByName. NFC.Rafael Espindola2014-11-041-3/+4
| | | | llvm-svn: 221260
* [CMake] Add dependencies on clangToolingCore.NAKAMURA Takumi2014-10-302-0/+2
| | | | llvm-svn: 220890
* Fix Makefiles after r220867.Daniel Jasper2014-10-291-1/+2
| | | | llvm-svn: 220868
* [clang-modernize] Update for API change.Benjamin Kramer2014-10-041-6/+6
| | | | | | NFC. llvm-svn: 219063
* Add missing 'override' keyword.Craig Topper2014-10-031-1/+1
| | | | llvm-svn: 218961
* Unique_ptrify PPCallbacks ownership. Goes with clang r217474.Craig Topper2014-09-101-2/+3
| | | | llvm-svn: 217475
* Update for LLVM api changeRafael Espindola2014-08-252-8/+6
| | | | llvm-svn: 216396
* Update for API change in clang.Rafael Espindola2014-08-121-1/+2
| | | | llvm-svn: 215452
* Update for API change in r215391David Blaikie2014-08-111-1/+1
| | | | llvm-svn: 215392
* Recommit 213308: unique_ptr-ify ownership of ASTConsumers (reverted in r213324)David Blaikie2014-08-101-1/+2
| | | | | | | | After post-commit review and community discussion, this seems like a reasonable direction to continue, making ownership semantics explicit in the source using the type system. llvm-svn: 215324
* clang-modernize: Transform::createActionFactory return ownership by ↵David Blaikie2014-08-089-24/+19
| | | | | | | | | unique_ptr instead of raw pointer. Follow up to r213851 to simplify code and reduce the chance of future leaks. llvm-svn: 215214
* Plug memory leaks.Benjamin Kramer2014-07-247-11/+17
| | | | | | | Most of the changes are mechanic std::unique_ptr insertions. All leaks were detected by LeakSanitizer. llvm-svn: 213851
* Revert "unique_ptr-ify ownership of ASTConsumers"David Blaikie2014-07-171-2/+1
| | | | | | | | | This reverts commit r213308. Reverting to have some on-list discussion/confirmation about the ongoing direction of smart pointer usage in the LLVM project. llvm-svn: 213324
* unique_ptr-ify ownership of ASTConsumersDavid Blaikie2014-07-171-1/+2
| | | | llvm-svn: 213308
* Track clang r213171Alp Toker2014-07-161-1/+1
| | | | | | The clang rewriter is now a core facility. llvm-svn: 213172
* Update for llvm api change.Rafael Espindola2014-07-061-8/+12
| | | | llvm-svn: 212406
* Track IntrusiveRefCntPtr::get() changes from LLVM r212366Alp Toker2014-07-051-1/+1
| | | | llvm-svn: 212367
* clang-modernize: Instantiate llvm::Registry<TransformFactory>.NAKAMURA Takumi2014-07-032-0/+4
| | | | llvm-svn: 212270
* Prefix error_code with std.Rafael Espindola2014-06-122-23/+23
| | | | llvm-svn: 210840
* Quick build fix.Rafael Espindola2014-06-122-0/+2
| | | | llvm-svn: 210838
* include system_error directly.Rafael Espindola2014-06-122-2/+2
| | | | llvm-svn: 210797
OpenPOWER on IntegriCloud