diff options
author | Kazu Hirata <kazu@google.com> | 2022-11-26 09:53:22 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-11-26 09:53:22 -0800 |
commit | a737146c9252e13233775cec3eeb6a09f9960437 (patch) | |
tree | d9b37445a3fcb69a4029681a3bbda1dc6be9d6db /llvm/unittests/Support/CommandLineTest.cpp | |
parent | 453f27bc9e3c7aab28354f72203f9b7606f5f4e2 (diff) | |
download | llvm-a737146c9252e13233775cec3eeb6a09f9960437.zip llvm-a737146c9252e13233775cec3eeb6a09f9960437.tar.gz llvm-a737146c9252e13233775cec3eeb6a09f9960437.tar.bz2 |
[ObjectYAML] Use std::size (NFC)
std::size, introduced in C++17, allows us to directly obtain the
number of elements of an array.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions