diff --git a/.clang-format b/.clang-format index 93ffdabf4..f72eb4c25 100644 --- a/.clang-format +++ b/.clang-format @@ -1,6 +1,6 @@ # the official .clang-format style for https://github.com/taocpp # -# clang-format-5.0 -i -style=file $(find -name '[^.]*.[hc]pp') +# clang-format-5.0 -i -style=file $(find . -name '[^.]*.[hc]pp') Language: Cpp Standard: Cpp11 diff --git a/src/test/pegtl/test.hpp b/src/test/pegtl/test.hpp index dd93bc5ef..3e9277c3d 100644 --- a/src/test/pegtl/test.hpp +++ b/src/test/pegtl/test.hpp @@ -51,21 +51,21 @@ namespace tao } \ } while( false ) -#define TAOCPP_PEGTL_TEST_THROWS( ... ) \ - do { \ - try { \ - __VA_ARGS__; \ - std::cerr << "pegtl: unit test [ " \ - << ( #__VA_ARGS__ ) \ - << " ] did not throw in line [ " \ - << __LINE__ \ - << " ] file [ " \ - << __FILE__ << " ]" \ - << std::endl; \ - ++failed; \ - } \ - catch( ... ) { \ - } \ +#define TAOCPP_PEGTL_TEST_THROWS( ... ) \ + do { \ + try { \ + __VA_ARGS__; \ + std::cerr << "pegtl: unit test [ " \ + << ( #__VA_ARGS__ ) \ + << " ] did not throw in line [ " \ + << __LINE__ \ + << " ] file [ " \ + << __FILE__ << " ]" \ + << std::endl; \ + ++failed; \ + } \ + catch( ... ) { \ + } \ } while( false ) namespace tao