[PATCH] D67080: Fix bugprone-argument-comment bug if there are marcos.

Yubo Xie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 2 08:15:37 PDT 2019


xyb created this revision.
xyb added a reviewer: alexfh.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Fix bugprone-argument-comment bug if there are marcos.

For example:

  #define X(x) (x)
  void j(int a, int b, int c);
  j(X(1), /*b=*/1, X(1));

clang-tidy can't recognize comment "/*b=*/". It suggests fix like this:

  j(X(1), /*b=*//*b=*/1, X(1));

This change tries to fix this issue.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D67080

Files:





-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67080.218370.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190902/1479d6d9/attachment.bin>


More information about the cfe-commits mailing list