normalizing eof for everything
diff --git a/examples/alternative_macros/CMakeLists.txt b/examples/alternative_macros/CMakeLists.txt
index 5ce5ce1..5882f45 100644
--- a/examples/alternative_macros/CMakeLists.txt
+++ b/examples/alternative_macros/CMakeLists.txt
@@ -1,12 +1,12 @@
-cmake_minimum_required(VERSION 2.8)

-

-get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

-project(${PROJECT_NAME})

-

-include(../../scripts/common.cmake)

-

-include_directories("../../doctest/")

-

-add_executable(${PROJECT_NAME} main.cpp)

-

-add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)

+cmake_minimum_required(VERSION 2.8)
+
+get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+project(${PROJECT_NAME})
+
+include(../../scripts/common.cmake)
+
+include_directories("../../doctest/")
+
+add_executable(${PROJECT_NAME} main.cpp)
+
+add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
diff --git a/examples/alternative_macros/doctest_proxy.h b/examples/alternative_macros/doctest_proxy.h
index ad382d5..a8dff1c 100644
--- a/examples/alternative_macros/doctest_proxy.h
+++ b/examples/alternative_macros/doctest_proxy.h
@@ -1,39 +1,39 @@
-#ifndef DOCTEST_CONFIG_NO_SHORT_MACRO_NAMES

-#define DOCTEST_CONFIG_NO_SHORT_MACRO_NAMES

-#endif // DOCTEST_CONFIG_NO_SHORT_MACRO_NAMES

-

-// no guard for including the doctest header itself because it should support multiple inclusion

-#include "doctest.h"

-

-#ifndef MY_PROXY_MACROS

-#define MY_PROXY_MACROS

-

-#define my_testcase            DOCTEST_TEST_CASE

-#define my_testcase_fixture    DOCTEST_TEST_CASE_FIXTURE

-#define my_subcase             DOCTEST_SUBCASE

-#define my_testsuite           DOCTEST_TEST_SUITE

-#define my_testsuite_end       DOCTEST_TEST_SUITE_END

-#define my_warn                DOCTEST_WARN

-#define my_warn_false          DOCTEST_WARN_FALSE

-#define my_warn_throws         DOCTEST_WARN_THROWS

-#define my_warn_throws_as      DOCTEST_WARN_THROWS_AS

-#define my_warn_nothrow        DOCTEST_WARN_NOTHROW

-#define my_check               DOCTEST_CHECK

-#define my_check_false         DOCTEST_CHECK_FALSE

-#define my_check_throws        DOCTEST_CHECK_THROWS

-#define my_check_throws_as     DOCTEST_CHECK_THROWS_AS

-#define my_check_nothrow       DOCTEST_CHECK_NOTHROW

-#define my_require             DOCTEST_REQUIRE

-#define my_require_false       DOCTEST_REQUIRE_FALSE

-#define my_require_throws      DOCTEST_REQUIRE_THROWS

-#define my_require_throws_as   DOCTEST_REQUIRE_THROWS_AS

-#define my_require_nothrow     DOCTEST_REQUIRE_NOTHROW

-

-#define my_scenario DOCTEST_SCENARIO

-#define my_given DOCTEST_GIVEN

-#define my_when DOCTEST_WHEN

-#define my_and_when DOCTEST_AND_WHEN

-#define my_then DOCTEST_THEN

-#define my_and_then DOCTEST_AND_THEN

-

-#endif // MY_PROXY_MACROS

+#ifndef DOCTEST_CONFIG_NO_SHORT_MACRO_NAMES
+#define DOCTEST_CONFIG_NO_SHORT_MACRO_NAMES
+#endif // DOCTEST_CONFIG_NO_SHORT_MACRO_NAMES
+
+// no guard for including the doctest header itself because it should support multiple inclusion
+#include "doctest.h"
+
+#ifndef MY_PROXY_MACROS
+#define MY_PROXY_MACROS
+
+#define my_testcase            DOCTEST_TEST_CASE
+#define my_testcase_fixture    DOCTEST_TEST_CASE_FIXTURE
+#define my_subcase             DOCTEST_SUBCASE
+#define my_testsuite           DOCTEST_TEST_SUITE
+#define my_testsuite_end       DOCTEST_TEST_SUITE_END
+#define my_warn                DOCTEST_WARN
+#define my_warn_false          DOCTEST_WARN_FALSE
+#define my_warn_throws         DOCTEST_WARN_THROWS
+#define my_warn_throws_as      DOCTEST_WARN_THROWS_AS
+#define my_warn_nothrow        DOCTEST_WARN_NOTHROW
+#define my_check               DOCTEST_CHECK
+#define my_check_false         DOCTEST_CHECK_FALSE
+#define my_check_throws        DOCTEST_CHECK_THROWS
+#define my_check_throws_as     DOCTEST_CHECK_THROWS_AS
+#define my_check_nothrow       DOCTEST_CHECK_NOTHROW
+#define my_require             DOCTEST_REQUIRE
+#define my_require_false       DOCTEST_REQUIRE_FALSE
+#define my_require_throws      DOCTEST_REQUIRE_THROWS
+#define my_require_throws_as   DOCTEST_REQUIRE_THROWS_AS
+#define my_require_nothrow     DOCTEST_REQUIRE_NOTHROW
+
+#define my_scenario DOCTEST_SCENARIO
+#define my_given DOCTEST_GIVEN
+#define my_when DOCTEST_WHEN
+#define my_and_when DOCTEST_AND_WHEN
+#define my_then DOCTEST_THEN
+#define my_and_then DOCTEST_AND_THEN
+
+#endif // MY_PROXY_MACROS
diff --git a/examples/alternative_macros/main.cpp b/examples/alternative_macros/main.cpp
index 20cf249..9017111 100644
--- a/examples/alternative_macros/main.cpp
+++ b/examples/alternative_macros/main.cpp
@@ -1,19 +1,19 @@
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN

-#include "doctest_proxy.h"

-

-#include <cstdio>

-

-my_testcase("custom macros") {

-    printf("Hello world!\n");

-    

-    my_check(1 == 1);

-    

-    my_subcase("bar") {

-        my_subcase("foo") {}

-        my_subcase("baz") {}

-        

-        my_require(5 > 3);

-    }

-    

-    // CHECK(1 == 1); <== ERROR - the default short macros are disabled from the proxy header

-}

