From 109ba9350d8225bbb29a7926531d61316390eccc Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 15 Aug 2025 19:26:18 +0100 Subject: [PATCH] Updated syntax check tests --- test/syntax_check/CMakeLists.txt | 4 ++ test/syntax_check/crc16_opensafety_a.h.t.cpp | 29 ++++++++ test/syntax_check/crc16_opensafety_b.h.t.cpp | 29 ++++++++ test/syntax_check/crc8_opensafety.h.t.cpp | 29 ++++++++ test/syntax_check/delegate_observable.h.t.cpp | 28 ++++++++ test/vs2022/etl.vcxproj | 72 +++++++++++++++++++ 6 files changed, 191 insertions(+) create mode 100644 test/syntax_check/crc16_opensafety_a.h.t.cpp create mode 100644 test/syntax_check/crc16_opensafety_b.h.t.cpp create mode 100644 test/syntax_check/crc8_opensafety.h.t.cpp create mode 100644 test/syntax_check/delegate_observable.h.t.cpp diff --git a/test/syntax_check/CMakeLists.txt b/test/syntax_check/CMakeLists.txt index 62d864c9..eb0deadf 100644 --- a/test/syntax_check/CMakeLists.txt +++ b/test/syntax_check/CMakeLists.txt @@ -126,6 +126,8 @@ target_sources(tests PRIVATE crc16_maxim.h.t.cpp crc16_mcrf4xx.h.t.cpp crc16_modbus.h.t.cpp + crc16_opensafety_a.h.t.cpp + crc16_opensafety_b.h.t.cpp crc16_profibus.h.t.cpp crc16_riello.h.t.cpp crc16_t10dif.h.t.cpp @@ -154,12 +156,14 @@ target_sources(tests PRIVATE crc8_j1850.h.t.cpp crc8_j1850_zero.h.t.cpp crc8_maxim.h.t.cpp + crc8_opensafety.h.t.cpp crc8_rohc.h.t.cpp crc8_wcdma.h.t.cpp cyclic_value.h.t.cpp debounce.h.t.cpp debug_count.h.t.cpp delegate.h.t.cpp + delegate_observable.h.t.cpp delegate_service.h.t.cpp deque.h.t.cpp endianness.h.t.cpp diff --git a/test/syntax_check/crc16_opensafety_a.h.t.cpp b/test/syntax_check/crc16_opensafety_a.h.t.cpp new file mode 100644 index 00000000..21d774fd --- /dev/null +++ b/test/syntax_check/crc16_opensafety_a.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) 2025 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/syntax_check/crc16_opensafety_b.h.t.cpp b/test/syntax_check/crc16_opensafety_b.h.t.cpp new file mode 100644 index 00000000..5b38caf6 --- /dev/null +++ b/test/syntax_check/crc16_opensafety_b.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) 2025 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/syntax_check/crc8_opensafety.h.t.cpp b/test/syntax_check/crc8_opensafety.h.t.cpp new file mode 100644 index 00000000..35d26937 --- /dev/null +++ b/test/syntax_check/crc8_opensafety.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) 2025 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/syntax_check/delegate_observable.h.t.cpp b/test/syntax_check/delegate_observable.h.t.cpp new file mode 100644 index 00000000..4ef4112e --- /dev/null +++ b/test/syntax_check/delegate_observable.h.t.cpp @@ -0,0 +1,28 @@ +/****************************************************************************** +The MIT License(MIT) + +Embedded Template Library. +https://github.com/ETLCPP/etl +https://www.etlcpp.com + +Copyright(c) 2025 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 7473133a..4639af36 100644 --- a/test/vs2022/etl.vcxproj +++ b/test/vs2022/etl.vcxproj @@ -5268,6 +5268,42 @@ true true + + true + true + true + true + true + true + true + true + true + true + true + true + true + true + true + true + + + true + true + true + true + true + true + true + true + true + true + true + true + true + true + true + true + true true @@ -5772,6 +5808,24 @@ true true + + true + true + true + true + true + true + true + true + true + true + true + true + true + true + true + true + true true @@ -5898,6 +5952,24 @@ true true + + true + true + true + true + true + true + true + true + true + true + true + true + true + true + true + true + true true