[PATCH] D67056: Add a bugprone-argument-comment option: IgnoreSingleArgument.
Yubo Xie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 1 17:09:08 PDT 2019
xyb created this revision.
xyb added a reviewer: alexfh.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Add bugprone-argument-comment option: IgnoreSingleArgument.
When true, the check will ignore the single argument.
Sometimes, it's not necessary to add comment to single argument.
For example:
> std::string name("Yubo Xie");
> pScreen->SetWidth(1920);
> pScreen->SetHeight(1080);
This option can ignore such single argument in bugprone-argument-comment check.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D67056
Files:
clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.h
clang-tools-extra/docs/clang-tidy/checks/bugprone-argument-comment.rst
clang-tools-extra/test/clang-tidy/bugprone-argument-comment-ignore-single-argument.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67056.218281.patch
Type: text/x-patch
Size: 5556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190902/18d0a53b/attachment.bin>
More information about the cfe-commits
mailing list