+#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
+#include "doctest_proxy.h"
+
+#include <cstdio>
+
+my_testcase("custom macros") {
+    printf("Hello world!\n");
+    
+    my_check(1 == 1);
+    
+    my_subcase("bar") {
+        my_subcase("foo") {}
+        my_subcase("baz") {}
+        
+        my_require(5 > 3);
+    }
+    
+    // CHECK(1 == 1); <== ERROR - the default short macros are disabled from the proxy header
+}
diff --git a/examples/assertion_macros/CMakeLists.txt b/examples/assertion_macros/CMakeLists.txt
index 5ce5ce1..5882f45 100644
--- a/examples/assertion_macros/CMakeLists.txt
+++ b/examples/assertion_macros/CMakeLists.txt
@@ -1,12 +1,12 @@
-cmake_minimum_required(VERSION 2.8)

-

-get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

-project(${PROJECT_NAME})

-

-include(../../scripts/common.cmake)

-

-include_directories("../../doctest/")

-

-add_executable(${PROJECT_NAME} main.cpp)

-

-add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)

+cmake_minimum_required(VERSION 2.8)
+
+get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+project(${PROJECT_NAME})
+
+include(../../scripts/common.cmake)
+
+include_directories("../../doctest/")
+
+add_executable(${PROJECT_NAME} main.cpp)
+
+add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
diff --git a/examples/assertion_macros/main.cpp b/examples/assertion_macros/main.cpp
index 08019ab..aea7691 100644
--- a/examples/assertion_macros/main.cpp
+++ b/examples/assertion_macros/main.cpp
@@ -1,48 +1,48 @@
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN

-#include "doctest.h"

-

-static int throws(bool in) {

-    if(in)

-        throw 5;

-    return 42;

-}

-

-using doctest::Approx;

-

-TEST_SUITE("meaningless macros");

-

-TEST_CASE("an empty test that will succeed") {}

-

-TEST_CASE("an empty test that will fail because of an exception") { throws(true); }

-

-TEST_SUITE_END();

-

-TEST_CASE("normal macros") {

-    int a = 5;

-    int b = 5;

-

-    CHECK(throws(true) == 42);

-

-    CHECK_FALSE(!(a == b));

-

-    REQUIRE(a == b);

-    //WARN(reinterpret_cast<void*>(1000) == reinterpret_cast<void*>(1004));

-

-    CHECK(Approx(0.1000001) == 0.1000002);

-    CHECK(Approx(0.502) == 0.501);

-

-    const char* c_string = "test_test";

-

-    CHECK(c_string == "test_test");

-

-    throws(true);

-}

-

-TEST_CASE("exceptions-related macros") {

-    CHECK_THROWS(throws(false));

-    CHECK_THROWS_AS(throws(false), int);

-    CHECK_THROWS_AS(throws(true), int);

-    CHECK_THROWS_AS(throws(true), char);

-

-    REQUIRE_NOTHROW(throws(true));

-}

+#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
+#include "doctest.h"
+
+static int throws(bool in) {
+    if(in)
+        throw 5;
+    return 42;
+}
+
+using doctest::Approx;
+
+TEST_SUITE("meaningless macros");
+
+TEST_CASE("an empty test that will succeed") {}
+
+TEST_CASE("an empty test that will fail because of an exception") { throws(true); }
+
+TEST_SUITE_END();
+
+TEST_CASE("normal macros") {
+    int a = 5;
+    int b = 5;
+
+    CHECK(throws(true) == 42);
+
+    CHECK_FALSE(!(a == b));
+
+    REQUIRE(a == b);
+    //WARN(reinterpret_cast<void*>(1000) == reinterpret_cast<void*>(1004));
+
+    CHECK(Approx(0.1000001) == 0.1000002);
+    CHECK(Approx(0.502) == 0.501);
+
+    const char* c_string = "test_test";
+
+    CHECK(c_string == "test_test");
+
+    throws(true);
+}
+
+TEST_CASE("exceptions-related macros") {
+    CHECK_THROWS(throws(false));
+    CHECK_THROWS_AS(throws(false), int);
+    CHECK_THROWS_AS(throws(true), int);
+    CHECK_THROWS_AS(throws(true), char);
+
+    REQUIRE_NOTHROW(throws(true));
+}
diff --git a/examples/disabled/CMakeLists.txt b/examples/disabled/CMakeLists.txt
index 219a9e9..77efa4c 100644
--- a/examples/disabled/CMakeLists.txt
+++ b/examples/disabled/CMakeLists.txt
@@ -1,12 +1,12 @@
-cmake_minimum_required(VERSION 2.8)

-

-get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

-project(${PROJECT_NAME})

-

-include(../../scripts/common.cmake)

-

-include_directories("../../doctest/")

-

-add_executable(${PROJECT_NAME} main.cpp test.cpp)

-

-add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)

+cmake_minimum_required(VERSION 2.8)
+
+get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+project(${PROJECT_NAME})
+
+include(../../scripts/common.cmake)
+
+include_directories("../../doctest/")
+
+add_executable(${PROJECT_NAME} main.cpp test.cpp)
+
+add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
diff --git a/examples/disabled/main.cpp b/examples/disabled/main.cpp
index 94a8f68..b3064b1 100644
--- a/examples/disabled/main.cpp
+++ b/examples/disabled/main.cpp
@@ -1,24 +1,24 @@
-#define DOCTEST_CONFIG_DISABLE

-

-#define DOCTEST_CONFIG_IMPLEMENT

-#include "doctest.h"

-

-int main(int argc, char** argv) {

-    doctest::Context context(argc, argv); // initialize

-

-    // overrides

-    context.addFilter("test-case-exclude", "*math*"); // exclude test cases with "math" in the name

-    context.setOption("no-breaks", true); // don't break in the debugger when assertions fail

-    context.setOption("abort-after", 5);  // stop test execution after 5 failed assertions

-    context.setOption("sort", "name");    // sort the test cases by their name

-

-    int res = context.run(); // run

-

-    if(context.shouldExit()) // important - query flags (and --no-run) rely on the user doing this

-        return res;          // propagate the result of the tests

-

-    int client_stuff_return_code = 0;

-    // your program - if the testing framework is integrated in your production code

-

-    return res + client_stuff_return_code;

-}

