[PATCH] D69560: [clang-tidy] Add 'bugprone-easily-swappable-parameters' check
Whisperity via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 9 04:04:27 PST 2021
whisperity updated this revision to Diff 322339.
whisperity added a comment.
- Added a C test file with some C-specific language constructs that we may or may not match.
- Explained limitations with regards to variadics, templates, etc. better in the docs, and added test cases for these too.
- When comparing the type names against the ignored type name list, do **not** consider `PrintingPolicy`, but take //exactly// what's in the source code. This mostly concerns `bool` and `_Bool` at face value, so this is tested in the C file too.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69560/new/
https://reviews.llvm.org/D69560
Files:
clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
clang-tools-extra/clang-tidy/bugprone/EasilySwappableParametersCheck.cpp
clang-tools-extra/clang-tidy/bugprone/EasilySwappableParametersCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-easily-swappable-parameters.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/bugprone-easily-swappable-parameters-ignore.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone-easily-swappable-parameters-len2.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone-easily-swappable-parameters-len3.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone-easily-swappable-parameters.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69560.322339.patch
Type: text/x-patch
Size: 44552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210209/674cbdc2/attachment-0001.bin>
More information about the cfe-commits
mailing list