Przeglądaj źródła

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 miesięcy temu
rodzic
commit
edcc24ecf7
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      .clang-tidy

+ 4 - 0
.clang-tidy

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