+#define DOCTEST_CONFIG_DISABLE
+
+#define DOCTEST_CONFIG_IMPLEMENT
+#include "doctest.h"
+
+int main(int argc, char** argv) {
+    doctest::Context context(argc, argv); // initialize
+
+    // overrides
+    context.addFilter("test-case-exclude", "*math*"); // exclude test cases with "math" in the name
+    context.setOption("no-breaks", true); // don't break in the debugger when assertions fail
+    context.setOption("abort-after", 5);  // stop test execution after 5 failed assertions
+    context.setOption("sort", "name");    // sort the test cases by their name
+
+    int res = context.run(); // run
+
+    if(context.shouldExit()) // important - query flags (and --no-run) rely on the user doing this
+        return res;          // propagate the result of the tests
+
+    int client_stuff_return_code = 0;
+    // your program - if the testing framework is integrated in your production code
+
+    return res + client_stuff_return_code;
+}
diff --git a/examples/disabled/test.cpp b/examples/disabled/test.cpp
index edc7177..673df06 100644
--- a/examples/disabled/test.cpp
+++ b/examples/disabled/test.cpp
@@ -1,74 +1,74 @@
-#define DOCTEST_CONFIG_DISABLE

-

-#include "doctest.h"

-

-#ifdef _MSC_VER

-#pragma warning(disable : 4505) // unreferenced local functions being removed

-#endif                          // _MSC_VER

-

-#ifdef __clang__

-#pragma clang diagnostic ignored "-Wunneeded-internal-declaration"

-#endif // __clang__

-

-using doctest::Approx;

-

-static int throws(bool in) {

-    if(in)

-        throw "whops!";

-    return 42;

-}

-

-TEST_SUITE("the testsuite!");

-

-#define DO_STUFF()                                                                                 \

-    CHECK(1 == 0);                                                                                 \

-    CHECK_FALSE(1 == 0);                                                                           \

-    CHECK(Approx(0.502) == 0.501);                                                                 \

-    CHECK(1 == 1);                                                                                 \

-    REQUIRE(1 == 1);                                                                               \

-    CHECK_FALSE(0);                                                                                \

-    REQUIRE_FALSE(0);                                                                              \

-    CHECK_THROWS(throws());                                                                        \

-    REQUIRE_THROWS(throws());                                                                      \

-    CHECK_THROWS_AS(throws(), int);                                                                \

-    REQUIRE_THROWS_AS(throws(), char);                                                             \

-    CHECK_NOTHROW(nothrows());                                                                     \

-    REQUIRE_NOTHROW(nothrows());                                                                   \

-    SUBCASE("") {}

-

-// in a separate function because the TEST_CASE() macro will expand to an uninstantiated template

-// and we want to ensure this code is parsed (MSVC will not if it is in an uninstantiated template)

-static void f() { DO_STUFF(); }

-

-TEST_CASE("ops") {

-    f();

-

-    throws(false);

-

-    DO_STUFF();

-}

-

-TEST_SUITE_END();

-

-// to silence GCC warnings when inheriting from the class TheFixture which has no virtual destructor

-#if defined(__GNUC__) && !defined(__clang__)

-#pragma GCC diagnostic ignored "-Weffc++"

-#endif // __GNUC__

-

-struct TheFixture

-{

-    int data;

-    TheFixture()

-            : data(42) {

-        // setup here

-    }

-

-    ~TheFixture() {

-        // teardown here

-    }

-};

-

-TEST_CASE_FIXTURE(TheFixture, "test with a fixture - 1") {

-    data /= 2;

-    CHECK(data == 21);

-}

+#define DOCTEST_CONFIG_DISABLE
+
+#include "doctest.h"
+
+#ifdef _MSC_VER
+#pragma warning(disable : 4505) // unreferenced local functions being removed
+#endif                          // _MSC_VER
+
+#ifdef __clang__
+#pragma clang diagnostic ignored "-Wunneeded-internal-declaration"
+#endif // __clang__
+
+using doctest::Approx;
+
+static int throws(bool in) {
+    if(in)
+        throw "whops!";
+    return 42;
+}
+
+TEST_SUITE("the testsuite!");
+
+#define DO_STUFF()                                                                                 \
+    CHECK(1 == 0);                                                                                 \
+    CHECK_FALSE(1 == 0);                                                                           \
+    CHECK(Approx(0.502) == 0.501);                                                                 \
+    CHECK(1 == 1);                                                                                 \
+    REQUIRE(1 == 1);                                                                               \
+    CHECK_FALSE(0);                                                                                \
+    REQUIRE_FALSE(0);                                                                              \
+    CHECK_THROWS(throws());                                                                        \
+    REQUIRE_THROWS(throws());                                                                      \
+    CHECK_THROWS_AS(throws(), int);                                                                \
+    REQUIRE_THROWS_AS(throws(), char);                                                             \
+    CHECK_NOTHROW(nothrows());                                                                     \
+    REQUIRE_NOTHROW(nothrows());                                                                   \
+    SUBCASE("") {}
+
+// in a separate function because the TEST_CASE() macro will expand to an uninstantiated template
+// and we want to ensure this code is parsed (MSVC will not if it is in an uninstantiated template)
+static void f() { DO_STUFF(); }
+
+TEST_CASE("ops") {
+    f();
+
+    throws(false);
+
+    DO_STUFF();
+}
+
+TEST_SUITE_END();
+
+// to silence GCC warnings when inheriting from the class TheFixture which has no virtual destructor
+#if defined(__GNUC__) && !defined(__clang__)
+#pragma GCC diagnostic ignored "-Weffc++"
+#endif // __GNUC__
+
+struct TheFixture
+{
+    int data;
+    TheFixture()
+            : data(42) {
+        // setup here
+    }
+
+    ~TheFixture() {
+        // teardown here
+    }
+};
+
+TEST_CASE_FIXTURE(TheFixture, "test with a fixture - 1") {
+    data /= 2;
+    CHECK(data == 21);
+}
diff --git a/examples/dll_and_executable/CMakeLists.txt b/examples/dll_and_executable/CMakeLists.txt
index d5de538..c2c5bff 100644
--- a/examples/dll_and_executable/CMakeLists.txt
+++ b/examples/dll_and_executable/CMakeLists.txt
@@ -1,21 +1,21 @@
-cmake_minimum_required(VERSION 2.8)

-

-get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

-project(${PROJECT_NAME})

-

-include(../../scripts/common.cmake)

-

-if(DEFINED ENV{TRAVIS} AND APPLE)

-    set(CMAKE_MACOSX_RPATH ON)

-    # force 64 bit for OSX because -m32 fails >>> SOMETIMES <<< (x86_64 vs 386 - like the dll is not linked with -m32...)

-    add_compiler_flags(-m64)

-endif()

-

-include_directories("../../doctest/")

-

-add_library(dll SHARED dll.cpp)

-

-add_executable(${PROJECT_NAME} main.cpp)

-target_link_libraries(${PROJECT_NAME} dll)

-

