aboutsummaryrefslogtreecommitdiffstats
path: root/tests/assertion_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fix cppcorecheck warnings (#703)Anna Gringauze2018-08-121-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added c++17 test configurations for clang5.0 and clang6.0 * Fixed CppCoreCheck warnings in GSL and tests - Added CMakeSettings.json for VS Open Folder configuration - So we can easily run CppCoreCheck in VS - Fixed CppCorecheck warnings where it made sense - Suppressed the rest - Some suppression does not work due to compiler/tool bugs, so replaced by #pragma disable - CppCoreCheck has noise, suppressed those with comments - Catch produces many warnings, blanket-supressed them all - Had to fix clang formatting to keep attributes in place - clang-format does not support attributes, so I am using - "CommentPragmas: '^ NO-FORMAT:'" to skip formatiting on them - Removed GSL_NOEXCEPT macro, removed incorred noexcepts * Ignore unknown attributes * ignore unknown attributes in noexception mode tests * fixed C26472 in at() * created GSL_SUPPRESS macro to allow all compilers to parse suppression attributes * try to fix gcc compilation problems with attributes * ignore gsl::suppress for gcc * move suppression to function level on return statements clang5.0 and up does not allow attributes on return statemets in constexpr functions * move suppression to function level on return statements * use GSL_SUPPRESS in algorithm_tests * Addressed PR comments
* Applied iwyu --comment to the code base (#588)Tiago2017-11-281-2/+2
|
* Move from unittest-cpp to catch for unit testing. (#533)Neil MacIntosh2017-07-131-25/+20
| | | Many thanks to @rianquinn. This should fix #495, #494 and #529.
* Reformat files to follow clang-format style (#492)Tiago2017-04-201-20/+18
| | | | | | | Project files were not following the clang-format style. For people using IDEs were clang-format is always run after a save this would cause unwanted changes. This commit only applies "clang-format -i" to files.
* Removed .h extension from header files.Galik2016-08-101-1/+1
|
* Renamed include/ folder to gsl/ to make including the library consistentgalik2016-08-091-1/+1
| | | | | | | | | | | whether using it from the development folder, from the installation folder or from being copied into a project. #include <gsl/gsl.h> Updated headers/tests/instructions/cmake build accordingly This PR should address https://github.com/Microsoft/GSL/issues/277 (less the renaming of gsl itself)
* Renamed namespace to 'gsl'. Renamed macro to configure testing.Neil MacIntosh2015-09-291-1/+1
|
* Initial commit of library files.Neil MacIntosh2015-08-201-0/+53