commit | e5543012633571f0a1a162baa8a6f81655c6426b | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Thu Jul 30 13:52:30 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Jul 30 18:24:00 2020 +0000 |
tree | 6be871891c89c406876303ae963c3a17b0d07d38 | |
parent | 4ecc970162dcd7187d2335fba0bfba2d365e13b6 [diff] |
Enable ClangTidy guard bugprone-argument-comment. https://clang.llvm.org/extra/clang-tidy/checks/bugprone-argument-comment.html ----- Checks that argument comments match parameter names. The check understands argument comments in the form /*parameter_name=*/ that are placed right before the argument. void f(bool foo); ... f(/*bar=*/true); // warning: argument name 'bar' in comment does not match parameter // name 'foo' The check tries to detect typos and suggest automated fixes for them. ----- Change-Id: I76fa82f5338f465b8f9e5a13654195f25a618b35 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/306848 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Mike Klein <mtklein@google.com>