-add_test(NO_OUTPUT NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)

+cmake_minimum_required(VERSION 2.8)
+
+get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+project(${PROJECT_NAME})
+
+include(../../scripts/common.cmake)
+
+if(DEFINED ENV{TRAVIS} AND APPLE)
+    set(CMAKE_MACOSX_RPATH ON)
+    # force 64 bit for OSX because -m32 fails >>> SOMETIMES <<< (x86_64 vs 386 - like the dll is not linked with -m32...)
+    add_compiler_flags(-m64)
+endif()
+
+include_directories("../../doctest/")
+
+add_library(dll SHARED dll.cpp)
+
+add_executable(${PROJECT_NAME} main.cpp)
+target_link_libraries(${PROJECT_NAME} dll)
+
+add_test(NO_OUTPUT NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
diff --git a/examples/dll_and_executable/common.h b/examples/dll_and_executable/common.h
index 0d90176..5c15ed4 100644
--- a/examples/dll_and_executable/common.h
+++ b/examples/dll_and_executable/common.h
@@ -1,39 +1,39 @@
-#pragma once

-

-// taken from https://gcc.gnu.org/wiki/Visibility

-#if defined _WIN32 || defined __CYGWIN__

-  #ifdef BUILDING_DLL

-    #ifdef __GNUC__

-      #define DLL_PUBLIC __attribute__ ((dllexport))

-    #else

-      #define DLL_PUBLIC __declspec(dllexport)

-    #endif

-  #else

-    #ifdef __GNUC__

-      #define DLL_PUBLIC __attribute__ ((dllimport))

-    #else

-      #define DLL_PUBLIC __declspec(dllimport)

-    #endif

-  #endif

-#else

-  #ifdef BUILDING_DLL

-    #if __GNUC__ >= 4

-      #define DLL_PUBLIC __attribute__ ((visibility ("default")))

-    #else

-      #define DLL_PUBLIC

-    #endif

-  #else

-    #define DLL_PUBLIC

-  #endif

-#endif

-

-#define DOCTEST_CONFIG_IMPLEMENT

-#include "doctest.h"

-

-#include <cstdio>

-

-TEST_CASE("shared") {

-    printf("I am a test in a header used by the executable and the dll!\n");

-}

-

-DLL_PUBLIC int call_tests_from_dll(int argc, char** argv);

+#pragma once
+
+// taken from https://gcc.gnu.org/wiki/Visibility
+#if defined _WIN32 || defined __CYGWIN__
+  #ifdef BUILDING_DLL
+    #ifdef __GNUC__
+      #define DLL_PUBLIC __attribute__ ((dllexport))
+    #else
+      #define DLL_PUBLIC __declspec(dllexport)
+    #endif
+  #else
+    #ifdef __GNUC__
+      #define DLL_PUBLIC __attribute__ ((dllimport))
+    #else
+      #define DLL_PUBLIC __declspec(dllimport)
+    #endif
+  #endif
+#else
+  #ifdef BUILDING_DLL
+    #if __GNUC__ >= 4
+      #define DLL_PUBLIC __attribute__ ((visibility ("default")))
+    #else
+      #define DLL_PUBLIC
+    #endif
+  #else
+    #define DLL_PUBLIC
+  #endif
+#endif
+
+#define DOCTEST_CONFIG_IMPLEMENT
+#include "doctest.h"
+
+#include <cstdio>
+
+TEST_CASE("shared") {
+    printf("I am a test in a header used by the executable and the dll!\n");
+}
+
+DLL_PUBLIC int call_tests_from_dll(int argc, char** argv);
diff --git a/examples/dll_and_executable/dll.cpp b/examples/dll_and_executable/dll.cpp
index 937a67a..f7b88a5 100644
--- a/examples/dll_and_executable/dll.cpp
+++ b/examples/dll_and_executable/dll.cpp
@@ -1,11 +1,11 @@
-#define BUILDING_DLL

-#include "common.h"

-

-TEST_CASE("dll") {

-    printf("I am a test from the dll!\n");

-}

-

-DLL_PUBLIC int call_tests_from_dll(int argc, char** argv) {

-    doctest::Context context(argc, argv);

-    return context.run();

-}

+#define BUILDING_DLL
+#include "common.h"
+
+TEST_CASE("dll") {
+    printf("I am a test from the dll!\n");
+}
+
+DLL_PUBLIC int call_tests_from_dll(int argc, char** argv) {
+    doctest::Context context(argc, argv);
+    return context.run();
+}
diff --git a/examples/dll_and_executable/main.cpp b/examples/dll_and_executable/main.cpp
index 1d2d6e2..c0d7659 100644
--- a/examples/dll_and_executable/main.cpp
+++ b/examples/dll_and_executable/main.cpp
@@ -1,14 +1,14 @@
-#include "common.h"

-

-TEST_CASE("executable") {

-    printf("I am a test from the executable!\n");

-}

-

-int main(int argc, char** argv) {

-    doctest::Context context(argc, argv);

-    int res = context.run();

-    

-    res += call_tests_from_dll(argc, argv);

-

-    return res;

-}

+#include "common.h"
+
+TEST_CASE("executable") {
+    printf("I am a test from the executable!\n");
+}
+
+int main(int argc, char** argv) {
+    doctest::Context context(argc, argv);
+    int res = context.run();
+    
+    res += call_tests_from_dll(argc, argv);
+
+    return res;
+}
diff --git a/examples/hello_world/CMakeLists.txt b/examples/hello_world/CMakeLists.txt
index 5ce5ce1..5882f45 100644
--- a/examples/hello_world/CMakeLists.txt
+++ b/examples/hello_world/CMakeLists.txt
@@ -1,12 +1,12 @@
-cmake_minimum_required(VERSION 2.8)

-

-get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

-project(${PROJECT_NAME})

-

-include(../../scripts/common.cmake)

-

-include_directories("../../doctest/")

-

-add_executable(${PROJECT_NAME} main.cpp)

-

-add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)

+cmake_minimum_required(VERSION 2.8)
+
+get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+project(${PROJECT_NAME})
+
+include(../../scripts/common.cmake)
+
+include_directories("../../doctest/")
+
+add_executable(${PROJECT_NAME} main.cpp)
+
+add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
diff --git a/examples/hello_world/main.cpp b/examples/hello_world/main.cpp
index 53fbc71..496e709 100644
--- a/examples/hello_world/main.cpp
+++ b/examples/hello_world/main.cpp
@@ -1,12 +1,12 @@
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN

-#include "doctest.h"

-

