[PATCH] D70144: clang-tidy: modernize-use-equals-default avoid adding redundant semicolons
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 13 07:49:23 PST 2019
JonasToth added a comment.
Please mention this improvement in the release notes as well :)
================
Comment at: clang-tools-extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp:306
+ if (ApplyFix) {
+ // Peek ahead to see if there's a semicolon after Body->getSourceRange()
+ Optional<Token> Token;
----------------
There should be utility code in `clang-tidy/util/` that deals with custom lexing, that should be able to do the job.
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70144/new/
https://reviews.llvm.org/D70144
More information about the cfe-commits
mailing list