From 06c09a266b93dfaf2bc5542ac4501fd4b651e7b0 Mon Sep 17 00:00:00 2001 From: Gregory Chanan Date: Mon, 12 Aug 2019 14:16:04 -0700 Subject: [PATCH] Ignore bugprone-lambda-function-name in clang-tidy. (#24190) Summary: Fixes: https://github.com/pytorch/pytorch/issues/23947. In https://github.com/pytorch/pytorch/pull/23970, I ignored these in dispatch macros, but I think it's more maintainable to just block this globally. And it's a pretty minor issue if it happens anyway. Pull Request resolved: https://github.com/pytorch/pytorch/pull/24190 Differential Revision: D16766329 Pulled By: gchanan fbshipit-source-id: 7ae7b7781562a8974d974f7eefa8ec7551eb09fc --- .clang-tidy | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-tidy b/.clang-tidy index 8f22f83da81..fae404cddb4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -5,6 +5,7 @@ Checks: ' ,bugprone-* ,-bugprone-forward-declaration-namespace ,-bugprone-macro-parentheses + ,-bugprone-lambda-function-name ,cppcoreguidelines-* ,-cppcoreguidelines-interfaces-global-init ,-cppcoreguidelines-owning-memory