hanchenye-llvm-project/clang-tools-extra/clang-tidy
Alexander Kornienko 7b9f3e28cc [clang-tidy] Fixed misc-unused-parameters omitting parameters square brackets
Summary:
Bug: https://bugs.llvm.org/show_bug.cgi?id=34449

**Problem:**

Clang-tidy check misc-unused-parameters comments out parameter name omitting following characters (e.g. square brackets) what results in its complete removal. Compilation errors might occur after clang-tidy fix as well.

**Patch description:**

Changed removal range. The range should end after parameter name, not after whole parameter declarator (which might be followed by e.g. square brackets).

Reviewers: alexfh

Reviewed By: alexfh

Subscribers: JDevlieghere, xazax.hun, cfe-commits

Tags: #clang-tools-extra

Patch by Pawel Maciocha!

Differential Revision: https://reviews.llvm.org/D37846

llvm-svn: 313355
2017-09-15 11:28:28 +00:00
..
android [clang-tidy] Remove unused static variable. 2017-08-16 21:00:06 +00:00
boost
bugprone [clang-tidy] bugprone-undefined-memory-manipulation: include type into the message 2017-08-24 12:11:05 +00:00
cert [clang-tidy] When" -fno-exceptions is used", this warning is better to be suppressed. 2017-06-07 17:41:59 +00:00
cppcoreguidelines [clang-tidy] Implement type-based check for `gsl::owner` 2017-09-12 20:00:42 +00:00
google Adapt clang-tidy checks to changing semantics of hasDeclaration. 2017-08-02 13:13:11 +00:00
hicpp [clang-tidy] add more aliases for the hicpp module 2017-09-11 09:20:07 +00:00
llvm [clang-tidy] Unify the way IncludeStyle and HeaderFileExtesions options are used 2017-07-20 12:02:03 +00:00
misc [clang-tidy] Fixed misc-unused-parameters omitting parameters square brackets 2017-09-15 11:28:28 +00:00
modernize [clang-tidy] A follow-up fix of braced-init-list constructors in make-unique check. 2017-08-24 13:35:55 +00:00
mpi
performance [clang-tidy] 'implicit cast' -> 'implicit conversion' 2017-08-08 14:53:52 +00:00
plugin [clang-tidy][Part1] Add a new module Android and three new checks. 2017-06-23 21:37:29 +00:00
readability [clang-tidy] FunctionSizeCheck: wrap FunctionASTVisitor into anon namespace, NFC 2017-09-11 13:12:31 +00:00
tool Update for PrintHelpMessage not calling exit. 2017-09-08 00:33:39 +00:00
utils [clang-tidy] Implement type-based check for `gsl::owner` 2017-09-12 20:00:42 +00:00
CMakeLists.txt [clang-tidy] Add bugprone-suspicious-memset-usage check 2017-07-14 12:15:55 +00:00
ClangTidy.cpp Change getChecksFilter() interface to hide implementation details. 2017-05-17 14:39:47 +00:00
ClangTidy.h [clang-tidy] Add FormatStyle configuration option. 2017-04-06 13:41:29 +00:00
ClangTidyDiagnosticConsumer.cpp [clang-tidy] Ignore newlines in checks list 2017-08-09 16:00:31 +00:00
ClangTidyDiagnosticConsumer.h [clang-tidy] Optimize GlobList::contains 2017-05-18 01:13:51 +00:00
ClangTidyModule.cpp Change getChecksFilter() interface to hide implementation details. 2017-05-17 14:39:47 +00:00
ClangTidyModule.h
ClangTidyModuleRegistry.h
ClangTidyOptions.cpp Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR 2017-06-30 20:57:16 +00:00
ClangTidyOptions.h [clang-tidy] Add FormatStyle configuration option. 2017-04-06 13:41:29 +00:00
add_new_check.py [clang-tidy] add_new_check.py updates ReleaseNotes.rst now 2017-07-12 13:13:41 +00:00
rename_check.py