aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-11-26 09:53:22 -0800
committerKazu Hirata <kazu@google.com>2022-11-26 09:53:22 -0800
commita737146c9252e13233775cec3eeb6a09f9960437 (patch)
treed9b37445a3fcb69a4029681a3bbda1dc6be9d6db /llvm/unittests/Support/CommandLineTest.cpp
parent453f27bc9e3c7aab28354f72203f9b7606f5f4e2 (diff)
downloadllvm-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