[PATCH] D15737: [clang-tidy] Preserve comments and preprocessor directives when simplifying boolean expressions
Richard via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 22 20:48:43 PST 2015
LegalizeAdulthood created this revision.
LegalizeAdulthood added a reviewer: alexfh.
LegalizeAdulthood added a subscriber: cfe-commits.
This changeset still emits the diagnostic that the expression could be simplified, but it doesn't generate any fix-its that would lose comments or preprocessor directives within the text that would be replaced.
http://reviews.llvm.org/D15737
Files:
clang-tidy/readability/SimplifyBooleanExprCheck.cpp
clang-tidy/readability/SimplifyBooleanExprCheck.h
test/clang-tidy/readability-simplify-bool-expr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15737.43503.patch
Type: text/x-patch
Size: 10520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151223/995df62d/attachment.bin>
More information about the cfe-commits
mailing list