| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
| |
`misc-definitions-in-headers` check.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D16578
llvm-svn: 259643
|
|
|
|
|
|
|
|
|
| |
No functional changes intended as we should already do the
corresponding fixes when visiting the primary template. There are
existing tests that verify that we do change unused parameters of
templated functions.
llvm-svn: 259640
|
|
|
|
| |
llvm-svn: 259198
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: "checkParamTypes" may fail if the the type of some parameter is not canonical. Fixed it by comparing canonical types. And added "getCanonicalType()" and "getCanonicalDecl()" on more places to prevent potential fail.
Reviewers: alexfh
Subscribers: cfe-commits
Patch by Cong Liu!
Differential Revision: http://reviews.llvm.org/D16587
llvm-svn: 259197
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
llvm-svn: 258864
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Fix the assertion failure for the user-defined conversion method. e.g.: operator bool()
Reviewers: alexfh, aaron.ballman
Subscribers: aaron.ballman, cfe-commits
Patch by Cong Liu!
Differential Revision: http://reviews.llvm.org/D16536
llvm-svn: 258801
|
|
|
|
|
|
| |
macros, which use !! instead of an if statement or a conditional operator.
llvm-svn: 258714
|
|
|
|
|
|
|
|
|
|
|
| |
check.
Handle decayed types, ignore qualifiers and accessibility when considering a
method as a possible overload.
Differential Revision: http://reviews.llvm.org/D16179
llvm-svn: 258562
|
|
|
|
| |
llvm-svn: 257600
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Virtual function override near miss detection. Function complete. Test complete. Do not conduct Fix for now.
Reviewers: alexfh
Subscribers: cfe-commits
Patch by Cong Liu!
Differential Revision: http://reviews.llvm.org/D15823
llvm-svn: 257599
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
check in header files.
Summary: The new check will find all functionand variable definitions which may violate cpp one definition rule in header file.
Reviewers: aaron.ballman, alexfh
Subscribers: aaron.ballman, cfe-commits
Patch by Haojian Wu!
Differential Revision: http://reviews.llvm.org/D15710
llvm-svn: 257178
|
|
|
|
|
|
| |
enabled through cert-oop11-cpp. The CERT guideline does not cover moveable parameters as part of the OOP11-CPP recommendation, just copy construction from move constructors.
llvm-svn: 257177
|
|
|
|
|
|
| |
Use diagnostic parameters where possible instead of string concatenation.
llvm-svn: 257176
|
|
|
|
| |
llvm-svn: 255758
|
|
|
|
|
|
|
|
|
|
|
| |
It is possible to assign arbitrary integer types to strings.
Sometimes it is the result of missing to_string call or apostrophes.
Reviewers: alexfh
Differential Revision: http://reviews.llvm.org/D15411
llvm-svn: 255630
|
|
|
|
| |
llvm-svn: 254074
|
|
|
|
|
|
|
|
|
|
|
|
| |
ClangTidy check for finding cases when std::move() is called with const or
trivially copyable arguments, that doesn't lead to any move or argument but it
makes copy. FixIt generates patch for removing call of std::move().
Patch by Vadym Doroshenko! (+ a couple of minor fixes)
Differential Revision: http://reviews.llvm.org/D12031
llvm-svn: 254070
|
|
|
|
| |
llvm-svn: 254066
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Fix bug in suggested fix that truncated variable names to 1 character.
Also, rework the suggested fix to try to remove unnecessary whitespace.
Reviewers: alexfh, aaron.ballman
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D13899
llvm-svn: 252773
|
|
|
|
|
|
| |
Fixes http://llvm.org/PR25208.
llvm-svn: 252608
|
|
|
|
| |
llvm-svn: 250641
|
|
|
|
|
|
| |
cppcoreguidelines-c-copy-assignment-signature.
llvm-svn: 250165
|
|
|
|
|
|
|
|
| |
whether a catch statement catches by reference.
Patch by Tobias Langner!
llvm-svn: 249899
|
|
|
|
| |
llvm-svn: 249430
|
|
|
|
|
|
|
|
| |
passed by value but copy assigned to class data members when the non-deleted move constructor is a better fit.
Patch by Felix Berger!
llvm-svn: 249429
|
|
|
|
|
|
| |
non-copyable C type is being dereferenced, such as FILE or pthread_mutex_t. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/c/FIO38-C.+Do+not+copy+a+FILE+object
llvm-svn: 248907
|
|
|
|
|
|
| |
overloads of operator new and operator delete. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/DCL54-CPP.+Overload+allocation+and+deallocation+functions+as+a+pair+in+the+same+scope
llvm-svn: 248791
|
|
|
|
| |
llvm-svn: 248594
|
|
|
|
| |
llvm-svn: 248252
|
|
|
|
|
|
| |
correlates to r247885 which performs the AST matcher rename in Clang.
llvm-svn: 247886
|
|
|
|
|
|
|
| |
This turned out to be a rather noisy check, so automated fixes will only do
harm. Remove them completely.
llvm-svn: 247578
|
|
|
|
| |
llvm-svn: 247559
|
|
|
|
|
|
|
| |
It's fine to use sizeof on std::bitset<>, since it doesn't have any external
storage, everything's inside.
llvm-svn: 247489
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
containers.
Summary:
sizeof(some_std_string) is likely to be an error. This check finds this
pattern and suggests using .size() instead.
Reviewers: djasper, klimek, aaron.ballman
Subscribers: aaron.ballman, cfe-commits
Differential Revision: http://reviews.llvm.org/D12759
llvm-svn: 247297
|
|
|
|
| |
llvm-svn: 246495
|
|
|
|
| |
llvm-svn: 246447
|
|
|
|
|
|
| |
other macros
llvm-svn: 246446
|
|
|
|
| |
llvm-svn: 246444
|
|
|
|
|
|
|
|
|
| |
"modernize/"
These checks are focusing on migrating the code from C++98/03 to C++11, so they
belong to the modernize module.
llvm-svn: 246437
|
|
|
|
| |
llvm-svn: 246325
|
|
|
|
|
|
| |
checkers do not require additional testing as the tests will not compile for other languages or modes, or the checkers would never match a valid construct.
llvm-svn: 246318
|
|
|
|
|
|
|
|
|
|
|
| |
Changes mostly address formatting and unification of the style. Use
MarkDown style for inline code snippets and lists. Added some text
for a few checks.
The idea is to move most of the documentation out to separate rST files and have
implementation files refer to the corresponding documentation files.
llvm-svn: 246169
|
|
|
|
|
|
| |
constructor initializations that call copy constructors instead of move constructors.
llvm-svn: 245571
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The existing check converts the code pattern below:
void f()
{
}
to:
void f()
override {
}
which is fairly sub-optimal. This patch fixes this by inserting the
override keyword on the same line as the function declaration if
possible, so that we instead get:
void f() override
{
}
We do this by looking for the last token before the start of the body
and inserting the override keyword at the end of its location. Note
that we handle const, volatile and ref-qualifiers correctly.
Test Plan: Includes an automated test.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D9286
llvm-svn: 245401
|
|
|
|
| |
llvm-svn: 245310
|
|
|
|
|
|
| |
can leave out the parameter list.
llvm-svn: 245048
|
|
|
|
|
|
| |
We couldn't calculate the removal ranges properly at this point.
llvm-svn: 244454
|
|
|
|
|
|
| |
"this namespace alias decl is unused" -> "namespace alias decl '...' is unused"
llvm-svn: 243906
|
|
|
|
|
|
| |
commit review.
llvm-svn: 243871
|
|
|
|
| |
llvm-svn: 243773
|