aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Support `-fno-exceptions`. am: 2df0091468 am: 5fb579c6c1 am: 3923d3e94fandroid-wear-8.1.0_r1android-vts-8.1_r9android-vts-8.1_r8android-vts-8.1_r7android-vts-8.1_r6android-vts-8.1_r5android-vts-8.1_r4android-vts-8.1_r3android-vts-8.1_r13android-vts-8.1_r12android-vts-8.1_r11android-vts-8.1_r10android-vts-8.0_r9android-vts-8.0_r8android-vts-8.0_r7android-vts-8.0_r6android-vts-8.0_r2android-vts-8.0_r13android-vts-8.0_r12android-vts-8.0_r11android-vts-8.0_r10android-vts-8.0_r1android-cts-8.1_r9android-cts-8.1_r8android-cts-8.1_r7android-cts-8.1_r6android-cts-8.1_r5android-cts-8.1_r4android-cts-8.1_r3android-cts-8.1_r20android-cts-8.1_r2android-cts-8.1_r19android-cts-8.1_r18android-cts-8.1_r17android-cts-8.1_r16android-cts-8.1_r15android-cts-8.1_r14android-cts-8.1_r13android-cts-8.1_r12android-cts-8.1_r11android-cts-8.1_r10android-cts-8.1_r1android-cts-8.0_r9android-cts-8.0_r8android-cts-8.0_r7android-cts-8.0_r6android-cts-8.0_r5android-cts-8.0_r4android-cts-8.0_r3android-cts-8.0_r24android-cts-8.0_r23android-cts-8.0_r22android-cts-8.0_r21android-cts-8.0_r20android-cts-8.0_r2android-cts-8.0_r19android-cts-8.0_r18android-cts-8.0_r17android-cts-8.0_r16android-cts-8.0_r15android-cts-8.0_r14android-cts-8.0_r13android-cts-8.0_r12android-cts-8.0_r11android-cts-8.0_r10android-cts-8.0_r1android-cts-7.1_r18android-8.1.0_r9android-8.1.0_r80android-8.1.0_r8android-8.1.0_r79android-8.1.0_r78android-8.1.0_r77android-8.1.0_r76android-8.1.0_r75android-8.1.0_r74android-8.1.0_r73android-8.1.0_r72android-8.1.0_r71android-8.1.0_r70android-8.1.0_r7android-8.1.0_r69android-8.1.0_r68android-8.1.0_r67android-8.1.0_r66android-8.1.0_r65android-8.1.0_r64android-8.1.0_r63android-8.1.0_r62android-8.1.0_r61android-8.1.0_r60android-8.1.0_r6android-8.1.0_r53android-8.1.0_r52android-8.1.0_r51android-8.1.0_r50android-8.1.0_r5android-8.1.0_r48android-8.1.0_r47android-8.1.0_r46android-8.1.0_r45android-8.1.0_r43android-8.1.0_r42android-8.1.0_r41android-8.1.0_r40android-8.1.0_r4android-8.1.0_r39android-8.1.0_r38android-8.1.0_r37android-8.1.0_r36android-8.1.0_r35android-8.1.0_r33android-8.1.0_r32android-8.1.0_r31android-8.1.0_r30android-8.1.0_r3android-8.1.0_r29android-8.1.0_r28android-8.1.0_r27android-8.1.0_r26android-8.1.0_r25android-8.1.0_r23android-8.1.0_r22android-8.1.0_r21android-8.1.0_r20android-8.1.0_r2android-8.1.0_r19android-8.1.0_r18android-8.1.0_r17android-8.1.0_r16android-8.1.0_r15android-8.1.0_r14android-8.1.0_r13android-8.1.0_r12android-8.1.0_r11android-8.1.0_r10android-8.1.0_r1android-8.0.0_r9android-8.0.0_r7android-8.0.0_r50android-8.0.0_r49android-8.0.0_r48android-8.0.0_r47android-8.0.0_r46android-8.0.0_r45android-8.0.0_r44android-8.0.0_r43android-8.0.0_r42android-8.0.0_r41android-8.0.0_r40android-8.0.0_r4android-8.0.0_r39android-8.0.0_r38android-8.0.0_r37android-8.0.0_r36android-8.0.0_r35android-8.0.0_r34android-8.0.0_r33android-8.0.0_r32android-8.0.0_r31android-8.0.0_r30android-8.0.0_r3android-8.0.0_r29android-8.0.0_r28android-8.0.0_r27android-8.0.0_r26android-8.0.0_r25android-8.0.0_r24android-8.0.0_r23android-8.0.0_r22android-8.0.0_r21android-8.0.0_r2android-8.0.0_r17android-8.0.0_r16android-8.0.0_r15android-8.0.0_r13android-8.0.0_r12android-8.0.0_r11android-8.0.0_r10android-8.0.0_r1security-oc-releasesecurity-oc-mr1-releaseoreo-vts-releaseoreo-security-releaseoreo-releaseoreo-r6-releaseoreo-r5-releaseoreo-r4-releaseoreo-r3-releaseoreo-r2-releaseoreo-mr1-wear-releaseoreo-mr1-vts-releaseoreo-mr1-security-releaseoreo-mr1-s1-releaseoreo-mr1-releaseoreo-mr1-devoreo-mr1-cuttlefish-testingoreo-mr1-cts-releaseoreo-m8-releaseoreo-m7-releaseoreo-m6-s4-releaseoreo-m6-s3-releaseoreo-m6-s2-releaseoreo-m5-releaseoreo-m4-s9-releaseoreo-m4-s8-releaseoreo-m4-s7-releaseoreo-m4-s6-releaseoreo-m4-s5-releaseoreo-m4-s4-releaseoreo-m4-s3-releaseoreo-m4-s2-releaseoreo-m4-s12-releaseoreo-m4-s11-releaseoreo-m4-s10-releaseoreo-m4-s1-releaseoreo-m3-releaseoreo-m2-s5-releaseoreo-m2-s4-releaseoreo-m2-s3-releaseoreo-m2-s2-releaseoreo-m2-s1-releaseoreo-m2-releaseoreo-dr3-releaseoreo-dr2-releaseoreo-dr1-releaseoreo-dr1-devoreo-devoreo-cts-releaseDan Albert2016-11-021-11/+28
|\ | | | | | | | | | | am: 44079759f9 Change-Id: Ia42174d411ba16565d583020d793d01ba47a462e
| * Support `-fno-exceptions`. am: 2df0091468 am: 5fb579c6c1android-wear-o-preview-4android-wear-o-preview-3android-o-preview-4android-o-preview-3android-o-preview-2Dan Albert2016-11-021-11/+28
| |\ | | | | | | | | | | | | | | | am: 3923d3e94f Change-Id: I14aca038a141e33b64c0e0b4a25a24d67221377d
| | * Support `-fno-exceptions`. am: 2df0091468Dan Albert2016-11-021-11/+28
| | |\ | | | | | | | | | | | | | | | | | | | | am: 5fb579c6c1 Change-Id: I82b4b187a7fb8254e15f846b7ceda7462e0a4226
| | | * Support `-fno-exceptions`.android-o-preview-1o-previewDan Albert2016-11-021-11/+28
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | am: 2df0091468 Change-Id: I214342452aade8d7bd65e110d1716afc88a7b14d
| | | | * Support `-fno-exceptions`.Dan Albert2016-10-281-11/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only thing preventing the non-exception portions of GSL from being used with `-fno-exceptions` is `gsl::narrow`. If we allow the `-fno-exceptions` case to terminate with `gsl::Ensures` instead, the library becomes usable in this case. Note that AFAIK we can only automatically detect this case for Clang. Non-Clang users will need to define `GSL_NO_EXCEPTIONS` themselves when building. Test: Made a test program using gsl::narrow, built and ran with and without -fno-exceptions. Can't add a test because unittest-cpp doesn't seem to support seem to support death tests, but `ctest` still passes for the default (`-fexceptions`) case. Bug: http://b/24296825 Change-Id: Iae72dda03dbd82452fcc296897c73b913a54846a
* | | | | Add Android.bp. am: e15c08c681 am: e15c56830f am: 7b5a940119Dan Albert2016-11-022-0/+25
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a9d5688058 Change-Id: Ib2364edf2899ad40be06333744488c5de5338c00
| * | | | Add Android.bp. am: e15c08c681 am: e15c56830fDan Albert2016-11-022-0/+25
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7b5a940119 Change-Id: I21c2be4b23998098dd55f3c00b8cea269b4b6788
| | * | | Add Android.bp. am: e15c08c681Dan Albert2016-11-022-0/+25
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: e15c56830f Change-Id: I5b751f28f2f05dd8bc0f16e0c02d161b593d61d2
| | | * | Add Android.bp.Dan Albert2016-11-022-0/+25
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | am: e15c08c681 Change-Id: I5b9e7d4c2bfef1062239612e9be54d4d44eeb000
| | | | * Add Android.bp.Dan Albert2016-10-282-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Symlink include/gsl to gsl so we can expose the headers without exposing the entire directory. Test: We can't build their tests yet (import of the unittest library is pending approval), but I made a quick test program to make sure `gsl::not_null` was working as expected. I've also run `ctest` after building for Linux, so we can at least be sure that it at least works outside our build system. Bug: http://b/24296825 Change-Id: Ie78c54f25e22809d3f16cd4dde5e7f2d582c81b3
* | | | | Merge remote-tracking branch 'aosp/upstream-master' into master am: ↵Dan Albert2016-11-0228-0/+10187
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 65c0aaa266 am: 8141d27f91 am: 9fbbf8bb2f am: 1f29230e17 Change-Id: Iac67c6d3d332a769e3762b6e94087a8b3650d67c
| * | | | Merge remote-tracking branch 'aosp/upstream-master' into master am: ↵Dan Albert2016-11-0228-0/+10187
|/| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | 65c0aaa266 am: 8141d27f91 am: 9fbbf8bb2f Change-Id: I4fdd1fdabfd50ac696439df64bf93446e610c19c
| * / / Merge remote-tracking branch 'aosp/upstream-master' into master am: 65c0aaa266Dan Albert2016-11-0228-0/+10187
|/| | | | |/ / | | | | | | | | | | | | am: 8141d27f91 Change-Id: I56c10228cdd193fc7fdf208382ff791c11509773
| * / Merge remote-tracking branch 'aosp/upstream-master' into masterDan Albert2016-11-0228-0/+10187
|/| | | |/ | | | | | | | | am: 65c0aaa266 Change-Id: I02929725e722dce71700c12ce71d9e9fc6a269e3
| * Merge remote-tracking branch 'aosp/upstream-master' into masterDan Albert2016-10-2828-0/+10187
|/|
| * Fix overflow found by GCC in basic_zstring_span::as_string_span().Rian Quinn2016-10-271-1/+2
| | | | | | | | | | | | | | This patch fixes an overflow that was identified with strict overflow warnings enabled, and optimizations turned on Signed-off-by: “Rian <“rianquinn@gmail.com”>
| * Adds gsl::span::at()Rian Quinn2016-10-262-0/+21
| | | | | | | | | | | | As per this discussion: https://github.com/Microsoft/GSL/issues/402 This patch adds support for at() to gsl::span
| * [gsl_util] Update narrow_cast to use std::forward Rian Quinn2016-10-181-0/+8
| | | | | | | | | | | | | | | | * Update narrow_cast to use std::forward Based on [F19](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#f19-for-forward-parameters-pass-by-tp-and-only-stdforward-the-parameter), I believe `gsl::narrow_cast` should be implemented using forward semantics. * Fix for VS 2013
| * [#392] Don't install testsMarc Mutz2016-10-171-4/+1
| | | | | | | | | | | | | | | | | | 'make install' should install the GSL library (ie. the headers), not the tests. It still installs the UnitTest++ headers, but that will be more complex to fix, as GSL just imports UnitTest++ as a git submodule, and the install command propagates down to UnitTest++'s CMakeLists.txt.
| * [#391] string_length: Remove use of strnlen and use consistent length type.Josaphat Valdivia2016-10-171-30/+18
| | | | | | | | | | | | * Removes reference to strnlen as per #391 * Use ptrdiff for string_length interfaces for #391
| * Address #313: try to guard against strict-aliasing bugs with gsl::byteMikeGitb2016-10-173-4/+20
| | | | | | | | | | | | | | | | * Add test to demonstrate byte aliasing problem on g++ and clang++ * Add note about no-strict-aliasing flag in README * Activate aliasing unit test and use -fno-strict-aliasing flag
| * Fix #388: Add explict default copy assignment operator for span_iteratorNeil MacIntosh2016-10-111-0/+2
| |\
| | * Fix #388 Deprecated implicit copy assignment operator for span_iterator in ↵Gary Furnish2016-10-091-0/+2
| |/ | | | | | | C++17.
| * [span] fix size_t to index_type conversion warning Neil MacIntosh2016-10-051-2/+2
| |\
| | * For span, fix size_t to index_type conversion warning.Gary Furnish2016-10-041-2/+2
| |/ | | | | | | Use narrow per discussion instead of static_cast.
| * [Travis] enlarge the support matrixNeil MacIntosh2016-09-301-30/+105
| |\
| | * [Travis] enlarge the support matrixCasey Carter2016-09-301-30/+105
| |/ | | | | | | | | | | * Build on OSX with Xcode 8 * Build on Linux with Clang 3.6/7/8 and libc++ * Build on Linux with GCC 5/6
| * Add branch prediction to Ensures / ExpectsNeil MacIntosh2016-09-291-4/+12
| |\
| | * Fix issue with VS buildsRian Quinn2016-09-281-4/+4
| | | | | | | | | The Visual Studio part of this patch was wrong, and left an empty if statement.
| | * Add branch prediction to Ensures / ExpectsRian Quinn2016-09-281-4/+12
| | | | | | | | | We should be using branch prediction on asserts as these conditions are known to be unlikely, therefore we should be optimizing the likely case. These macros are similar to what the Linux kernel uses. Not really sure what Visual Studio does so at the moment these are disabled for VS.
| * | Fix compilation issues with CygwinNeil MacIntosh2016-09-291-4/+22
| |\ \
| | * | Fix compilation issues with CygwinRian Quinn2016-09-281-4/+22
| | |/ | | | | | | Cygwin recently did an update that broken string_span again. The original update had to provide a custom strnlen function because Cygwin doesn't implement this (it's a non-std extension). We never added wchar_t support, and the Cygwin update now breaks on exactly this. This patch provides the missing wchar_t.
| * | [multi_span] Fix UB hack in static_bounds::operator=(const static_bounds&)Neil MacIntosh2016-09-291-13/+3
| |\ \ | | |/ | |/|
| | * [multi_span] Fix UB hack in static_bounds::operator=Casey Carter2016-09-271-13/+3
| |/ | | | | | | | | | | | | | | * Make BoundsRanges<dynamic_range, ...>::m_bound non-const and private * Remove various defaulted copy constructor/assignment declarations from BoundsRanges specializations whose only effect is to needlessly suppress the generation of moves * Remove the hackish static_bounds::operator=(const static_bounds&). The implicitly generated default is now sufficient
| * Removed redundant static_cast<> and is_same<> test.Neil MacIntosh2016-09-221-7/+4
| |\
| | * Removed redundant static_cast<> and is_same<> test.Neil MacIntosh2016-09-141-7/+4
| | |
| * | Turn off warning about function-style casts in gsl_byteNeil MacIntosh2016-09-211-0/+7
| |\ \
| | * | Turn off warning about function-styl casts in gsl_byteMichael Balszun2016-09-211-0/+7
| |/ /
| * | Add tests for to_integer(), fix to_integer()Neil MacIntosh2016-09-202-1/+19
| |\ \
| | * | Fix to_integer()Martin Moene2016-09-171-1/+1
| | | |
| | * | Add tests for to_integer(): they failMartin Moene2016-09-171-0/+18
| | |/
| * | Fix wrong types in multi_span_test for comparison operators.Neil MacIntosh2016-09-201-2/+2
| |\ \
| | * | fix wrong types in multi_span_test (<comparison_operators>)Michael Balszun2016-09-171-2/+2
| | |/
| * | Fix negative indices to multi_span not being caught.Neil MacIntosh2016-09-202-2/+8
| |\ \ | | |/ | |/| Negative indices to multi_span are not flagged with neither exception nor abort.
| | * Added a fix for not flagging negative indices to multi_span.Krzysztof Wrzalik2016-09-181-2/+2
| | |
| | * Added tests for negative multi-span access.Krzysztof Wrzalik2016-09-181-0/+6
| |/
| * Adding inline to all byte-related functions for MSVC 2013.Neil MacIntosh2016-09-141-10/+10
| |\
| | * Adding inline to all byte-related functions for MSVC 2013.Neil MacIntosh2016-09-131-10/+10
| |/
| * Fix for #313 Corrected SFINAE for conversion constructors on spanNeil MacIntosh2016-09-132-41/+12
| |\
| | * Removed unnecessary reinterpret_cast<> from span implementation.Neil MacIntosh2016-09-121-2/+2
| | |