From d9fd2f5402eeaa345691313658e02b51038f570b Mon Sep 17 00:00:00 2001 From: Kitware Robot Date: Mon, 16 May 2016 10:34:04 -0400 Subject: Revise C++ coding style using clang-format Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. --- .../cxx_generalized_initializers.cpp | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'Tests/CompileFeatures/cxx_generalized_initializers.cpp') diff --git a/Tests/CompileFeatures/cxx_generalized_initializers.cpp b/Tests/CompileFeatures/cxx_generalized_initializers.cpp index ad05f12040..cfe9d9852d 100644 --- a/Tests/CompileFeatures/cxx_generalized_initializers.cpp +++ b/Tests/CompileFeatures/cxx_generalized_initializers.cpp @@ -1,19 +1,22 @@ #if defined(_MSC_VER) && _MSC_VER == 1800 && _MSC_FULL_VER < 180030723 -# error "VS 2013 safely supports this only with Update 3 or greater" +#error "VS 2013 safely supports this only with Update 3 or greater" #endif // Dummy implementation. Test only the compiler feature. namespace std { - typedef decltype(sizeof(int)) size_t; - template - class initializer_list +typedef decltype(sizeof(int)) size_t; +template +class initializer_list +{ + const _E* __begin_; + size_t __size_; + +public: + template + initializer_list(T1, T2) { - const _E* __begin_; - size_t __size_; - public: - template - initializer_list(T1, T2) {} - }; + } +}; } template -- cgit v1.2.1