-static int factorial(int number) { return number <= 1 ? number : factorial(number - 1) * number; }

-

-TEST_CASE("testing the factorial function") {

-    CHECK(factorial(0) == 1);

-    CHECK(factorial(1) == 1);

-    CHECK(factorial(2) == 2);

-    CHECK(factorial(3) == 6);

-    CHECK(factorial(10) == 3628800);

-}

+#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
+#include "doctest.h"
+
+static int factorial(int number) { return number <= 1 ? number : factorial(number - 1) * number; }
+
+TEST_CASE("testing the factorial function") {
+    CHECK(factorial(0) == 1);
+    CHECK(factorial(1) == 1);
+    CHECK(factorial(2) == 2);
+    CHECK(factorial(3) == 6);
+    CHECK(factorial(10) == 3628800);
+}
diff --git a/examples/multi_file_example/CMakeLists.txt b/examples/multi_file_example/CMakeLists.txt
index 62a9250..d4e995a 100644
--- a/examples/multi_file_example/CMakeLists.txt
+++ b/examples/multi_file_example/CMakeLists.txt
@@ -1,12 +1,12 @@
-cmake_minimum_required(VERSION 2.8)

-

-get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

-project(${PROJECT_NAME})

-

-include(../../scripts/common.cmake)

-

-include_directories("../../doctest/")

-

-add_executable(${PROJECT_NAME} main.cpp f1.cpp f2.cpp hdr.h)

-

-add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)

+cmake_minimum_required(VERSION 2.8)
+
+get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+project(${PROJECT_NAME})
+
+include(../../scripts/common.cmake)
+
+include_directories("../../doctest/")
+
+add_executable(${PROJECT_NAME} main.cpp f1.cpp f2.cpp hdr.h)
+
+add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
diff --git a/examples/multi_file_example/f1.cpp b/examples/multi_file_example/f1.cpp
index 8316388..e716418 100644
--- a/examples/multi_file_example/f1.cpp
+++ b/examples/multi_file_example/f1.cpp
@@ -1 +1 @@
-#include "doctest.h"

+#include "doctest.h"
diff --git a/examples/multi_file_example/f2.cpp b/examples/multi_file_example/f2.cpp
index 8316388..e716418 100644
--- a/examples/multi_file_example/f2.cpp
+++ b/examples/multi_file_example/f2.cpp
@@ -1 +1 @@
-#include "doctest.h"

+#include "doctest.h"
diff --git a/examples/multi_file_example/hdr.h b/examples/multi_file_example/hdr.h
index 3ab6e3d..23c5c88 100644
--- a/examples/multi_file_example/hdr.h
+++ b/examples/multi_file_example/hdr.h
@@ -1,5 +1,5 @@
-#pragma once

-

-#include "doctest.h"

-

-

+#pragma once
+
+#include "doctest.h"
+
+
diff --git a/examples/multi_file_example/main.cpp b/examples/multi_file_example/main.cpp
index 6566adf..300c632 100644
--- a/examples/multi_file_example/main.cpp
+++ b/examples/multi_file_example/main.cpp
@@ -1,22 +1,22 @@
-#define DOCTEST_CONFIG_IMPLEMENT

-#include "doctest.h"

-

-int main(int argc, char** argv) {

-    doctest::Context context(argc, argv); // initialize

-

-    // overrides

-    context.addFilter("test-case-exclude", "*math*"); // exclude test cases with "math" in their name

-    context.setOption("no-breaks", true);             // don't break in the debugger when assertions fail 

-    context.setOption("abort-after", 5);              // stop test execution after 5 failed assertions 

-    context.setOption("sort", "name");                // sort the test cases by their name

-

-    int res = context.run(); // run

-

-    if(context.shouldExit()) // important - query flags (and --no-run) rely on the user doing this

-        return res;          // propagate the result of the tests

-

-    int client_stuff_return_code = 0;

-    // your program - if the testing framework is integrated in your production code

-

-    return res + client_stuff_return_code;

-}

+#define DOCTEST_CONFIG_IMPLEMENT
+#include "doctest.h"
+
+int main(int argc, char** argv) {
+    doctest::Context context(argc, argv); // initialize
+
+    // overrides
+    context.addFilter("test-case-exclude", "*math*"); // exclude test cases with "math" in their name
+    context.setOption("no-breaks", true);             // don't break in the debugger when assertions fail 
+    context.setOption("abort-after", 5);              // stop test execution after 5 failed assertions 
+    context.setOption("sort", "name");                // sort the test cases by their name
+
+    int res = context.run(); // run
+
+    if(context.shouldExit()) // important - query flags (and --no-run) rely on the user doing this
+        return res;          // propagate the result of the tests
+
+    int client_stuff_return_code = 0;
+    // your program - if the testing framework is integrated in your production code
+
+    return res + client_stuff_return_code;
+}
diff --git a/examples/range_based_execution/CMakeLists.txt b/examples/range_based_execution/CMakeLists.txt
index 8304f37..10f41c5 100644
--- a/examples/range_based_execution/CMakeLists.txt
+++ b/examples/range_based_execution/CMakeLists.txt
@@ -1,12 +1,12 @@
-cmake_minimum_required(VERSION 2.8)

-

-get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

-project(${PROJECT_NAME})

-

-include(../../scripts/common.cmake)

-

-include_directories("../../doctest/")

-

-add_executable(${PROJECT_NAME} main.cpp)

-

-add_test(NO_VALGRIND NO_OUTPUT NAME ${PROJECT_NAME}_1 COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/run.py $<TARGET_FILE:${PROJECT_NAME}>)

+cmake_minimum_required(VERSION 2.8)
+
+get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+project(${PROJECT_NAME})
+
+include(../../scripts/common.cmake)
+
+include_directories("../../doctest/")
+
+add_executable(${PROJECT_NAME} main.cpp)
+
+add_test(NO_VALGRIND NO_OUTPUT NAME ${PROJECT_NAME}_1 COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/run.py $<TARGET_FILE:${PROJECT_NAME}>)
diff --git a/examples/range_based_execution/main.cpp b/examples/range_based_execution/main.cpp
index 8c0acf4..bd9df22 100644
--- a/examples/range_based_execution/main.cpp
+++ b/examples/range_based_execution/main.cpp
@@ -1,114 +1,114 @@
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN

-#include "doctest.h"

-

-#include <cstdio>

-

-static void sleeper(int line) {

-#ifdef NDEBUG

-    for(int i = 0; i < 50000000; i++) ((void)0);

-#else

-    for(int i = 0; i < 10000000; i++) ((void)0);

-#endif

-    printf("hello from test case %d!\n", line);

-}

