[PATCH] D128372: [Clang-Tidy] Empty Check
Christopher Di Bella via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 7 12:14:57 PDT 2022
cjdb added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/bugprone/StandaloneEmptyCheck.cpp:128
+ << FixItHint::CreateReplacement(ReplacementRange, "clear");
+ } else {
+ diag(MemberLoc, "ignoring the result of 'empty()'");
----------------
Let's eliminate some of these else-clauses by using early exits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128372/new/
https://reviews.llvm.org/D128372
More information about the cfe-commits
mailing list