[AutoAccept][Codemod][FBSourceClangFormatLinter] Daily arc lint --take CLANGFORMAT

Reviewed By: zertosh

Differential Revision: D34196056

fbshipit-source-id: c3abe952844d09f2754c16589bbfc76b8986b9ff
(cherry picked from commit eedc480440f55538ba0204f6c593bfce084e60b7)
This commit is contained in:
CodemodService FBSourceClangFormatLinterBot
2022-02-12 03:19:43 -08:00
committed by PyTorch MergeBot
parent c73cc92eff
commit 5a95ffbdc5

View File

@ -116,8 +116,12 @@ struct SchemaParser {
// overload with overload name as an empty string
// and so shouldn't be used as an overload name
// also disallow dunder attribute names to be overload names
bool is_a_valid_overload_name = !((overload_name == "default") || (overload_name.rfind("__", 0) == 0));
TORCH_CHECK(is_a_valid_overload_name, overload_name, " is not a legal overload name for aten operators");
bool is_a_valid_overload_name =
!((overload_name == "default") || (overload_name.rfind("__", 0) == 0));
TORCH_CHECK(
is_a_valid_overload_name,
overload_name,
" is not a legal overload name for aten operators");
return {name, overload_name};
}