Matthias Gehre
40fe18c79e
[clang-tidy] Add new check cppcoreguidelines-pro-bounds-array-to-pointer-decay
...
Summary:
This check flags all array to pointer decays.
Pointers should not be used as arrays. array_view is a bounds-checked,
safe alternative to using pointers to access arrays.
This rule is part of the "Bounds safety" profile of the C++ Core
Guidelines, see
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-bounds3-no-array-to-pointer-decay
Reviewers: alexfh, sbenza, bkramer, aaron.ballman
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D13640
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251358 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-26 21:56:02 +00:00
Matthias Gehre
eaac82467f
clang-tidy/add_new_check.py: Adapt to use %check_clang_tidy in tests
...
Summary: Adapt clang-tidy/add_new_check.py according to commit r251010 "Add %check_clang_tidy and %clang_tidy_diff"
Reviewers: alexfh, sbenza, bkramer, aaron.ballman
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D14049
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251355 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-26 21:48:08 +00:00
Benjamin Kramer
557e222e43
Drop dead return after llvm_unreachable. NFC.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251279 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-26 09:57:00 +00:00
Benjamin Kramer
90819fe766
assert(false) -> llvm_unreachable.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251265 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-25 22:03:00 +00:00
Daniel Jasper
026e9e8c34
[clang-tidy] Add return value for non-assert builds.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251262 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-25 21:44:55 +00:00
Piotr Dziwinski
98e9c93c33
[clang-tidy] Add check readability-implicit-bool-cast
...
Summary:
This is another check that I ported to clang-tidy from colobot-lint tool.
As previously discussed on cfe-dev mailing list, this is one of those
checks that I think is general and useful enough for contribution to
clang-tidy.
This patch contains implementation of check taken from colobot-lint, but
it is extended a great deal, including FixIt hints for automated
refactoring, exhaustive testcases, and user documentation.
Reviewers: sbenza, aaron.ballman, alexfh
Subscribers: Eugene.Zelenko
Differential Revision: http://reviews.llvm.org/D13635
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251235 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-25 15:31:25 +00:00
Piotr Dziwinski
e8386d64bd
Test commit
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251204 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-24 20:11:47 +00:00
Manuel Klimek
debf80be84
Make isExpensiveToCopy() tri-state.
...
This allows returning "don't know" for dependent types.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251103 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-23 10:00:50 +00:00
Angel Garcia Gomez
bccbb3ead7
Don't use "auto" on loops over fundamental types in modernize-loop-convert.
...
Summary: using "auto" on a loop that iterates over ints is kind of an overkill. Use the real type name instead.
Reviewers: klimek
Subscribers: alexfh, cfe-commits
Differential Revision: http://reviews.llvm.org/D13982
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251015 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-22 13:23:46 +00:00
Angel Garcia Gomez
eb2ff2705a
Correctly print the type in modernize-make-unique.
...
Summary: Take into account the current LangOptions the check has to add back the template argument.
Reviewers: klimek
Subscribers: alexfh, cfe-commits
Differential Revision: http://reviews.llvm.org/D13983
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251013 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-22 13:20:49 +00:00
Angel Garcia Gomez
10c3416e16
Make string constants in the modernize module static.
...
Summary: Add static to global variables, if they are not in an anonymous namespace.
Reviewers: klimek
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D13975
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251005 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-22 09:48:23 +00:00
Matthias Gehre
d8975af281
[clang-tidy] add check cppcoreguidelines-pro-type-vararg
...
Summary:
This check flags all calls to c-style vararg functions and all use
of va_list, va_start and va_arg.
Passing to varargs assumes the correct type will be read. This is
fragile because it cannot generally be enforced to be safe in the
language and so relies on programmer discipline to get it right.
This rule is part of the "Type safety" profile of the C++ Core
Guidelines, see
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-type8-avoid-reading-from-varargs-or-passing-vararg-arguments-prefer-variadic-template-parameters-instead
This commits also reverts
"[clang-tidy] add cert's VariadicFunctionDefCheck as cppcoreguidelines-pro-type-vararg-def"
because that check makes the SFINAE use of vararg functions impossible.
Reviewers: alexfh, sbenza, bkramer, aaron.ballman
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D13787
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250939 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-21 20:09:02 +00:00
Angel Garcia Gomez
550e301864
Add modernize-use-default check to clang-tidy.
...
Summary:
Add a check that replaces empty bodies of special member functions with '= default;'.
For now, it is only implemented for the default constructor and the destructor, which are the easier cases.
The copy-constructor and the copy-assignment operator cases will be implemented later.
I applied this check to the llvm code base and found 627 warnings (385 in llvm, 9 in compiler-rt, 220 in clang and 13 in clang-tools-extra).
Applying the fixes didn't break any build or test, it only caused a -Wpedantic warning in lib/Target/Mips/MipsOptionRecord.h:33 becaused it replaced
virtual ~MipsOptionRecord(){}; to virtual ~MipsOptionRecord()= default;;
Reviewers: klimek
Subscribers: george.burgess.iv, Eugene.Zelenko, alexfh, cfe-commits
Differential Revision: http://reviews.llvm.org/D13871
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250897 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-21 12:58:15 +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
Samuel Benzaquen
ed971c0759
Added check uniqueptr-delete-release to replace "delete x.release()" with "x = nullptr"
...
Reviewers: alexfh
Differential Revision: http://reviews.llvm.org/D13179
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250742 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-19 21:49:51 +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
Matthias Gehre
776233f9a3
[clang-tidy] add check cppcoreguidelines-pro-type-union-access
...
Summary:
This check flags all access to members of unions. Passing unions as a
whole is not flagged.
Reading from a union member assumes that member was the last one
written, and writing to a union member assumes another member with a
nontrivial destructor had its destructor called. This is fragile because
it cannot generally be enforced to be safe in the language and so relies
on programmer discipline to get it right.
This rule is part of the "Type safety" profile of the C++ Core
Guidelines, see
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-type7-avoid-accessing-members-of-raw-unions-prefer-variant-instead
Reviewers: alexfh, sbenza, bkramer, aaron.ballman
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D13784
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250537 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-16 18:46:30 +00:00
Angel Garcia Gomez
40928b2725
Replacements in different files do not overlap.
...
Summary: Prevent clang-tidy from discarding fixes that are in different files but happen to have the same file offset.
Reviewers: klimek, bkramer
Subscribers: bkramer, alexfh, cfe-commits
Differential Revision: http://reviews.llvm.org/D13810
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250523 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-16 16:15:27 +00:00
Benjamin Kramer
5c475a87e9
Empty undefined static variable -> local variable.
...
Resolves a -Wundefined-internal warning from clang.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250510 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-16 12:11:15 +00:00
Angel Garcia Gomez
2671425579
Fix overlapping replacements in clang-tidy.
...
Summary: Prevent clang-tidy from applying fixes to errors that overlap with other errors' fixes, with one exception: if one fix is completely contained inside another one, then we can apply the big one.
Reviewers: bkramer, klimek
Subscribers: djasper, cfe-commits, alexfh
Differential Revision: http://reviews.llvm.org/D13516
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250509 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-16 11:43:49 +00:00
Matthias Gehre
722d8490b9
[clang-tidy] add cert's VariadicFunctionDefCheck as cppcoreguidelines-pro-type-vararg-def
...
Summary:
Import the cert check for variadic function definitions into
cppcoreguidelines module to check part of
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-type8-avoid-reading-from-varargs-or-passing-vararg-arguments-prefer-variadic-template-parameters-instead
Reviewers: alexfh, sbenza, bkramer, aaron.ballman
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D13785
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250468 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-15 22:40:45 +00:00
Angel Garcia Gomez
c3f968272f
Prevent modernize-use-auto from emitting a warning when 'auto' was already being used.
...
Summary: This fixes https://llvm.org/bugs/show_bug.cgi?id=25082 .
Reviewers: bkramer, klimek
Subscribers: cfe-commits, alexfh
Differential Revision: http://reviews.llvm.org/D13504
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250284 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-14 09:29:55 +00:00
Angel Garcia Gomez
5b943fc586
Support every kind of initialization.
...
Summary: modernize-make-unique now correctly supports the different kinds of list initialization.
Reviewers: klimek
Subscribers: cfe-commits, alexfh
Differential Revision: http://reviews.llvm.org/D13590
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250283 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-14 09:22:32 +00:00
Aaron Ballman
2a1e897cb3
Exposing an existing checker under the name cert-err61-cpp, as it corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/ERR61-CPP.+Catch+exceptions+by+lvalue+reference
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250221 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-13 20:42:41 +00:00
Aaron Ballman
3d9368067c
Appeasing build bots by linking in the proper libraries.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250166 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-13 15:42:06 +00:00
Aaron Ballman
f535df4313
Expose the clang-tidy misc-assign-operator-signature checker as cppcoreguidelines-c-copy-assignment-signature.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250165 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-13 15:24:33 +00:00
Matthias Gehre
3105766d1d
[clang-tidy] new check cppcoreguidelines-pro-bounds-pointer-arithmetic
...
Summary:
This check flags all usage of pointer arithmetic, because it could lead
to an
invalid pointer.
Subtraction of two pointers is not flagged by this check.
Pointers should only refer to single objects, and pointer arithmetic is
fragile and easy to get wrong. array_view is a bounds-checked, safe type
for accessing arrays of data.
This rule is part of the "Bounds safety" profile of the C++ Core
Guidelines, see
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-bounds1-dont-use-pointer-arithmetic-use-array_view-instead
Depends on D13313
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D13311
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250116 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-12 21:53:19 +00:00
Matthias Gehre
d07f76b209
[clang-tidy] add check cppcoreguidelines-pro-type-static-cast-downcast
...
Summary:
This check flags all usages of static_cast, where a base class is casted
to a derived class.
In those cases, a fixit is provided to convert the cast to a
dynamic_cast.
Use of these casts can violate type safety and cause the program to
access a variable that is actually of type X to be accessed as if it
were of an unrelated type Z.
This rule is part of the "Type safety" profile of the C++ Core
Guidelines, see
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-type2-dont-use-static_cast-downcasts-use-dynamic_cast-instead
Depends on D13313
Reviewers: alexfh, sbenza, bkramer, aaron.ballman
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D13368
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250098 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-12 20:46:53 +00:00
Matthias Gehre
31bffa336e
Test commit
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250002 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-11 22:55:29 +00:00
Piotr Zegar
2f99922fc7
[clang-tidy] Python script for easy check rename
...
Summary:
Script can rename check that is in same module - I found it useful.
Diff generated in root directory of clang-tools-extra project.
Reviewers: sbenza, aaron.ballman, alexfh
Subscribers: mgehre, xazax.hun, cfe-commits
Differential Revision: http://reviews.llvm.org/D13440
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249970 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-11 07:58:34 +00:00
Aaron Ballman
7819030d5a
Add a new checker that tests whether a throw expression throws by value, and whether a catch statement catches by reference.
...
Patch by Tobias Langner!
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249899 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-09 20:42:44 +00:00
Aaron Ballman
52781d8060
Adding a checker (cert-err52-cpp) that detects use of setjmp or longjmp in C++ code. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=1834
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249727 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-08 19:54:43 +00:00
Aaron Ballman
e815e70c6a
Fixing links and reformatting code; NFC.
...
Patch by Marek Kurdej!
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249612 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-07 20:33:36 +00:00
Aaron Ballman
08ae890c8b
Loosening the restriction on variadic function definitions so that extern "C" function definitions are permissible.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249555 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-07 15:14:10 +00:00
Aaron Ballman
fa0bfc95a3
Add checker for the C++ Core Guidelines: cppcoreguidelines-pro-type-const-cast.
...
Patch by Matthias Gehre!
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249540 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-07 12:24:57 +00:00
Aaron Ballman
3d6a247886
Change the write modes to "binary" so that line endings do not get munged on Windows. Otherwise, when this script is run, all files created on Windows have CRLF instead of LF line endings.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249444 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-06 19:11:12 +00:00
Aaron Ballman
18de751e20
Attempting to appease the CMake build bots after r249429.
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249430 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-06 16:32:50 +00:00
Aaron Ballman
5c40d3f5af
Improved the misc-move-constructor-init check to identify arguments that are passed by value but copy assigned to class data members when the non-deleted move constructor is a better fit.
...
Patch by Felix Berger!
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249429 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-06 16:27:03 +00:00
Aaron Ballman
d2ec07d917
Add a new module for the C++ Core Guidelines, and the first checker for those guidelines: cppcoreguidelines-pro-type-reinterpret-cast.
...
Patch by Matthias Gehre!
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249399 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-06 13:31:00 +00:00
Aaron Ballman
fcf78a42ad
Adding a checker (cert-dcl50-cpp) that detects the definition of a C-style variadic function in C++ code. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/DCL50-CPP.+Do+not+define+a+C-style+variadic+function
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249343 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-05 20:08:59 +00:00
Angel Garcia Gomez
bc522ba6ce
Use better mocks in modernize-make-unique, and fix matcher.
...
Summary: Add the second template argument to the unique_ptr mock, and update the matcher so that it only matches against cases where the second argument is the default.
Reviewers: klimek
Subscribers: alexfh, cfe-commits
Differential Revision: http://reviews.llvm.org/D13433
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249305 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-05 12:20:17 +00:00
Angel Garcia Gomez
c820163ebb
Document a bug in loop-convert and fix one of its subcases.
...
Summary: Now that we prioritize copying trivial types over using const-references where possible, I found some cases where, after the transformation, the loop was using the address of the local copy instead of the original object.
Reviewers: klimek
Subscribers: alexfh, cfe-commits
Differential Revision: http://reviews.llvm.org/D13431
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249300 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-05 11:15:39 +00:00
Angel Garcia Gomez
e294083dce
Fix bug in modernize-use-nullptr.
...
Summary:
https://llvm.org/bugs/show_bug.cgi?id=24960
modernize-use-nullptr would hit an assertion in some cases involving macros and initializer lists, due to finding a node with more than one parent (the two forms of the initializer list).
However, this doesn't mean that the replacement is incorrect, so instead of just rejecting this case I tried to find a way to make it work. Looking at the semantic form of the InitListExpr made sense to me (looking at both forms results in false negatives) but I am not sure of the things that we can miss by skipping the syntactic form.
Reviewers: klimek
Subscribers: cfe-commits, alexfh
Differential Revision: http://reviews.llvm.org/D13246
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249291 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-05 08:40:13 +00:00
Craig Topper
237f33a3cf
SourceRanges are small and trivially copyable, don't them by reference. NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249258 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-04 04:53:37 +00:00
Yaron Keren
0004769e2a
Replace double negation of !FileID.isInvalid() with FileID.isValid().
...
+couple more of double-negated !SourceLocation.isInvalid() unfixed in r249228.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249235 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-03 10:46:20 +00:00
Aaron Ballman
65af29576f
Taking a stab at fixing failing build bots that use make. Unfortunately, the build logs do not point to much useful information for tracking this down, such as:
...
http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/31782/steps/compile/logs/stdio
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249136 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-02 14:28:44 +00:00
Aaron Ballman
c7847605a6
Hopefully rectifying a build bot issue with:
...
http://bb.pgr.jp/builders/i686-mingw32-RA-on-linux/builds/2833/steps/build_llvmclang/logs/stdio
Also, drive-by comment fix in a makefile.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249133 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-02 14:01:55 +00:00
Aaron Ballman
40646627cf
Adding a new clang-tidy module to house CERT-specific checkers, and map existing checkers to CERT secure coding rules and recommendations for both C ( https://www.securecoding.cert.org/confluence/display/c/SEI+CERT+C+Coding+Standard ) and C++ ( https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=637 ).
...
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249130 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-02 13:27:19 +00:00
Angel Garcia Gomez
2c5fed3800
Handle trailing underscores on modernize-loop-convert variable namer.
...
Summary: https://llvm.org/bugs/show_bug.cgi?id=24961 .
Reviewers: klimek
Subscribers: cfe-commits, alexfh
Differential Revision: http://reviews.llvm.org/D13381
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@249127 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-02 13:20:11 +00:00