未验证 提交 31a96888 编写于 作者: N Nyakku Shigure 提交者: GitHub

[clang-tidy][task 61] enable `hicpp-exception-baseclass` and fix existing errors (#55847)

* [clang-tidy] enable `hicpp-exception-baseclass` and fix existing errors

* config

* update error format to pass the ci check (at least 20 chars)
上级 609c0321
...@@ -162,7 +162,7 @@ cppcoreguidelines-c-copy-assignment-signature, ...@@ -162,7 +162,7 @@ cppcoreguidelines-c-copy-assignment-signature,
-cppcoreguidelines-pro-type-member-init, -cppcoreguidelines-pro-type-member-init,
-cppcoreguidelines-slicing, -cppcoreguidelines-slicing,
-hicpp-avoid-goto, -hicpp-avoid-goto,
-hicpp-exception-baseclass, hicpp-exception-baseclass,
misc-unused-alias-decls, misc-unused-alias-decls,
misc-unused-using-decls, misc-unused-using-decls,
modernize-avoid-bind, modernize-avoid-bind,
......
...@@ -99,8 +99,8 @@ void ReshapeTransposeMatmulMkldnnFusePass::Fuse( ...@@ -99,8 +99,8 @@ void ReshapeTransposeMatmulMkldnnFusePass::Fuse(
} else if (matmul_desc->Inputs().at("Y").at(0) == input_var_name) { } else if (matmul_desc->Inputs().at("Y").at(0) == input_var_name) {
matmul_input_name = "Y"; matmul_input_name = "Y";
} else { } else {
throw platform::errors::InvalidArgument("Unexpected input to " + PADDLE_THROW(platform::errors::InvalidArgument(
matmul_type + " encountered."); "Unexpected input to %s encountered.", matmul_type));
} }
// Return if input of fused_matmul is already fused // Return if input of fused_matmul is already fused
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册