From 1d71e7a707f5e0b47afda448517ea8d94ee6dd20 Mon Sep 17 00:00:00 2001 From: Geoff Romer Date: Tue, 17 Mar 2026 04:35:04 -0700 Subject: [PATCH] Change `.size() == 0` to `.empty()` (#6917) This resolves a readability-container-size-empty clang-tidy finding. --- toolchain/check/cpp/constant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/check/cpp/constant.cpp b/toolchain/check/cpp/constant.cpp index e90350c391de..143941d5bbed 100644 --- a/toolchain/check/cpp/constant.cpp +++ b/toolchain/check/cpp/constant.cpp @@ -37,7 +37,7 @@ static auto MapLValueToConstant(Context& context, SemIR::LocId loc_id, const_cast(value_decl)); auto inst_id = ImportCppDecl(context, loc_id, key); - if (ap_value.getLValuePath().size() == 0) { + if (ap_value.getLValuePath().empty()) { return context.constant_values().Get(inst_id); }