Filipe Cabecinhas
3be5b7fb43
Add -fexceptions for targets which need it
...
llvm-svn: 230994
2015-03-02 19:12:51 +00:00
Daniel Jasper
136f4b3439
clang-tidy: Update test as underlying problem apparently was fixed.
...
llvm-svn: 230982
2015-03-02 18:07:00 +00:00
Alexander Kornienko
0a6ce9f4e1
[clang-tidy] Refactor: Move llvm clang-tidy checks to namespace clang::tidy::llvm
...
clang-tidy checks are organized into modules. This refactoring moves the llvm
module checks to clang::tidy::llvm
http://reviews.llvm.org/D7995
Patch by Richard Thomson!
llvm-svn: 230952
2015-03-02 12:39:18 +00:00
Alexander Kornienko
2b312420aa
[clang-tidy] Refactor: Move misc clang-tidy checks to namespace clang::tidy::misc
...
clang-tidy checks are organized into modules. This refactoring moves the misc
module checks into the namespace clang::tidy::misc
http://reviews.llvm.org/D7996
Patch by Richard Thomson!
llvm-svn: 230950
2015-03-02 12:25:03 +00:00
Alexander Kornienko
37f80456ce
[clang-tidy] Organized clang-tidy unit tests. NFC.
...
* Moved unit tests for BracesAroundStatementsCheck to
ReadabilityModuleTest.cpp.
* Moved EXPECT_NO_CHANGES macro to ClangTidyTest.h to avoid defining it three
times.
llvm-svn: 230947
2015-03-02 11:55:04 +00:00
Alexander Kornienko
8384d491d8
[clang-tidy] Refactor: Move readability checks to namespace clang::tidy::readability
...
clang-tidy checks are organized into modules. This refactoring moves the
readability module checks into the namespace clang::tidy::readability
http://reviews.llvm.org/D7997
Patch by Richard Thomson!
llvm-svn: 230946
2015-03-02 11:43:00 +00:00
Alexander Kornienko
1ca3b83255
[clang-tidy] Assert related checkers
...
This patch contains two assert related checkers. These checkers are the part of
those that is being open sourced by Ericsson
(http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-December/040520.html ).
The checkers:
AssertSideEffect:
/// \brief Finds \c assert() with side effect.
///
/// The conition of \c assert() is evaluated only in debug builds so a condition
/// with side effect can cause different behaviour in debug / relesase builds.
StaticAssert:
/// \brief Replaces \c assert() with \c static_assert() if the condition is
/// evaluatable at compile time.
///
/// The condition of \c static_assert() is evaluated at compile time which is
/// safer and more efficient.
http://reviews.llvm.org/D7375
Patch by Szabolcs Sipos!
llvm-svn: 230943
2015-03-02 10:46:43 +00:00
Samuel Benzaquen
e39269e790
Add 'let' to the help message.
...
Summary: Add 'let' to the help message.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D7940
llvm-svn: 230768
2015-02-27 17:53:23 +00:00
Alexander Kornienko
dd836f238d
[clang-tidy] Various improvements in misc-use-override
...
* Better error message when more than one of 'virtual', 'override' and 'final'
is present ("X is/are redundant since the function is already declared Y").
* Convert the messages to the style used in Clang diagnostics: lower case
initial letter, no trailing period.
* Don't run the check for files compiled in pre-C++11 mode
(http://llvm.org/PR22638 ).
llvm-svn: 230765
2015-02-27 16:50:32 +00:00
John Thompson
b70ecf6eef
Fixed canonical path function.
...
llvm-svn: 230665
2015-02-26 19:31:10 +00:00
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