-

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

-TEST_CASE("") { sleeper(__LINE__ - 14); }

+#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
+#include "doctest.h"
+
+#include <cstdio>
+
+static void sleeper(int line) {
+#ifdef NDEBUG
+    for(int i = 0; i < 50000000; i++) ((void)0);
+#else
+    for(int i = 0; i < 10000000; i++) ((void)0);
+#endif
+    printf("hello from test case %d!\n", line);
+}
+
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
+TEST_CASE("") { sleeper(__LINE__ - 14); }
diff --git a/examples/stringification/CMakeLists.txt b/examples/stringification/CMakeLists.txt
index 5ce5ce1..5882f45 100644
--- a/examples/stringification/CMakeLists.txt
+++ b/examples/stringification/CMakeLists.txt
@@ -1,12 +1,12 @@
-cmake_minimum_required(VERSION 2.8)

-

-get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

-project(${PROJECT_NAME})

-

-include(../../scripts/common.cmake)

-

-include_directories("../../doctest/")

-

-add_executable(${PROJECT_NAME} main.cpp)

-

-add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)

+cmake_minimum_required(VERSION 2.8)
+
+get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+project(${PROJECT_NAME})
+
+include(../../scripts/common.cmake)
+
+include_directories("../../doctest/")
+
+add_executable(${PROJECT_NAME} main.cpp)
+
+add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
diff --git a/examples/stringification/main.cpp b/examples/stringification/main.cpp
index 82ff2ee..a217ac1 100644
--- a/examples/stringification/main.cpp
+++ b/examples/stringification/main.cpp
@@ -1,127 +1,127 @@
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN

-#include "doctest.h"

-

-#include <string>

-#include <vector>

-#include <list>

-

-#include <sstream>

-

-// the standard forbids writing in the std namespace but it works on all compilers

-namespace std

-{

-template <typename T>

-ostream& operator<<(ostream& stream, const vector<T>& in) {

-    stream << "[";

-    for(size_t i = 0; i < in.size(); ++i)

-        if(i < in.size() - 1)

-            stream << in[i] << ", ";

-        else

-            stream << in[i];

-    stream << "]";

-    return stream;

-}

-}

-

-// as an alternative you may write a specialization of doctest::StringMaker

-namespace doctest

-{

-template <typename T>

-struct StringMaker<std::list<T> >

-{

-    static String convert(const std::list<T>& in) {

-        std::ostringstream oss;

-

-        oss << "[";

-        for(typename std::list<T>::const_iterator it = in.begin(); it != in.end(); ++it)

-            oss << *it << ", ";

-        oss << "]";

-

-        return oss.str().c_str();

-    }

-};

-}

-

-// to silence GCC warnings when inheriting from the class MyType which has no virtual destructor

-#if defined(__GNUC__) && !defined(__clang__)

-#pragma GCC diagnostic ignored "-Weffc++"

-#endif // __GNUC__

-

-template <typename T, typename K>

-struct MyType

-{

-    T one;

-    K two;

-};

-

-template <typename T>

-struct MyTypeInherited : MyType<T, float>

-{};

-

-template <typename T, typename K>

-bool operator==(const MyType<T, K>& lhs, const MyType<T, K>& rhs) {

-    return lhs.one == rhs.one && lhs.two == rhs.two;

-}

-

-template <typename T, typename K>

-std::ostream& operator<<(std::ostream& stream, const MyType<T, K>& in) {

-    stream << "[" << in.one << ", " << in.two << "]";

-    return stream;

-}

-

-struct Foo

-{};

-

-static bool operator==(const Foo&, const Foo&) { return false; }

-

-// as a third option you may specialize the doctest::toString() template function

-namespace doctest

-{

-template <>

-String toString(const Foo&) {

-    return "Foo{}";

-}

-}

-

-TEST_CASE("the only test") {

-    MyTypeInherited<int> bla1;

-    bla1.one = 5;

-    bla1.two = 4.0f;

-    MyTypeInherited<int> bla2;

-    bla2.one = 5;

-    bla2.two = 6.0f;

-

-    Foo f1;

-    Foo f2;

-    CHECK(f1 == f2);

-

-    // std::string already has an operator<< working with std::ostream

-    std::string dummy1 = "omg";

-    std::string dummy2 = "tralala";

-

-    CHECK(dummy1 == dummy2);

-

-    std::vector<int> vec1;

-    vec1.push_back(1);

-    vec1.push_back(2);

-    vec1.push_back(3);

-

-    std::vector<int> vec2;

-    vec2.push_back(1);

-    vec2.push_back(2);

-    vec2.push_back(4);

-

-    CHECK(vec1 == vec2);

-

-    std::list<int> lst_1;

-    lst_1.push_back(1);

-    lst_1.push_back(42);

-    lst_1.push_back(3);

-

-    std::list<int> lst_2;

-    lst_2.push_back(1);

-    lst_2.push_back(2);

-    lst_2.push_back(666);

-

-    CHECK(lst_1 == lst_2);

-}

