Benjamin Kramer
3204a105e3
[clang-modernize] Don't rely on iterator auto-dereferencing.
...
llvm-svn: 242607
2015-07-18 14:35:41 +00:00
Yaron Keren
40178c352e
Revert r241330. It compiled with Visual C++ 2013 and gcc 4.9.1 (mingw) but now fails the bots.
...
llvm-svn: 241335
2015-07-03 09:30:33 +00:00
Yaron Keren
452670165c
Replace some const std::string & with llvm::StringRef or std::string
...
and std::move to avoid implicit std::string construction.
Patch by Eugene Kosov.
llvm-svn: 241330
2015-07-03 09:16:20 +00:00
Richard Smith
33de8566f0
Update to match clang r236404.
...
llvm-svn: 236405
2015-05-04 03:15:55 +00:00
Alexander Kornienko
87638f6345
Use 'override/final' instead of 'virtual' for overridden methods
...
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
2015-04-11 07:59:33 +00:00
David Blaikie
67240892a2
Remove redundant virtual from member functions marked 'override'.
...
llvm-svn: 234416
2015-04-08 17:00:56 +00:00
Benjamin Kramer
e71037123b
Make helpers static. clang-tools edition.
...
Also purge dead code found by it. NFC.
llvm-svn: 232948
2015-03-23 12:49:15 +00:00
David Majnemer
d264827229
Update for clang r230512
...
llvm-svn: 230513
2015-02-25 17:36:49 +00:00
Adrian Prantl
b97f5c1eb2
Revert "Adapt clang-tools-extra to clang module format changes."
...
This reverts commit 230424.
llvm-svn: 230456
2015-02-25 02:46:37 +00:00
Adrian Prantl
e95edbf5a9
Adapt clang-tools-extra to clang module format changes.
...
- add clangCodeGen.a to the tools that need it
- tweak pp-trace command line handling to not conflict with clang's.
llvm-svn: 230424
2015-02-25 01:32:04 +00:00
Adrian Prantl
77553c72dc
Revert "Add clangCodeGen.a to the tools that need it after the clang module"
...
llvm-svn: 230310
2015-02-24 05:14:37 +00:00
Adrian Prantl
d0a19981c4
Fix typo s/bitcodewriter/bitwriter
...
llvm-svn: 230307
2015-02-24 04:49:13 +00:00
Adrian Prantl
54e9d64533
Add clangCodeGen.a to the tools that need it after the clang module
...
format change.
llvm-svn: 230306
2015-02-24 04:26:29 +00:00
Adrian Prantl
a22fd38174
Revert "Adapt Makefile dependencies for the clang module format change in r230089."
...
llvm-svn: 230104
2015-02-21 00:29:43 +00:00
Adrian Prantl
6897e3e456
Adapt Makefile dependencies for the clang module format change in r230089.
...
llvm-svn: 230090
2015-02-20 23:35:07 +00:00
Chris Bieneman
fc4fd529c8
NFC. Migrating clang-tools-extra to the cl::HideUnrelatedOptions API.
...
llvm-svn: 227388
2015-01-28 22:45:26 +00:00
Pete Cooper
1d2f63a4ef
Updated tools to match r227345 which changed the getRegisteredOptions method
...
llvm-svn: 227372
2015-01-28 21:34:05 +00:00
Daniel Jasper
0c7e93c128
Make LoopConvert work with containers that are used like arrays.
...
llvm-svn: 225629
2015-01-12 13:17:56 +00:00
David Blaikie
0ee6800a31
Remove some redundant virtual on overridden functions
...
llvm-svn: 222027
2014-11-14 19:27:22 +00:00
Rafael Espindola
ecc2ebe846
Use findProgramByName. NFC.
...
llvm-svn: 221260
2014-11-04 12:48:22 +00:00
NAKAMURA Takumi
dc872ed908
[CMake] Add dependencies on clangToolingCore.
...
llvm-svn: 220890
2014-10-30 00:44:01 +00:00
Daniel Jasper
c1de000e22
Fix Makefiles after r220867.
...
llvm-svn: 220868
2014-10-29 18:55:41 +00:00
Benjamin Kramer
d12555795e
[clang-modernize] Update for API change.
...
NFC.
llvm-svn: 219063
2014-10-04 17:19:03 +00:00
Craig Topper
e95cd8d5b8
Add missing 'override' keyword.
...
llvm-svn: 218961
2014-10-03 06:34:41 +00:00
Craig Topper
775862a277
Unique_ptrify PPCallbacks ownership. Goes with clang r217474.
...
llvm-svn: 217475
2014-09-10 05:07:57 +00:00
Rafael Espindola
b14bd53e6d
Update for LLVM api change
...
llvm-svn: 216396
2014-08-25 18:17:00 +00:00
Rafael Espindola
ee8155d01a
Update for API change in clang.
...
llvm-svn: 215452
2014-08-12 16:01:34 +00:00
David Blaikie
dffd853716
Update for API change in r215391
...
llvm-svn: 215392
2014-08-11 22:11:02 +00:00
David Blaikie
680c4c898c
Recommit 213308: unique_ptr-ify ownership of ASTConsumers (reverted in r213324)
...
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
2014-08-10 19:56:59 +00:00
David Blaikie
590e5ff473
clang-modernize: Transform::createActionFactory return ownership by unique_ptr instead of raw pointer.
...
Follow up to r213851 to simplify code and reduce the chance of future
leaks.
llvm-svn: 215214
2014-08-08 16:06:07 +00:00
Benjamin Kramer
6e9142474d
Plug memory leaks.
...
Most of the changes are mechanic std::unique_ptr insertions. All leaks were
detected by LeakSanitizer.
llvm-svn: 213851
2014-07-24 10:23:33 +00:00
David Blaikie
5bae2c87d5
Revert "unique_ptr-ify ownership of ASTConsumers"
...
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
2014-07-17 22:33:56 +00:00
David Blaikie
b9574aceae
unique_ptr-ify ownership of ASTConsumers
...
llvm-svn: 213308
2014-07-17 20:40:47 +00:00
Alp Toker
e208dfc2af
Track clang r213171
...
The clang rewriter is now a core facility.
llvm-svn: 213172
2014-07-16 16:50:17 +00:00
Rafael Espindola
43f0aa6caf
Update for llvm api change.
...
llvm-svn: 212406
2014-07-06 17:43:19 +00:00
Alp Toker
573583e2f2
Track IntrusiveRefCntPtr::get() changes from LLVM r212366
...
llvm-svn: 212367
2014-07-05 03:04:33 +00:00
NAKAMURA Takumi
3dd23a337c
clang-modernize: Instantiate llvm::Registry<TransformFactory>.
...
llvm-svn: 212270
2014-07-03 14:12:37 +00:00
Rafael Espindola
c7f0d23f56
Prefix error_code with std.
...
llvm-svn: 210840
2014-06-12 22:08:48 +00:00
Rafael Espindola
002840cf66
Quick build fix.
...
llvm-svn: 210838
2014-06-12 22:01:48 +00:00
Rafael Espindola
fd85bb3424
include system_error directly.
...
llvm-svn: 210797
2014-06-12 16:53:02 +00:00
Rafael Espindola
15c5784d3c
Replace llvm::error_code with std::error_code.
...
llvm-svn: 210776
2014-06-12 13:32:11 +00:00
Craig Topper
f61be9c971
[C++11] Use 'nullptr'.
...
llvm-svn: 210447
2014-06-09 02:03:06 +00:00
Rafael Espindola
228166a4ca
Use error_code() instead of error_code::succes()
...
There is no std::error_code::success, so this removes much of the noise
in transitioning to std::error_code.
llvm-svn: 209953
2014-05-31 02:00:59 +00:00
Benjamin Kramer
fb68e640d2
Try to fix the build. newFrontendActionFactory was changed to return a unique_ptr.
...
llvm-svn: 207407
2014-04-28 10:06:50 +00:00
Guillaume Papin
46113d0e22
clang-modernize: fix invalid assignment in findClangApplyReplacements()
...
Summary:
When clang-apply-replacements wasn't in the PATH or sitting next to
clang-modernize, findClangApplyReplacements() was finding the wrong path
(pointing to clang-modernize instead of nothing).
See the related PR at http://llvm.org/bugs/show_bug.cgi?id=18421
Reviewers: klimek
CC: silvas, cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D3217
llvm-svn: 205136
2014-03-30 10:50:25 +00:00
Ahmed Charles
6a2dc5c381
[C++11] Replace OwningPtr with std::unique_ptr.
...
This removes all references to OwningPtr, which should be fairly
undisruptive to out-of-tree projects since they are unlikely to use
clang-tools-extra as a library instead of a set of tools.
llvm-svn: 203382
2014-03-09 09:24:40 +00:00
Ahmed Charles
de61d0edad
[C++11] Add #include's for OwningPtr.
...
Allows removing #include's in LLVM while switching to std::unique_ptr.
llvm-svn: 202676
2014-03-03 07:00:47 +00:00
Benjamin Kramer
ffe110b304
[C++11] Replace llvm::tie with std::tie.
...
llvm-svn: 202646
2014-03-02 13:48:32 +00:00
Craig Topper
a3dbe84166
[C++11] Replace LLVM_OVERRIDE with 'override'
...
llvm-svn: 202632
2014-03-02 10:20:11 +00:00
NAKAMURA Takumi
9698686505
[CMake] Use LINK_LIBS instead of target_link_libraries().
...
llvm-svn: 202238
2014-02-26 06:41:29 +00:00