[PATCH] D61574: [CommandLine] Allow Options to specify multiple OptionCategory's.
Don Hinton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 5 21:37:49 PDT 2019
hintonda marked an inline comment as done.
hintonda added inline comments.
================
Comment at: llvm/lib/Support/CommandLine.cpp:2421
+ for (auto &Cat : I.second->Categories) {
+ if (std::find(CategoriesBegin, CategoriesEnd, Cat) ==
+ CategoriesEnd &&
----------------
MaskRay wrote:
> Use `llvm::find` (or `llvm::count`) and delete the otherwise unused `CategoriesBegin` `CategoriesEnd`.
I'll update them all. Thanks for point that out.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61574/new/
https://reviews.llvm.org/D61574
More information about the llvm-commits
mailing list