| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
easier
llvm-svn: 244793
|
| |
|
|
|
|
|
|
|
| |
removes a corner case in tests that don't set the diagnostic consumer.
In tests, it is good, not to set the diagnostic consumer so that Clang's
parsing diagnostics are still displayed in the test output and only
ClangTidy's output is analyzed differently.
llvm-svn: 244745
|
| |
|
|
|
|
| |
add a dependency onto gtest from the header.
llvm-svn: 244722
|
| |
|
|
|
|
|
|
|
|
| |
problematic dependency
Seems we had some internal uses that include ClangTidyTest.h and weren't
ready for a gtest dependency. Reverting to give Manuel some time to look
into it.
llvm-svn: 244658
|
| |
|
|
|
|
|
|
| |
canonicalization in the file manager.
2. Add better output when a clang-tidy unit test fails so it's clear what the error is.
llvm-svn: 244602
|
| |
|
|
| |
llvm-svn: 244599
|
| |
|
|
| |
llvm-svn: 244598
|
| |
|
|
| |
llvm-svn: 244597
|
| |
|
|
| |
llvm-svn: 244596
|
| |
|
|
| |
llvm-svn: 244587
|
| |
|
|
|
|
| |
Will be used to allow checks to insert includes at the right position.
llvm-svn: 244586
|
| |
|
|
|
|
| |
We couldn't calculate the removal ranges properly at this point.
llvm-svn: 244454
|
| |
|
|
| |
llvm-svn: 244329
|
| |
|
|
| |
llvm-svn: 244208
|
| |
|
|
| |
llvm-svn: 244206
|
| |
|
|
| |
llvm-svn: 244001
|
| |
|
|
|
|
| |
"this namespace alias decl is unused" -> "namespace alias decl '...' is unused"
llvm-svn: 243906
|
| |
|
|
|
|
| |
commit review.
llvm-svn: 243871
|
| |
|
|
| |
llvm-svn: 243773
|
| |
|
|
|
|
|
| |
alias declarations. In the future, we might want to reuse it to also
fine unsed using declarations and such.
llvm-svn: 243754
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
misc-inefficient-algorithm
Summary:
Support replacements in macro arguments in the
misc-inefficient-algorithm check.
Reviewers: klimek
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D11677
llvm-svn: 243747
|
| |
|
|
|
|
|
|
| |
clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp from check_clang_tidy.sh.
It also rolls back r242984 and r242985.
llvm-svn: 243491
|
| |
|
|
|
|
|
| |
In headers, they might always be pulled in to different TUs, even if
they are declared static or nested in an unnamed namespace.
llvm-svn: 243414
|
| |
|
|
|
|
| |
Not sure why I wrote what I wrote before.
llvm-svn: 243403
|
| |
|
|
| |
llvm-svn: 243272
|
| |
|
|
| |
llvm-svn: 243269
|
| |
|
|
| |
llvm-svn: 243268
|
| |
|
|
|
|
|
|
|
| |
As there don't seem to be a good way of formulating a matcher that
finds all pairs of functions and their ParmVarDecls, just match on
functionDecls and iterate over their parameters. This should also be
more efficient as some checks are only performed once per function.
llvm-svn: 243267
|
| |
|
|
|
|
| |
from the documentation, and removes shell-specific single quote characters as they cause issues for some shells (such as on Windows).
llvm-svn: 243266
|
| |
|
|
| |
llvm-svn: 243265
|
| |
|
|
|
|
| |
ParmVarDecls of function types.
llvm-svn: 243026
|
| |
|
|
| |
llvm-svn: 242985
|
| |
|
|
|
|
|
|
|
| |
add -fno-delayed-template-parsing.
Note, clang-tidy tests wouldn't run on Windows hosts since they are disabled with REQUIRES:shell.
The failure would be raised with cross building.
llvm-svn: 242984
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The parameters of the function templates were being marked as
incorrectly be marked as unused. Added a test for this and changed the
check to use the same
isReferenced() || !getDeclName()
logic as Sema::DiagnoseUnusedParameters.
Patch Scott Wallace, thank you!
llvm-svn: 242912
|
| |
|
|
|
|
| |
Also see: llvm.org/PR24180.
llvm-svn: 242659
|
| |
|
|
|
|
| |
Also see: llvm.org/PR24180.
llvm-svn: 242654
|
| |
|
|
| |
llvm-svn: 242607
|
| |
|
|
| |
llvm-svn: 242247
|
| |
|
|
|
|
|
|
|
|
|
|
| |
to determine files that have comnpilation or dependency problems.
A new -display-file-lists option use this to display lists of good files
(no compile errors), problem files, and a combined list with
problem files preceded by a '#'. The problem files list can be
used in the module map generation assistant mode to exclude
problem files. The combined files list can be used during module
map development. See added docs.
llvm-svn: 241880
|
| |
|
|
| |
llvm-svn: 241744
|
| |
|
|
| |
llvm-svn: 241726
|
| |
|
|
| |
llvm-svn: 241724
|
| |
|
|
|
|
| |
now fails the bots.
llvm-svn: 241335
|
| |
|
|
|
|
|
|
| |
and std::move to avoid implicit std::string construction.
Patch by Eugene Kosov.
llvm-svn: 241330
|
| |
|
|
|
|
|
|
|
|
|
| |
Enhance clang-tidy misc-macro-repeated-side-effects to handle ? and : better.
When ? is used in a macro, there are 2 possible control flow paths through the macro.
These paths are tracked separately so problems can be detected properly.
http://reviews.llvm.org/D10653
llvm-svn: 241245
|
| |
|
|
| |
llvm-svn: 241160
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enhance clang-tidy readability-simplify-boolean-expr to handle 'if (e) return
true; return false;' and improve replacement expressions.
This changeset extends the simplify boolean expression check in clang-tidy to
simplify if (e) return true; return false; to return e; (note the lack of an
else clause on the if statement.) By default, chained conditional assignment is
left unchanged, unless a configuration parameter is set to non-zero to override
this behavior.
It also improves the handling of replacement expressions to apply
static_cast<bool>(expr) when expr is not of type bool.
http://reviews.llvm.org/D9810
Patch by Richard Thomson!
llvm-svn: 241155
|
| |
|
|
|
|
|
|
|
|
|
| |
Summary:
There were false positives in C++ code where macro argument was a type.
Reviewers: alexfh
Differential Revision: http://reviews.llvm.org/D10801
llvm-svn: 240938
|
| |
|
|
| |
llvm-svn: 240399
|
| |
|
|
|
|
| |
by pointer) from ParseArgs
llvm-svn: 240348
|