David Majnemer
d264827229
Update for clang r230512
...
llvm-svn: 230513
2015-02-25 17:36:49 +00:00
Alexander Kornienko
4c0e4a12bd
[clang-tidy] Use the new ArrayRef<FixItHint> inserter.
...
llvm-svn: 230497
2015-02-25 14:42:02 +00:00
Alexander Kornienko
6d02cc8d65
[clang-tidy] Correct spelling error in test file name. NFC.
...
Patch by Richard Thomson!
http://reviews.llvm.org/D7603
llvm-svn: 230491
2015-02-25 13:17:14 +00:00
Alexander Kornienko
8cef0752f5
[clang-tidy] Correct confusion between overwrite and override. NFC.
...
Patch by Richard Thomson!
http://reviews.llvm.org/D7604
llvm-svn: 230490
2015-02-25 13:05:33 +00:00
Gabor Horvath
ca0bbff3a7
[clang-tidy] Fixed a false positive case in misc-inaccurate-erase checker.
...
llvm-svn: 230483
2015-02-25 12:17:03 +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
2be16291ff
Revert "Add a missing target requirement."
...
This reverts commit 230430.
llvm-svn: 230455
2015-02-25 02:46:29 +00:00
Adrian Prantl
beb52cfea0
Add a missing target requirement.
...
llvm-svn: 230430
2015-02-25 01:52:10 +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
Alexander Kornienko
01c2da1e09
Fixed script name in the clang-tidy documentation.
...
llvm-svn: 230198
2015-02-23 01:12:41 +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
John Thompson
a5666cadbb
Deleted module-map-checker, as it's been folded into modularize.
...
llvm-svn: 230014
2015-02-20 14:28:10 +00:00
Nick Lewycky
d07cfbdaa7
Remove carriage returns.
...
llvm-svn: 229975
2015-02-20 07:05:56 +00:00
John Thompson
8eb8d93672
Added module map coverage support, extracted from module-map-checker.
...
llvm-svn: 229869
2015-02-19 16:47:27 +00:00
John Thompson
3c9fb52218
Pruned some unneeded code and comments.
...
llvm-svn: 229855
2015-02-19 14:31:48 +00:00
John Thompson
41ede8e507
Fixed missing checkins.
...
llvm-svn: 229699
2015-02-18 17:08:00 +00:00
John Thompson
9cb7964641
Added support for extracting headers from module maps as a source for the header list.
...
llvm-svn: 229692
2015-02-18 16:14:32 +00:00
John Thompson
b87fd7db7c
Temporary hack to avoid false errors. Real fix comming.
...
llvm-svn: 229690
2015-02-18 16:12:26 +00:00
John Thompson
eaa4c73d62
Updated file comment on modularize usage, as it was out-of-date.
...
llvm-svn: 229677
2015-02-18 15:11:12 +00:00
Gabor Horvath
21b76badeb
[clang-tidy] Fixed two wrong fix-it cases in misc-inefficient-algorithm checker.
...
llvm-svn: 229552
2015-02-17 21:45:38 +00:00
John Thompson
3dcb3934c6
Add canonical path conversion function and use it so paths are consistent.
...
llvm-svn: 229540
2015-02-17 20:43:47 +00:00
John Thompson
9ea81b0041
Fix broken logic for include in block check.
...
llvm-svn: 229187
2015-02-13 23:32:08 +00:00
John Thompson
d845baecb4
Moved header list loading to new class. This is staging for adding module map loading and checking support.
...
llvm-svn: 229108
2015-02-13 14:29:22 +00:00
Chandler Carruth
f766278204
Re-sort includes using the LLVM utils/sort_includes.py script.
...
llvm-svn: 229087
2015-02-13 09:07:58 +00:00
NAKAMURA Takumi
24fbdf124b
Modularize.cpp: Simplify. Vector may be aware of ranged-for.
...
llvm-svn: 228993
2015-02-13 00:28:32 +00:00
NAKAMURA Takumi
c8930de79e
Modularize.cpp: Prune CRLFs.
...
llvm-svn: 228992
2015-02-13 00:28:26 +00:00
NAKAMURA Takumi
43361ae42d
clang-tools-extra/test/modularize/NoProblemsList.modularize: Unbreak test.
...
Don't expect the list were on the current directory.
llvm-svn: 228991
2015-02-13 00:28:21 +00:00
Gabor Horvath
0329519904
[clang-tidy] Fixed a false positive case in misc-inefficient-algorithm checker.
...
llvm-svn: 228945
2015-02-12 18:19:34 +00:00
John Thompson
97eac4089a
Fix broken test in separate build tree.
...
llvm-svn: 228941
2015-02-12 17:52:28 +00:00
John Thompson
469bbc002a
Added support for multiple header list files, as a precursor for when we need to load multiple module maps.
...
llvm-svn: 228935
2015-02-12 16:22:09 +00:00
John Thompson
f1828ef3c6
Fixed incorrect header inclusion tracking resulting in false error reports.
...
llvm-svn: 228929
2015-02-12 15:26:17 +00:00
Samuel Benzaquen
59c8aa92b8
Add clang-tidy check google-global-names-in-headers.
...
Summary:
google-global-names-in-headers flags global namespace pollution in header files.
Right now it only triggers on using declarations and directives.
Reviewers: alexfh
Subscribers: curdeius
Differential Revision: http://reviews.llvm.org/D7563
llvm-svn: 228875
2015-02-11 21:21:05 +00:00
John Thompson
ecd3b04cd7
Added -block-check-header-list-only option. This is a work-around for private includes that purposefully get included inside blocks.
...
llvm-svn: 228846
2015-02-11 16:58:36 +00:00
John Thompson
9724431c77
Centralize canonical path conversion.
...
llvm-svn: 228845
2015-02-11 16:45:50 +00:00
John Thompson
655387887d
Fixed module-map-checker to recurse umbrella dirs when collecting headers.
...
llvm-svn: 228695
2015-02-10 14:58:07 +00:00
John Thompson
5d9862f071
Renamed module.map to module.modulemap (modularize).
...
llvm-svn: 228693
2015-02-10 14:45:30 +00:00
John Thompson
e0aa5fea15
Renamed module.map to module.modulemap.
...
llvm-svn: 228692
2015-02-10 14:29:16 +00:00
John Thompson
ae7f5518c3
The -I option needs a space, apparently, from the actual implementation.
...
llvm-svn: 228689
2015-02-10 13:51:17 +00:00
Gabor Horvath
d4637fb433
[clang-tidy] Checker for inaccurate use of erase() method.
...
Algorithms like remove() does not actually remove any element from the
container but returns an iterator to the first redundant element at the end
of the container. These redundant elements must be removed using the
erase() method. This check warns when not all of the elements will be
removed due to using an inappropriate overload.
Reviewer: alexfh
Differential Revision: http://reviews.llvm.org/D7496
llvm-svn: 228679
2015-02-10 09:14:26 +00:00
Samuel Benzaquen
b5cbe0100f
Verify assign operator signatures.
...
Summary: Warn when the return type of assign operators is not Class&.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D6667
llvm-svn: 228583
2015-02-09 17:50:40 +00:00
Gabor Horvath
3880bee0ff
[clang-tidy] Checker for inefficient use of algorithms on associative containers
...
Summary:
Associative containers implements some of the algorithms as methods which
should be preferred to the algorithms in the algorithm header. The methods
can take advantage of the order of the elements.
Reviewers: alexfh
Reviewed By: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D7246
llvm-svn: 228505
2015-02-07 19:54:19 +00:00
Alexander Kornienko
b6e1fde719
[clang-tidy] Don't ignore default set of checks when a config file is found.
...
Summary:
This makes clang-tidy merge the default set of checks with the one
provided in the configuration file instead of just using the checks from the
config file. This adds a way to modify the default set of checks while the
previous behavior required to always define the set of checks completely.
Reviewers: djasper
Reviewed By: djasper
Subscribers: curdeius, cfe-commits
Differential Revision: http://reviews.llvm.org/D7434
llvm-svn: 228298
2015-02-05 14:50:17 +00:00
Alexander Kornienko
dd2dad0d24
[clang-tidy] Detect dependent initializer_lists in google-explicit-constructor.
...
Summary:
Detect constructors taking a single std::initializer_list even when it
is instantiation-dependent.
Reviewers: djasper
Reviewed By: djasper
Subscribers: curdeius, cfe-commits
Differential Revision: http://reviews.llvm.org/D7431
llvm-svn: 228289
2015-02-05 12:49:07 +00:00
Alexander Kornienko
78070fbae5
[clang-tidy] Fix some false positives in google-readability-casting
...
Summary:
Ignore C-style casts in extern "C" {} sections. Be more careful when
detecting redundant casts between typedefs to the same type - emit a more
specific warning and don't automatically fix them.
Reviewers: klimek
Reviewed By: klimek
Subscribers: curdeius, cfe-commits
Differential Revision: http://reviews.llvm.org/D7247
llvm-svn: 227444
2015-01-29 15:17:13 +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