+#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
+#include "doctest.h"
+
+#include <string>
+#include <vector>
+#include <list>
+
+#include <sstream>
+
+// the standard forbids writing in the std namespace but it works on all compilers
+namespace std
+{
+template <typename T>
+ostream& operator<<(ostream& stream, const vector<T>& in) {
+    stream << "[";
+    for(size_t i = 0; i < in.size(); ++i)
+        if(i < in.size() - 1)
+            stream << in[i] << ", ";
+        else
+            stream << in[i];
+    stream << "]";
+    return stream;
+}
+}
+
+// as an alternative you may write a specialization of doctest::StringMaker
+namespace doctest
+{
+template <typename T>
+struct StringMaker<std::list<T> >
+{
+    static String convert(const std::list<T>& in) {
+        std::ostringstream oss;
+
+        oss << "[";
+        for(typename std::list<T>::const_iterator it = in.begin(); it != in.end(); ++it)
+            oss << *it << ", ";
+        oss << "]";
+
+        return oss.str().c_str();
+    }
+};
+}
+
+// to silence GCC warnings when inheriting from the class MyType which has no virtual destructor
+#if defined(__GNUC__) && !defined(__clang__)
+#pragma GCC diagnostic ignored "-Weffc++"
+#endif // __GNUC__
+
+template <typename T, typename K>
+struct MyType
+{
+    T one;
+    K two;
+};
+
+template <typename T>
+struct MyTypeInherited : MyType<T, float>
+{};
+
+template <typename T, typename K>
+bool operator==(const MyType<T, K>& lhs, const MyType<T, K>& rhs) {
+    return lhs.one == rhs.one && lhs.two == rhs.two;
+}
+
+template <typename T, typename K>
+std::ostream& operator<<(std::ostream& stream, const MyType<T, K>& in) {
+    stream << "[" << in.one << ", " << in.two << "]";
+    return stream;
+}
+
+struct Foo
+{};
+
+static bool operator==(const Foo&, const Foo&) { return false; }
+
+// as a third option you may specialize the doctest::toString() template function
+namespace doctest
+{
+template <>
+String toString(const Foo&) {
+    return "Foo{}";
+}
+}
+
+TEST_CASE("the only test") {
+    MyTypeInherited<int> bla1;
+    bla1.one = 5;
+    bla1.two = 4.0f;
+    MyTypeInherited<int> bla2;
+    bla2.one = 5;
+    bla2.two = 6.0f;
+
+    Foo f1;
+    Foo f2;
+    CHECK(f1 == f2);
+
+    // std::string already has an operator<< working with std::ostream
+    std::string dummy1 = "omg";
+    std::string dummy2 = "tralala";
+
+    CHECK(dummy1 == dummy2);
+
+    std::vector<int> vec1;
+    vec1.push_back(1);
+    vec1.push_back(2);
+    vec1.push_back(3);
+
+    std::vector<int> vec2;
+    vec2.push_back(1);
+    vec2.push_back(2);
+    vec2.push_back(4);
+
+    CHECK(vec1 == vec2);
+
+    std::list<int> lst_1;
+    lst_1.push_back(1);
+    lst_1.push_back(42);
+    lst_1.push_back(3);
+
+    std::list<int> lst_2;
+    lst_2.push_back(1);
+    lst_2.push_back(2);
+    lst_2.push_back(666);
+
+    CHECK(lst_1 == lst_2);
+}
diff --git a/examples/subcases_and_bdd/CMakeLists.txt b/examples/subcases_and_bdd/CMakeLists.txt
index c9a6410..d301715 100644
--- a/examples/subcases_and_bdd/CMakeLists.txt
+++ b/examples/subcases_and_bdd/CMakeLists.txt
@@ -1,18 +1,18 @@
-cmake_minimum_required(VERSION 2.8)

-

-get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

-project(${PROJECT_NAME})

-

-include(../../scripts/common.cmake)

-

-include_directories("../../doctest/")

-

-add_executable(${PROJECT_NAME} main.cpp)

-

-if(DEFINED ENV{TRAVIS} AND APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.5)

-    # don't do tests for GCC 4.4 - the reference output will be different

-    # for some reason after an exception is thrown the program quits even though it should be caught

-    return()

-endif()

-

-add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)

+cmake_minimum_required(VERSION 2.8)
+
+get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+project(${PROJECT_NAME})
+
+include(../../scripts/common.cmake)
+
+include_directories("../../doctest/")
+
+add_executable(${PROJECT_NAME} main.cpp)
+
+if(DEFINED ENV{TRAVIS} AND APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.5)
+    # don't do tests for GCC 4.4 - the reference output will be different
+    # for some reason after an exception is thrown the program quits even though it should be caught
+    return()
+endif()
+
+add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
diff --git a/examples/subcases_and_bdd/main.cpp b/examples/subcases_and_bdd/main.cpp
index 837f99e..4a608f0 100644
--- a/examples/subcases_and_bdd/main.cpp
+++ b/examples/subcases_and_bdd/main.cpp
@@ -1,107 +1,107 @@
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN

-#include "doctest.h"

-

-#include <iostream>

-#include <vector>

-using namespace std;

-

-static int throws(bool in) {

-    if(in)

-        throw 5;

-    return 42;

-}

-

-TEST_CASE("lots of nested subcases") {

-    cout << endl << "root" << endl;

-    SUBCASE("") {

-        cout << "1" << endl;

-        SUBCASE("") { cout << "1.1" << endl; }

-    }

-    SUBCASE("") {

-        cout << "2" << endl;

-        SUBCASE("") { cout << "2.1" << endl; }

-        SUBCASE("") {

-            // whops! all the subcases below shouldn't be discovered and executed!

-            throws(true);

-

-            cout << "2.2" << endl;

-            SUBCASE("") {

-                cout << "2.2.1" << endl;

-                SUBCASE("") { cout << "2.2.1.1" << endl; }

-                SUBCASE("") { cout << "2.2.1.2" << endl; }

-            }

-        }

-        SUBCASE("") { cout << "2.3" << endl; }

-        SUBCASE("") { cout << "2.4" << endl; }

-    }

-}

-

-SCENARIO("vectors can be sized and resized") {

-    GIVEN("A vector with some items") {

-        std::vector<int> v(5);

-

-        REQUIRE(v.size() == 5u);

-        REQUIRE(v.capacity() >= 5u);

-

-        WHEN("the size is increased") {

-            v.resize(10u);

-

-            THEN("the size and capacity change") {

-                CHECK(v.size() == 20u);

-                CHECK(v.capacity() >= 10u);

-            }

-        }

-        WHEN("the size is reduced") {

-            v.resize(0);

-

-            THEN("the size changes but not capacity") {

-                CHECK(v.size() == 0u);

-                CHECK(v.capacity() >= 5u);

-            }

-        }

-        WHEN("more capacity is reserved") {

-            v.reserve(10);

-

-            THEN("the capacity changes but not the size") {

-                CHECK(v.size() == 5u);

-                CHECK(v.capacity() >= 10u);

-            }

-        }

-        WHEN("less capacity is reserved") {

-            v.reserve(0);

-

-            THEN("neither size nor capacity are changed") {

-                CHECK(v.size() == 10u);

-                CHECK(v.capacity() >= 5u);

-            }

-        }

-    }

-}

-

-// to silence GCC warnings when inheriting from the class TheFixture which has no virtual destructor

-#if defined(__GNUC__) && !defined(__clang__)

-#pragma GCC diagnostic ignored "-Weffc++"

-#endif // __GNUC__

-

-struct TheFixture

-{

-    int data;

-    TheFixture()

-            : data(42) {

-        // setup here

-    }

-

-    ~TheFixture() {

-        // teardown here

-    }

-};

-

-TEST_CASE_FIXTURE(TheFixture, "test with a fixture - 1") {

-    data /= 2;

-    CHECK(data == 21);

-}

-

-TEST_CASE_FIXTURE(TheFixture, "test with a fixture - 2") {

-    data *= 2;

-    CHECK(data == 85);

-}

