瀏覽代碼

Don't require writing a return type on lambdas (#5935)

clang-tidy/clangd has started warning on lambdas without an explicit
return type
Dana Jansens 8 月之前
父節點
當前提交
edcc24ecf7
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      .clang-tidy

+ 4 - 0
.clang-tidy

@@ -138,3 +138,7 @@ CheckOptions:
   # https://github.com/llvm/llvm-project/issues/46097
   # https://github.com/llvm/llvm-project/issues/46097
   - key: readability-identifier-naming.TemplateParameterIgnoredRegexp
   - key: readability-identifier-naming.TemplateParameterIgnoredRegexp
     value: '^expr-type$'
     value: '^expr-type$'
+
+  # Don't require writing a return type on lambdas.
+  - key: modernize-use-trailing-return-type.TransformLambdas
+    value: none