[clang-tidy] Fix bugprone-argument-comment bug if there are marcos.
authorAlexander Kornienko <alexfh@google.com>
Wed, 4 Sep 2019 16:19:32 +0000 (16:19 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 4 Sep 2019 16:19:32 +0000 (16:19 +0000)
commit240a2e25c6ded8b68b33751286180de7b242bf42
treec402dfb692163ee55a9cfbb23029cd816e33ce04
parent80913a70f5492bd42732ab7c98564d2590820cfd
[clang-tidy] Fix bugprone-argument-comment bug if there are marcos.

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

For example:
```
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.

Reviewers: alexfh, hokein, aaron.ballman

Reviewed By: alexfh

Subscribers: xazax.hun, cfe-commits

Tags: #clang, #clang-tools-extra

Patch by Yubo Xie.

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

llvm-svn: 370919
clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
clang-tools-extra/test/clang-tidy/bugprone-argument-comment-literals.cpp