[PATCH] D18695: [clang-tidy] Reduce false-positive ratio in misc-suspicious-missing-comma check.
Etienne Bergeron via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 1 06:26:39 PDT 2016
etienneb created this revision.
etienneb added a reviewer: alexfh.
etienneb added a subscriber: cfe-commits.
This patch is adding detection of common string literal patterns
that should not trigger warnings.
[*] Add a limit on the number of concatenated token,
[*] Add support for parenthese sequence of tokens,
[*] Add detection of valid indentation.
As an example, this code will no longer trigger a warning:
```
const char* Array[] = {
"first literal"
"indented literal"
"indented literal",
"second literal",
[...]
```
http://reviews.llvm.org/D18695
Files:
clang-tidy/misc/SuspiciousMissingCommaCheck.cpp
clang-tidy/misc/SuspiciousMissingCommaCheck.h
test/clang-tidy/misc-suspicious-missing-comma.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18695.52362.patch
Type: text/x-patch
Size: 6225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160401/8b351f1f/attachment.bin>
More information about the cfe-commits
mailing list