Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTim Blechmann2024-01-10 17:42:46 +0800
committerMartin Hořeňovský2024-01-15 09:57:30 +0100
commit597ce12b6535be0e579a4bd08683fa1cebc5919e (patch)
treebedfa0ab42ac477f0a1317f1f41c2a4a7dfb6565 /src
parent05786fa7ec66c19fa4699b5d21be3557a1b4161b (diff)
downloadcatch3-597ce12b6535be0e579a4bd08683fa1cebc5919e.tar.gz
reporters: silence -Wsubobject-linkage
gcc emits `Wsubobject-linkage`, because the the publicly visible `TablePrinter` contains `ColumnInfo`, which is part of an anonymous namespace
Diffstat (limited to 'src')
-rw-r--r--src/catch2/reporters/catch_reporter_console.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/catch2/reporters/catch_reporter_console.cpp b/src/catch2/reporters/catch_reporter_console.cpp
index 81fc656f..f3b8b5b1 100644
--- a/src/catch2/reporters/catch_reporter_console.cpp
+++ b/src/catch2/reporters/catch_reporter_console.cpp
@@ -209,13 +209,6 @@ findMax( std::size_t& i, std::size_t& j, std::size_t& k, std::size_t& l ) {
return l;
}
-enum class Justification { Left, Right };
-
-struct ColumnInfo {
- std::string name;
- std::size_t width;
- Justification justification;
-};
struct ColumnBreak {};
struct RowBreak {};
struct OutputFlush {};
@@ -293,6 +286,14 @@ public:
};
} // end anon namespace
+enum class Justification { Left, Right };
+
+struct ColumnInfo {
+ std::string name;
+ std::size_t width;
+ Justification justification;
+};
+
class TablePrinter {
std::ostream& m_os;
std::vector<ColumnInfo> m_columnInfos;