From d14e36981ca6e204ab40a4cf7701fc5846bb7b79 Mon Sep 17 00:00:00 2001 From: Sing_chan <51314274+betterpig@users.noreply.github.com> Date: Tue, 14 Jun 2022 13:38:46 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90code=20format=20check=20upgrade?= =?UTF-8?q?=E3=80=91=20step3=EF=BC=9Aenable=20clang-format=20sort=20these?= =?UTF-8?q?=20cinn=20files's=20headers(#43329)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paddle/fluid/framework/paddle2cinn/cinn_cache_key_test.cc | 5 ++--- .../framework/paddle2cinn/cinn_graph_symbolization_test.cc | 6 ++---- paddle/fluid/framework/paddle2cinn/transform_desc_test.cc | 5 ++--- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/paddle/fluid/framework/paddle2cinn/cinn_cache_key_test.cc b/paddle/fluid/framework/paddle2cinn/cinn_cache_key_test.cc index 24e65599018..e804d153f28 100644 --- a/paddle/fluid/framework/paddle2cinn/cinn_cache_key_test.cc +++ b/paddle/fluid/framework/paddle2cinn/cinn_cache_key_test.cc @@ -12,17 +12,16 @@ // See the License for the specific language governing permissions and // limitations under the License. -// clang-format off +#include "paddle/fluid/framework/paddle2cinn/cinn_cache_key.h" + #include #include #include "gtest/gtest.h" #include "paddle/fluid/framework/ir/graph.h" #include "paddle/fluid/framework/lod_tensor.h" -#include "paddle/fluid/framework/paddle2cinn/cinn_cache_key.h" #include "paddle/fluid/framework/program_desc.h" #include "paddle/phi/core/ddim.h" -// clang-format on namespace paddle { namespace framework { diff --git a/paddle/fluid/framework/paddle2cinn/cinn_graph_symbolization_test.cc b/paddle/fluid/framework/paddle2cinn/cinn_graph_symbolization_test.cc index 8a6f92a6f45..68c701530a1 100644 --- a/paddle/fluid/framework/paddle2cinn/cinn_graph_symbolization_test.cc +++ b/paddle/fluid/framework/paddle2cinn/cinn_graph_symbolization_test.cc @@ -12,12 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -// clang-format off -#include "gtest/gtest.h" +#include "paddle/fluid/framework/paddle2cinn/cinn_graph_symbolization.h" +#include "gtest/gtest.h" #include "paddle/fluid/framework/convert_utils.h" -#include "paddle/fluid/framework/paddle2cinn/cinn_graph_symbolization.h" -// clang-format on namespace paddle { namespace framework { diff --git a/paddle/fluid/framework/paddle2cinn/transform_desc_test.cc b/paddle/fluid/framework/paddle2cinn/transform_desc_test.cc index ae9f51c3f67..1ee108f566f 100644 --- a/paddle/fluid/framework/paddle2cinn/transform_desc_test.cc +++ b/paddle/fluid/framework/paddle2cinn/transform_desc_test.cc @@ -12,12 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -// clang-format off +#include "paddle/fluid/framework/paddle2cinn/transform_desc.h" + #include #include "gtest/gtest.h" -#include "paddle/fluid/framework/paddle2cinn/transform_desc.h" -// clang-format on namespace paddle { namespace framework { -- GitLab