Change .size() == 0 to .empty() (#6917)

This resolves a readability-container-size-empty clang-tidy finding.
This commit is contained in:
Geoff Romer
2026-03-17 11:35:04 +00:00
committed by GitHub
parent 613a139bef
commit 1d71e7a707
+1 -1
View File
@@ -37,7 +37,7 @@ static auto MapLValueToConstant(Context& context, SemIR::LocId loc_id,
const_cast<clang::ValueDecl*>(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);
}