From 9c167068355c65b602e525b2a873ffcc4ef5d3b6 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Tue, 14 Nov 2023 18:34:08 +0000 Subject: [PATCH] Updated syntax checks --- test/run-syntax-checks.sh | 1 + test/run-tests.sh | 1 + test/syntax_check/c++03/CMakeLists.txt | 1 - test/syntax_check/c++11/CMakeLists.txt | 1 - test/syntax_check/c++14/CMakeLists.txt | 1 - test/syntax_check/c++17/CMakeLists.txt | 1 - test/syntax_check/c++20/CMakeLists.txt | 1 - test/syntax_check/to_u8string.h.t.cpp | 29 ++++++++++++++++++++++++++ test/vs2022/etl.vcxproj | 14 +++++++++++++ test/vs2022/etl.vcxproj.filters | 3 +++ 10 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 test/syntax_check/to_u8string.h.t.cpp diff --git a/test/run-syntax-checks.sh b/test/run-syntax-checks.sh index 8975c98c..0acb9624 100644 --- a/test/run-syntax-checks.sh +++ b/test/run-syntax-checks.sh @@ -26,6 +26,7 @@ PrintHeader() echo "============================================================================" | tee -a log.txt echo " $testname " | tee -a log.txt echo " Language standard : C++$cxx_standard " | tee -a log.txt + echo -n " ETL version : " | cat - ../../../version.txt | tee -a log.txt echo "============================================================================" | tee -a log.txt echo "$NoColour" } diff --git a/test/run-tests.sh b/test/run-tests.sh index 6a6c8bd0..33bc1d8d 100644 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -36,6 +36,7 @@ PrintHeader() echo " $testname " | tee -a log.txt echo " Language standard : C++$cxx_standard " | tee -a log.txt echo " Optimisation : $opt " | tee -a log.txt + echo -n " ETL version : " | cat - ../../version.txt | tee -a log.txt echo "============================================================================" | tee -a log.txt echo "$NoColour" } diff --git a/test/syntax_check/c++03/CMakeLists.txt b/test/syntax_check/c++03/CMakeLists.txt index 3845a114..f17770db 100644 --- a/test/syntax_check/c++03/CMakeLists.txt +++ b/test/syntax_check/c++03/CMakeLists.txt @@ -280,7 +280,6 @@ target_sources(t98 PRIVATE etl_profile.h ../u32format_spec.h.t.cpp ../u32string.h.t.cpp ../u32string_stream.h.t.cpp - ../u8tring.h.t.cpp ../unaligned_type.h.t.cpp ../unordered_map.h.t.cpp ../unordered_multimap.h.t.cpp diff --git a/test/syntax_check/c++11/CMakeLists.txt b/test/syntax_check/c++11/CMakeLists.txt index 5b7e9e73..91939844 100644 --- a/test/syntax_check/c++11/CMakeLists.txt +++ b/test/syntax_check/c++11/CMakeLists.txt @@ -280,7 +280,6 @@ target_sources(t11 PRIVATE etl_profile.h ../u32format_spec.h.t.cpp ../u32string.h.t.cpp ../u32string_stream.h.t.cpp - ../u8tring.h.t.cpp ../unaligned_type.h.t.cpp ../unordered_map.h.t.cpp ../unordered_multimap.h.t.cpp diff --git a/test/syntax_check/c++14/CMakeLists.txt b/test/syntax_check/c++14/CMakeLists.txt index ec56d606..c95b44e9 100644 --- a/test/syntax_check/c++14/CMakeLists.txt +++ b/test/syntax_check/c++14/CMakeLists.txt @@ -280,7 +280,6 @@ target_sources(t14 PRIVATE etl_profile.h ../u32format_spec.h.t.cpp ../u32string.h.t.cpp ../u32string_stream.h.t.cpp - ../u8tring.h.t.cpp ../unaligned_type.h.t.cpp ../unordered_map.h.t.cpp ../unordered_multimap.h.t.cpp diff --git a/test/syntax_check/c++17/CMakeLists.txt b/test/syntax_check/c++17/CMakeLists.txt index c4776403..5e173f3f 100644 --- a/test/syntax_check/c++17/CMakeLists.txt +++ b/test/syntax_check/c++17/CMakeLists.txt @@ -280,7 +280,6 @@ target_sources(t17 PRIVATE etl_profile.h ../u32format_spec.h.t.cpp ../u32string.h.t.cpp ../u32string_stream.h.t.cpp - ../u8tring.h.t.cpp ../unaligned_type.h.t.cpp ../unordered_map.h.t.cpp ../unordered_multimap.h.t.cpp diff --git a/test/syntax_check/c++20/CMakeLists.txt b/test/syntax_check/c++20/CMakeLists.txt index ac005e03..857394da 100644 --- a/test/syntax_check/c++20/CMakeLists.txt +++ b/test/syntax_check/c++20/CMakeLists.txt @@ -280,7 +280,6 @@ target_sources(t20 PRIVATE etl_profile.h ../u32format_spec.h.t.cpp ../u32string.h.t.cpp ../u32string_stream.h.t.cpp - ../u8tring.h.t.cpp ../unaligned_type.h.t.cpp ../unordered_map.h.t.cpp ../unordered_multimap.h.t.cpp diff --git a/test/syntax_check/to_u8string.h.t.cpp b/test/syntax_check/to_u8string.h.t.cpp new file mode 100644 index 00000000..25029947 --- /dev/null +++ b/test/syntax_check/to_u8string.h.t.cpp @@ -0,0 +1,29 @@ +/****************************************************************************** +The MIT License(MIT) + +Embedded Template Library. +https://github.com/ETLCPP/etl +https://www.etlcpp.com + +Copyright(c) 2023 John Wellbelove + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files(the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +******************************************************************************/ + +#include diff --git a/test/vs2022/etl.vcxproj b/test/vs2022/etl.vcxproj index 1de173d6..344c29b6 100644 --- a/test/vs2022/etl.vcxproj +++ b/test/vs2022/etl.vcxproj @@ -6791,6 +6791,20 @@ true true + + true + true + true + true + true + true + true + true + true + true + true + true + true true diff --git a/test/vs2022/etl.vcxproj.filters b/test/vs2022/etl.vcxproj.filters index dc9db11f..9df46cef 100644 --- a/test/vs2022/etl.vcxproj.filters +++ b/test/vs2022/etl.vcxproj.filters @@ -3266,6 +3266,9 @@ Tests\Syntax Checks\Source + + Tests\Syntax Checks\Source +