Skip to content

Commit edcc24e

Browse files
authored
Don't require writing a return type on lambdas (#5935)
clang-tidy/clangd has started warning on lambdas without an explicit return type
1 parent de3148c commit edcc24e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.clang-tidy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,7 @@ CheckOptions:
138138
# https://github.com/llvm/llvm-project/issues/46097
139139
- key: readability-identifier-naming.TemplateParameterIgnoredRegexp
140140
value: '^expr-type$'
141+
142+
# Don't require writing a return type on lambdas.
143+
- key: modernize-use-trailing-return-type.TransformLambdas
144+
value: none

0 commit comments

Comments
 (0)