From 54a7eb1aeddb5fca074266624d1501e854fb7e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 4 Apr 2020 21:53:23 +0200 Subject: [PATCH] Rename reporters to use .hpp suffix I want to standardize _all_ of Catch2 headers on the `.hpp` suffix. --- src/CMakeLists.txt | 10 +++++----- src/catch2/catch_interfaces_reporter.cpp | 1 - src/catch2/catch_reporter_registry.cpp | 8 ++++---- src/catch2/catch_session.cpp | 2 +- src/catch2/reporters/catch_reporter_compact.cpp | 2 +- ...h_reporter_compact.h => catch_reporter_compact.hpp} | 0 src/catch2/reporters/catch_reporter_console.cpp | 2 +- ...h_reporter_console.h => catch_reporter_console.hpp} | 0 src/catch2/reporters/catch_reporter_junit.cpp | 2 +- ...catch_reporter_junit.h => catch_reporter_junit.hpp} | 0 src/catch2/reporters/catch_reporter_listening.cpp | 2 +- ...porter_listening.h => catch_reporter_listening.hpp} | 0 src/catch2/reporters/catch_reporter_xml.cpp | 2 +- .../{catch_reporter_xml.h => catch_reporter_xml.hpp} | 0 14 files changed, 15 insertions(+), 16 deletions(-) rename src/catch2/reporters/{catch_reporter_compact.h => catch_reporter_compact.hpp} (100%) rename src/catch2/reporters/{catch_reporter_console.h => catch_reporter_console.hpp} (100%) rename src/catch2/reporters/{catch_reporter_junit.h => catch_reporter_junit.hpp} (100%) rename src/catch2/reporters/{catch_reporter_listening.h => catch_reporter_listening.hpp} (100%) rename src/catch2/reporters/{catch_reporter_xml.h => catch_reporter_xml.hpp} (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d9205d65..f06941cc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -204,14 +204,14 @@ CheckFileList(INTERNAL_FILES ${SOURCES_DIR}/internal) set(REPORTER_HEADERS ${SOURCES_DIR}/reporters/catch_reporter_automake.hpp ${SOURCES_DIR}/reporters/catch_reporter_bases.hpp - ${SOURCES_DIR}/reporters/catch_reporter_compact.h - ${SOURCES_DIR}/reporters/catch_reporter_console.h - ${SOURCES_DIR}/reporters/catch_reporter_junit.h - ${SOURCES_DIR}/reporters/catch_reporter_listening.h + ${SOURCES_DIR}/reporters/catch_reporter_compact.hpp + ${SOURCES_DIR}/reporters/catch_reporter_console.hpp + ${SOURCES_DIR}/reporters/catch_reporter_junit.hpp + ${SOURCES_DIR}/reporters/catch_reporter_listening.hpp ${SOURCES_DIR}/reporters/catch_reporter_sonarqube.hpp ${SOURCES_DIR}/reporters/catch_reporter_tap.hpp ${SOURCES_DIR}/reporters/catch_reporter_teamcity.hpp - ${SOURCES_DIR}/reporters/catch_reporter_xml.h + ${SOURCES_DIR}/reporters/catch_reporter_xml.hpp ) set(REPORTER_SOURCES ${SOURCES_DIR}/reporters/catch_reporter_automake.cpp diff --git a/src/catch2/catch_interfaces_reporter.cpp b/src/catch2/catch_interfaces_reporter.cpp index 4fa753c0..0072463e 100644 --- a/src/catch2/catch_interfaces_reporter.cpp +++ b/src/catch2/catch_interfaces_reporter.cpp @@ -7,7 +7,6 @@ #include #include -#include #include #include diff --git a/src/catch2/catch_reporter_registry.cpp b/src/catch2/catch_reporter_registry.cpp index 58ef5f4d..c7fb52ea 100644 --- a/src/catch2/catch_reporter_registry.cpp +++ b/src/catch2/catch_reporter_registry.cpp @@ -8,13 +8,13 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include #include -#include +#include namespace Catch { diff --git a/src/catch2/catch_session.cpp b/src/catch2/catch_session.cpp index c839eacf..01e4fd87 100644 --- a/src/catch2/catch_session.cpp +++ b/src/catch2/catch_session.cpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/catch2/reporters/catch_reporter_compact.cpp b/src/catch2/reporters/catch_reporter_compact.cpp index 13731e43..236af682 100644 --- a/src/catch2/reporters/catch_reporter_compact.cpp +++ b/src/catch2/reporters/catch_reporter_compact.cpp @@ -5,7 +5,7 @@ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include #include diff --git a/src/catch2/reporters/catch_reporter_compact.h b/src/catch2/reporters/catch_reporter_compact.hpp similarity index 100% rename from src/catch2/reporters/catch_reporter_compact.h rename to src/catch2/reporters/catch_reporter_compact.hpp diff --git a/src/catch2/reporters/catch_reporter_console.cpp b/src/catch2/reporters/catch_reporter_console.cpp index f7b924ae..9e5c7322 100644 --- a/src/catch2/reporters/catch_reporter_console.cpp +++ b/src/catch2/reporters/catch_reporter_console.cpp @@ -6,7 +6,7 @@ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include #include #include diff --git a/src/catch2/reporters/catch_reporter_console.h b/src/catch2/reporters/catch_reporter_console.hpp similarity index 100% rename from src/catch2/reporters/catch_reporter_console.h rename to src/catch2/reporters/catch_reporter_console.hpp diff --git a/src/catch2/reporters/catch_reporter_junit.cpp b/src/catch2/reporters/catch_reporter_junit.cpp index b7aec37e..49a6aa54 100644 --- a/src/catch2/reporters/catch_reporter_junit.cpp +++ b/src/catch2/reporters/catch_reporter_junit.cpp @@ -8,7 +8,7 @@ #include -#include +#include #include #include diff --git a/src/catch2/reporters/catch_reporter_junit.h b/src/catch2/reporters/catch_reporter_junit.hpp similarity index 100% rename from src/catch2/reporters/catch_reporter_junit.h rename to src/catch2/reporters/catch_reporter_junit.hpp diff --git a/src/catch2/reporters/catch_reporter_listening.cpp b/src/catch2/reporters/catch_reporter_listening.cpp index 08f30659..87aae74d 100644 --- a/src/catch2/reporters/catch_reporter_listening.cpp +++ b/src/catch2/reporters/catch_reporter_listening.cpp @@ -6,7 +6,7 @@ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ - #include + #include #include namespace Catch { diff --git a/src/catch2/reporters/catch_reporter_listening.h b/src/catch2/reporters/catch_reporter_listening.hpp similarity index 100% rename from src/catch2/reporters/catch_reporter_listening.h rename to src/catch2/reporters/catch_reporter_listening.hpp diff --git a/src/catch2/reporters/catch_reporter_xml.cpp b/src/catch2/reporters/catch_reporter_xml.cpp index b798b54f..f6274937 100644 --- a/src/catch2/reporters/catch_reporter_xml.cpp +++ b/src/catch2/reporters/catch_reporter_xml.cpp @@ -6,7 +6,7 @@ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include #include #include diff --git a/src/catch2/reporters/catch_reporter_xml.h b/src/catch2/reporters/catch_reporter_xml.hpp similarity index 100% rename from src/catch2/reporters/catch_reporter_xml.h rename to src/catch2/reporters/catch_reporter_xml.hpp