+#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
+#include "doctest.h"
+
+#include <iostream>
+#include <vector>
+using namespace std;
+
+static int throws(bool in) {
+    if(in)
+        throw 5;
+    return 42;
+}
+
+TEST_CASE("lots of nested subcases") {
+    cout << endl << "root" << endl;
+    SUBCASE("") {
+        cout << "1" << endl;
+        SUBCASE("") { cout << "1.1" << endl; }
+    }
+    SUBCASE("") {
+        cout << "2" << endl;
+        SUBCASE("") { cout << "2.1" << endl; }
+        SUBCASE("") {
+            // whops! all the subcases below shouldn't be discovered and executed!
+            throws(true);
+
+            cout << "2.2" << endl;
+            SUBCASE("") {
+                cout << "2.2.1" << endl;
+                SUBCASE("") { cout << "2.2.1.1" << endl; }
+                SUBCASE("") { cout << "2.2.1.2" << endl; }
+            }
+        }
+        SUBCASE("") { cout << "2.3" << endl; }
+        SUBCASE("") { cout << "2.4" << endl; }
+    }
+}
+
+SCENARIO("vectors can be sized and resized") {
+    GIVEN("A vector with some items") {
+        std::vector<int> v(5);
+
+        REQUIRE(v.size() == 5u);
+        REQUIRE(v.capacity() >= 5u);
+
+        WHEN("the size is increased") {
+            v.resize(10u);
+
+            THEN("the size and capacity change") {
+                CHECK(v.size() == 20u);
+                CHECK(v.capacity() >= 10u);
+            }
+        }
+        WHEN("the size is reduced") {
+            v.resize(0);
+
+            THEN("the size changes but not capacity") {
+                CHECK(v.size() == 0u);
+                CHECK(v.capacity() >= 5u);
+            }
+        }
+        WHEN("more capacity is reserved") {
+            v.reserve(10);
+
+            THEN("the capacity changes but not the size") {
+                CHECK(v.size() == 5u);
+                CHECK(v.capacity() >= 10u);
+            }
+        }
+        WHEN("less capacity is reserved") {
+            v.reserve(0);
+
+            THEN("neither size nor capacity are changed") {
+                CHECK(v.size() == 10u);
+                CHECK(v.capacity() >= 5u);
+            }
+        }
+    }
+}
+
+// to silence GCC warnings when inheriting from the class TheFixture which has no virtual destructor
+#if defined(__GNUC__) && !defined(__clang__)
+#pragma GCC diagnostic ignored "-Weffc++"
+#endif // __GNUC__
+
+struct TheFixture
+{
+    int data;
+    TheFixture()
+            : data(42) {
+        // setup here
+    }
+
+    ~TheFixture() {
+        // teardown here
+    }
+};
+
+TEST_CASE_FIXTURE(TheFixture, "test with a fixture - 1") {
+    data /= 2;
+    CHECK(data == 21);
+}
+
+TEST_CASE_FIXTURE(TheFixture, "test with a fixture - 2") {
+    data *= 2;
+    CHECK(data == 85);
+}
diff --git a/examples/user_supplied_main/CMakeLists.txt b/examples/user_supplied_main/CMakeLists.txt
index 5ce5ce1..5882f45 100644
--- a/examples/user_supplied_main/CMakeLists.txt
+++ b/examples/user_supplied_main/CMakeLists.txt
@@ -1,12 +1,12 @@
-cmake_minimum_required(VERSION 2.8)

-

-get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

-project(${PROJECT_NAME})

-

-include(../../scripts/common.cmake)

-

-include_directories("../../doctest/")

-

-add_executable(${PROJECT_NAME} main.cpp)

-

-add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)

+cmake_minimum_required(VERSION 2.8)
+
+get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+project(${PROJECT_NAME})
+
+include(../../scripts/common.cmake)
+
+include_directories("../../doctest/")
+
+add_executable(${PROJECT_NAME} main.cpp)
+
+add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
diff --git a/examples/user_supplied_main/main.cpp b/examples/user_supplied_main/main.cpp
index ba5ec5e..f7232c6 100644
--- a/examples/user_supplied_main/main.cpp
+++ b/examples/user_supplied_main/main.cpp
@@ -1,34 +1,34 @@
-#define DOCTEST_CONFIG_IMPLEMENT

-#include "doctest.h"

-

-int main(int argc, char** argv) {

-    doctest::Context context(argc, argv); // initialize

-

-    // overrides

-    context.addFilter("test-case-exclude", "*math*"); // exclude test cases with "math" in the name

-    context.setOption("no-breaks", true); // don't break in the debugger when assertions fail

-    context.setOption("abort-after", 5);  // stop test execution after 5 failed assertions

-    context.setOption("sort", "name");    // sort the test cases by their name

-

-    int res = context.run(); // run

-

-    if(context.shouldExit()) // important - query flags (and --no-run) rely on the user doing this

-        return res;          // propagate the result of the tests

-

-    int client_stuff_return_code = 0;

-    // your program - if the testing framework is integrated in your production code

-

-    return res + client_stuff_return_code;

-}

-

-#include <string>

-

-TEST_CASE("[string] testing std::string") {

-    std::string a("omg");

-    CHECK(a == "omg");

-}

-

-TEST_CASE("[math] basic stuff") {

-    CHECK(6 > 5);

-    CHECK(6 > 7);

-}

+#define DOCTEST_CONFIG_IMPLEMENT
+#include "doctest.h"
+
+int main(int argc, char** argv) {
+    doctest::Context context(argc, argv); // initialize
+
+    // overrides
+    context.addFilter("test-case-exclude", "*math*"); // exclude test cases with "math" in the name
+    context.setOption("no-breaks", true); // don't break in the debugger when assertions fail
+    context.setOption("abort-after", 5);  // stop test execution after 5 failed assertions
+    context.setOption("sort", "name");    // sort the test cases by their name
+
+    int res = context.run(); // run
+
+    if(context.shouldExit()) // important - query flags (and --no-run) rely on the user doing this
+        return res;          // propagate the result of the tests
+
+    int client_stuff_return_code = 0;
+    // your program - if the testing framework is integrated in your production code
+
+    return res + client_stuff_return_code;
+}
+
+#include <string>
+
+TEST_CASE("[string] testing std::string") {
+    std::string a("omg");
+    CHECK(a == "omg");
+}
+
+TEST_CASE("[math] basic stuff") {
+    CHECK(6 > 5);
+    CHECK(6 > 7);
+}