Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-13fix cppcorecheck warnings (#703)Anna Gringauze
* 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
2018-05-29Add as_bytes for basic_string_span, fixes issue #655 (#683)beinhaerter
2018-02-11Removed span from-nullptr_t ctor.Neil MacIntosh
2017-11-28Applied iwyu --comment to the code base (#588)Tiago
2017-09-19Made string_span details::string_length() generic (Fix issue #542) (#543)Galik
* Made string_span details::string_length() generic removed overloads & specialized classes Creating string_spans using `char16_t` and `char32_t` was not possible without creating new specializations and function overloads. This patch makes details::string_length() generic removing the need to extend the overloads and specializations. * added type aliases for string_span types char16_t and char32_t * Added char16_t & char32_t overloads for ensure_z * added string_span tests for char16_T & char32_t * added zstring type aliases for char16_t & char32_t * Added tests for char16_t & char31_t zstring and string_span types * applies clang format to <gsl/string_span> * Clang format tests/string_span_tests.cpp * Removed ensure_z() overloads as they don't add functionality.
2017-07-13Move from unittest-cpp to catch for unit testing. (#533)Neil MacIntosh
Many thanks to @rianquinn. This should fix #495, #494 and #529.
2017-04-20Reformat files to follow clang-format style (#492)Tiago
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.
2017-04-02Fix some corechecker warnings (#470)MikeGitb
* Improve const correctness in string_span * Improve const correctness in bounds_tests.cpp and byte_tests.cpp * Improve const correctness in span_tests.cpp * Improve const correctness in utils_tests.cpp * Use gsl::owner for dynamically allocated memory in string_span_tests.cpp * Improve const correctness in string_span_tests.cpp * Improve const correctness for strided_span_tests.cpp
2017-02-08Cleanup include structure, constexpr and noexcept compiler workarounds.Casey Carter
* Nest "gsl" directory inside a new "include" directory. * Cleanup the _MSC_VER conditionals a bit; use constexpr on VS2017+. * Don't #define noexcept on non-Microsoft implementations. * Workaround VS2017 bug in multi_span. (Also implement == and != for static_bounds_dynamic_range_t because I'm an EoP semantic soundness snob.) Fixes #441.
2016-09-04Add to_basic_stringGary Furnish
2016-08-10Removed .h extension from header files.Galik
2016-08-10Merge branch 'master' into dev/neilmac/spans_in_mapsNeil MacIntosh
2016-08-10Added test for Issue #305.Neil MacIntosh
2016-08-09Renamed include/ folder to gsl/ to make including the library consistentgalik
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)
2016-07-27Fixed compilation issues for GCC on Linux.Neil MacIntosh
2016-06-26Renamed byte header and tidied up string_span dependencies.Neil MacIntosh
2016-03-01Added from-container constructors.Neil MacIntosh
2016-02-24Renamed existing span to multi_span.Neil MacIntosh
2016-02-07Fixed compilation issues with gcc and clangAnna Gringauze
2016-02-04Added zstring_span and removed zstring_builder to support legacy stringsAnna Gringauze
2015-12-15Fixed compilation issues in MSVC 2013Anna Gringauze
2015-12-07Fixed operators and constructors for string_spanAnna Gringauze
2015-12-02Run clang formatAnna Gringauze
2015-12-02Added operator==Anna Gringauze
2015-12-02fixed GCC and clang compilation issuesAnna Gringauze
2015-12-02merging with masterAnna Gringauze
2015-11-30Reworked span to match GSL design.Neil MacIntosh
2015-11-13Enabled -Wall for gcc and clang.Neil MacIntosh
2015-11-13Turned on Level 3 warnings for MSVC.Neil MacIntosh
2015-11-05Added workaround for MSVC 2013 compiler bug.Neil MacIntosh
2015-11-04Renaming array_view and string_view, as per WG21 discussions.Neil MacIntosh