[PATCH] D28014: Support: Add YAML I/O support for string maps.
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 3 21:35:27 PST 2017
mehdi_amini added inline comments.
================
Comment at: llvm/trunk/lib/Support/YAMLTraits.cpp:389-393
+ for (std::string &K : ValidKeys) {
+ if (Key == K)
return true;
}
return false;
----------------
majnemer wrote:
> Isn't this: `return is_contained(ValidKeys, Key);`?
Sweet, I didn't know about `llvm::is_contained`!
Repository:
rL LLVM
https://reviews.llvm.org/D28014
More information about the llvm-commits
mailing list