From 6b80ef6cccfd14b9b6620c5d41a148024d78576c Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Wed, 29 Sep 2021 11:23:09 -0700 Subject: Clang-format c/cpp files in test directory (#4192) This clang-formats c/cpp files in test/ directory, and updates clang-format-diff.sh so that it does not ignore test/ directory anymore. bigswitch.cpp is excluded from formatting, because there are big commented-out code blocks, and apparently clang-format messes up formatting in them. Also to make matters worse, different clang-format versions do different things on those commented-out code blocks. --- test/example/small_vector.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/example/small_vector.cpp') diff --git a/test/example/small_vector.cpp b/test/example/small_vector.cpp index 732cbfac3..cb2e22e79 100644 --- a/test/example/small_vector.cpp +++ b/test/example/small_vector.cpp @@ -1,12 +1,11 @@ -#include #include +#include #include "support/small_vector.h" using namespace wasm; -template -void test() { +template void test() { { T t; // build up @@ -65,4 +64,3 @@ int main() { test>(); std::cout << "ok.\n"; } - -- cgit v1.2.3