Use lines instead of statements for readability-function-size clang-tidy (#6594)

This commit is contained in:
Geoff Romer
2026-01-14 19:32:03 +00:00
committed by GitHub
parent d8adcf93f5
commit 9106f9533c
8 changed files with 9 additions and 8 deletions
-1
View File
@@ -113,7 +113,6 @@ static auto LowerInstHelper(FunctionContext& context, SemIR::InstId inst_id,
// TODO: Consider renaming Handle##Name, instead relying on typed_inst overload
// resolution. That would allow putting the nonexistent handler implementations
// in `requires`-style overloads.
// NOLINTNEXTLINE(readability-function-size): The define confuses lint.
auto FunctionContext::LowerInst(SemIR::InstId inst_id) -> void {
// Skip over constants. `FileContext::GetConstant` lowers them as needed.
if (sem_ir().constant_values().Get(inst_id).is_constant()) {