Eugene Zelenko
6c2ee4e5cb
Fix Clang-tidy modernize-deprecated-headers warnings; other minor fixes.
...
Differential revision: http://reviews.llvm.org/D18231
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@263726 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-17 17:02:25 +00:00
Chris Bieneman
5640675ac9
Remove autoconf support
...
Summary:
This patch is provided in preparation for removing autoconf on 1/26. The proposal to remove autoconf on 1/26 was discussed on the llvm-dev thread here: http://lists.llvm.org/pipermail/llvm-dev/2016-January/093875.html
"Now I am become Death, the destroyer of worlds."
-J. Robert Oppenheimer
Reviewers: chandlerc, grosbach, bob.wilson, echristo
Subscribers: cfe-commits, klimek
Differential Revision: http://reviews.llvm.org/D16475
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@258864 91177308-0d34-0410-b5e6-96231b3b80d8
2016-01-26 21:31:36 +00:00
David Blaikie
1ec3c0fcf8
Revert "Apply modernize-use-default to clang-tools-extra."
...
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.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250862 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-20 21:45:52 +00:00
Angel Garcia Gomez
dec2fa63a9
Apply modernize-use-default to clang-tools-extra.
...
Summary: Replace empty bodies of default constructors and destructors with '= default'.
Reviewers: klimek
Subscribers: alexfh, cfe-commits
Differential Revision: http://reviews.llvm.org/D13889
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250824 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-20 12:56:27 +00:00
Craig Topper
835316e4fe
Make a bunch of static arrays const.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250641 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-18 05:14:41 +00:00
Yaron Keren
15eba5ef95
Revert r241330. It compiled with Visual C++ 2013 and gcc 4.9.1 (mingw) but now fails the bots.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@241335 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-03 09:30:33 +00:00
Yaron Keren
002088f626
Replace some const std::string & with llvm::StringRef or std::string
...
and std::move to avoid implicit std::string construction.
Patch by Eugene Kosov.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@241330 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-03 09:16:20 +00:00
Rafael Espindola
2aa28eef40
Update for clang API change.
...
Patch by Косов Евгений.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@238775 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-01 20:00:20 +00:00
Nikola Smiljanic
1562645508
Fix misleading parameter name for PPCallbacks::FileSkipped.
...
Patch thanks to Vladimir Voskresensky.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@237116 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-12 11:48:21 +00:00
Richard Smith
4b29f42edd
Update to match clang r236404.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@236405 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-04 03:15:55 +00:00
Alexander Kornienko
1daf9da86e
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
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@234681 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-11 07:59:33 +00:00
Benjamin Kramer
27021ed13a
Make helpers static. clang-tools edition.
...
Also purge dead code found by it. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@232948 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-23 12:49:15 +00:00
Adrian Prantl
db41e64a61
Revert "Adapt clang-tools-extra to clang module format changes."
...
This reverts commit 230424.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@230456 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-25 02:46:37 +00:00
Adrian Prantl
5f18daafdc
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.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@230424 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-25 01:32:04 +00:00
Adrian Prantl
6e2f2cbd19
Revert "Adapt Makefile dependencies for the clang module format change in r230089."
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@230104 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-21 00:29:43 +00:00
Adrian Prantl
3602256418
Adapt Makefile dependencies for the clang module format change in r230089.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@230090 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20 23:35:07 +00:00
Craig Topper
bcfcec8864
Unique_ptrify PPCallbacks ownership. Goes with clang r217474.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@217475 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-10 05:07:57 +00:00
Rafael Espindola
5fdb307bae
Update for LLVM api change
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@216396 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-25 18:17:00 +00:00
David Blaikie
e6b8648097
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.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@215324 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-10 19:56:59 +00:00
Benjamin Kramer
1722174068
Plug memory leaks.
...
Most of the changes are mechanic std::unique_ptr insertions. All leaks were
detected by LeakSanitizer.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@213851 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-24 10:23:33 +00:00
David Blaikie
3d1de3f26a
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.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@213324 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-17 22:33:56 +00:00
David Blaikie
78e938385a
unique_ptr-ify ownership of ASTConsumers
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@213308 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-17 20:40:47 +00:00
Alp Toker
620d97fc12
Track clang changes from r210758
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210759 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-12 10:16:11 +00:00
Alp Toker
5c11c910ff
Prospective build fix following clang r210518
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210521 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-10 09:58:45 +00:00
Craig Topper
0913826cdd
[C++11] Use 'nullptr'.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210447 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-09 02:03:06 +00:00
Alp Toker
bef6f66cda
Remove inclusions of LLVM's private config.h
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210146 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-04 03:34:26 +00:00
Ahmed Charles
c1d88b9502
[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.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@203382 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-09 09:24:40 +00:00
Craig Topper
2bbd7e03d1
[C++11] Replace LLVM_OVERRIDE with 'override'
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202632 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-02 10:20:11 +00:00
Tobias Grosser
a0cd5eefbc
Add new 'remark' diagnostic type
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202477 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-28 09:42:12 +00:00
Rafael Espindola
90814a8028
Update for llvm api change.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202055 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-24 18:21:04 +00:00
Rafael Espindola
b541130bda
Update for llvm api change.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202045 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-24 15:41:44 +00:00
NAKAMURA Takumi
e50d2fe35e
[CMake] clang-tools-extra: Update dependencies.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@196860 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-10 01:41:10 +00:00
NAKAMURA Takumi
65b22001ec
[CMake] clang-tools-extra may not depend on LLVM CodeGen.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@196805 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-09 19:27:57 +00:00
John Thompson
f3291f7aeb
Changed ConditionValue argument to PPCallbacks If and Elif callbacks to be a 3-state enum.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@196648 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-07 08:41:15 +00:00
John Thompson
dd426dfa34
[extra] pp-trace - Fix for PragmaWarning output, adding tests for the pragma callbacks.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@194636 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-14 00:18:19 +00:00
John Thompson
634e75882f
Fixed moduleImport and ident callbacks. Fixed modules test. Added ident callback test. A better test for moduleExport is coming.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@194447 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-12 03:12:18 +00:00
John Thompson
af0c6677e5
[extra] pp-trace - Fixed problems found while writing docs.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@194079 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-05 14:16:11 +00:00
Alexey Samsonov
2b48d291cf
Delete unused private field to fix -Werror build
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@193763 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-31 17:03:07 +00:00
John Thompson
87dae20b5b
Fix comment. pp-trace can only handle source file at a time.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@193746 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-31 12:53:42 +00:00
John Thompson
37f6cf49ea
pp-trace - preprocessor tacing and PPCallbacks testing tool
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@193743 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-31 12:23:32 +00:00