aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Snap for 4462748 from 2ef7b8a9e35e409b175e190298cde5434155f54a to pi-releaseandroid-wear-9.0.0_r9android-wear-9.0.0_r8android-wear-9.0.0_r7android-wear-9.0.0_r6android-wear-9.0.0_r5android-wear-9.0.0_r4android-wear-9.0.0_r3android-wear-9.0.0_r23android-wear-9.0.0_r22android-wear-9.0.0_r21android-wear-9.0.0_r20android-wear-9.0.0_r2android-wear-9.0.0_r19android-wear-9.0.0_r18android-wear-9.0.0_r17android-wear-9.0.0_r16android-wear-9.0.0_r15android-wear-9.0.0_r14android-wear-9.0.0_r13android-wear-9.0.0_r12android-wear-9.0.0_r11android-wear-9.0.0_r10android-wear-9.0.0_r1android-vts-9.0_r9android-vts-9.0_r8android-vts-9.0_r7android-vts-9.0_r6android-vts-9.0_r5android-vts-9.0_r4android-vts-9.0_r14android-vts-9.0_r13android-vts-9.0_r12android-vts-9.0_r11android-vts-9.0_r10android-cts-9.0_r9android-cts-9.0_r8android-cts-9.0_r7android-cts-9.0_r6android-cts-9.0_r5android-cts-9.0_r4android-cts-9.0_r3android-cts-9.0_r2android-cts-9.0_r13android-cts-9.0_r12android-cts-9.0_r11android-cts-9.0_r10android-cts-9.0_r1android-9.0.0_r9android-9.0.0_r8android-9.0.0_r7android-9.0.0_r60android-9.0.0_r6android-9.0.0_r59android-9.0.0_r58android-9.0.0_r57android-9.0.0_r56android-9.0.0_r55android-9.0.0_r54android-9.0.0_r53android-9.0.0_r52android-9.0.0_r51android-9.0.0_r50android-9.0.0_r5android-9.0.0_r49android-9.0.0_r48android-9.0.0_r3android-9.0.0_r2android-9.0.0_r18android-9.0.0_r17android-9.0.0_r10android-9.0.0_r1security-pi-releasepie-vts-releasepie-security-releasepie-s2-releasepie-release-2pie-releasepie-r2-s2-releasepie-r2-s1-releasepie-r2-releasepie-platform-releasepie-gsipie-cuttlefish-testingpie-cts-releaseandroid-build-team Robot2017-11-212-0/+21
|\ | | | | | | Change-Id: I647346194081cd7e0fb52f9ae1257c80ab720193
| * Add metadata am: 4d7be5df54 am: 771e49c447android-o-mr1-iot-release-1.0.3android-9.0.0_r47android-9.0.0_r46android-9.0.0_r45android-9.0.0_r44android-9.0.0_r43android-9.0.0_r42android-9.0.0_r41android-9.0.0_r40android-9.0.0_r39android-9.0.0_r38android-9.0.0_r37android-9.0.0_r36android-9.0.0_r35android-9.0.0_r34android-9.0.0_r33android-9.0.0_r32android-9.0.0_r31android-9.0.0_r30android-9.0.0_r22android-9.0.0_r21android-9.0.0_r20android-9.0.0_r19android-9.0.0_r16android-9.0.0_r12android-9.0.0_r11pie-qpr3-s1-releasepie-qpr3-releasepie-qpr3-b-releasepie-qpr2-releasepie-qpr1-s3-releasepie-qpr1-s2-releasepie-qpr1-s1-releasepie-qpr1-releasepie-dr1-releasepie-dr1-devpie-devpie-b4s4-releasepie-b4s4-devBill Yi2017-11-212-0/+21
| |\ | | | | | | | | | | | | | | | am: 3ba82cdc72 Change-Id: Ibaa471d28acf037f39dea3a6e56a2ac85b377117
| | * Add metadata am: 4d7be5df54Bill Yi2017-11-212-0/+21
| | |\ | | | | | | | | | | | | | | | | | | | | am: 771e49c447 Change-Id: Ie9721109f3a4109e199ed9d7394aedf22d335cee
| | | * Add metadataandroid-wear-p-preview-2android-wear-8.0.0_r1android-p-preview-5android-p-preview-4android-p-preview-3android-p-preview-2android-p-preview-1android-o-mr1-iot-release-1.0.2android-o-mr1-iot-release-1.0.1android-o-mr1-iot-release-1.0.0android-o-mr1-iot-preview-8android-o-mr1-iot-preview-7o-mr1-iot-preview-8o-mr1-iot-preview-7Bill Yi2017-11-212-0/+21
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | am: 4d7be5df54 Change-Id: I1ccbcac45bfaf0783cd0496e4c6b257fa1195df3
| | | | * Add metadataandroid-o-mr1-iot-preview-6o-mr1-iot-preview-6Bill Yi2017-11-202-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | BUG:67772237 Change-Id: Ic959b7f202911d9f5bdc2ec5d640da2c42c16c3f
* | | | | Snap for 4453288 from 6034061d9a194ad027e595c4e194ac027cad5894 to pi-releaseandroid-build-team Robot2017-11-150-0/+0
|\| | | | | | | | | | | | | | | | | | | Change-Id: I2a59f9464532e49da192adadf4d9233e63cf2be4
| * | | | Merge remote-tracking branch 'goog/stage-aosp-master' into HEADXin Li2017-11-150-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3711502941 Change-Id: I09ea67f07f2590ff8061de1d74c7c92bf12d7cd6
| | * | | Merge remote-tracking branch 'goog/stage-aosp-master' into HEADXin Li2017-11-140-0/+0
| | |\| | | | | | | | | | | | | | | | | Change-Id: I4895f38303c8c7faf837afcbd879c5545f3d2150
| | | * | Merge commit 'c7f8138e3f98f195af6c8735b9bc41e72154ae9f' into HEADXin Li2017-11-130-0/+0
| | | |\ \ | | | | | | | | | | | | | | | | | | Change-Id: If803204ab7eed86a2d11b04ecc5af235a8ab6b9a
* | | | | | Snap for 4439972 from c5b157244006a76d2af7ff3809f387ac9482ef92 to pi-releaseandroid-build-team Robot2017-11-081-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie045ff4e33494be69215ecb599a2ddd049bfc36c
| * | | | | Use -Werror in external/Microsoft-GSL am: fd31217fe1 am: 9ee9d331fbChih-Hung Hsieh2017-11-071-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8c2e9406ef Change-Id: I2f84c53dde4fd21577f574fc3f0f04bbca8e2e96
| | * | | | Use -Werror in external/Microsoft-GSL am: fd31217fe1Chih-Hung Hsieh2017-11-071-0/+1
| | |\| | | | | | |/ / | | |/| | | | | | | | | | | | | | | | | am: 9ee9d331fb Change-Id: I1b971dfe48068f6425a009ba1c87b688e5f99386
| | | * | Use -Werror in external/Microsoft-GSLChih-Hung Hsieh2017-11-071-0/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | am: fd31217fe1 Change-Id: Ibd231529260a59be94d83879e0daeb0bf3c1765a
| | | | * Use -Werror in external/Microsoft-GSLChih-Hung Hsieh2017-11-061-0/+1
| | | |/ | | | | | | | | | | | | | | | | | | | | Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib889a4e97d6571e35cd27c31ed871ad90674dbb0
* | | | release-request-d4f45cf4-9d73-4828-baa4-f73aa4280cd0-for-git_pi-release-4241 ↵android-build-team Robot2017-08-0333-5122/+5979
|\| | | | | | | | | | | | | | | | | | | | | | | 208 snap-temp-L10800000088711883 Change-Id: I79d6f4cdf0e0684ef706b10eb9e0f335bbf3e68c
| * | | Merge remote-tracking branch 'aosp/upstream-master' into HEAD am: a78a14d02f ↵Dan Albert2017-08-0132-5121/+5979
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c1b94b10a1 am: 58f6611fe3 am: b699d3dc83 am: c7f8138e3f Change-Id: Iff8e35ec521f9a60bcdf7975760cb6b61503d115
| | * | Merge remote-tracking branch 'aosp/upstream-master' into HEAD am: a78a14d02f ↵Dan Albert2017-08-0132-5121/+5979
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c1b94b10a1 am: 58f6611fe3 am: b699d3dc83 Change-Id: I2405616f4273dcd55bf81778351f5d2157e67977
| | | * Merge remote-tracking branch 'aosp/upstream-master' into HEAD am: a78a14d02f ↵Dan Albert2017-08-0132-5121/+5979
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c1b94b10a1 am: 58f6611fe3 Change-Id: I4dd6f6356c97ee20e77cce4cbed16bb100032abd
| | | | * Merge remote-tracking branch 'aosp/upstream-master' into HEAD am: a78a14d02fDan Albert2017-08-0132-5121/+5979
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c1b94b10a1 Change-Id: I8541109c3fb10caea0cf16eeb770753c1fc33839
| | | | | * Merge remote-tracking branch 'aosp/upstream-master' into HEADandroid-o-mr1-preview-2android-o-mr1-preview-1Dan Albert2017-08-0132-5121/+5979
| | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a78a14d02f Change-Id: Ib2f7c516889a8ac444a1f620e69451d38e2cc9cd
| | | | | | * Merge remote-tracking branch 'aosp/upstream-master' into HEADandroid-o-iot-preview-5o-iot-preview-5Dan Albert2017-07-2832-5121/+5979
| | | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: make checkbuild Bug: None Change-Id: I8d9efd00b8723adad9c81d92240abea67da1824c
| | | | | | | * Allow users to override GSL_USE_STD_BYTE (#536)Casey Carter2017-07-241-3/+7
| | | | | | | |
| | | | | | | * Removed VS2013 workarounds. (#534)Neil MacIntosh2017-07-146-218/+11
| | | | | | | |
| | | | | | | * Updated README to remove VS2013 reference.Neil MacIntosh2017-07-141-1/+1
| | | | | | | |
| | | | | | | * Move from unittest-cpp to catch for unit testing. (#533)Neil MacIntosh2017-07-1324-3484/+3508
| | | | | | | | | | | | | | | | | | | | | | | | Many thanks to @rianquinn. This should fix #495, #494 and #529.
| | | | | | | * Fix cstddef include in wrong place. (#520)Gary Furnish2017-06-021-1/+1
| | | | | | | |
| | | | | | | * Fix multi_span constructor taking a const std::array. (#523)Vincent Zalzal2017-06-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not called even by the unit test (it was calling the "container" ctor instead). I mimicked the constructor taking a non-const std::array to fix the issue.
| | | | | | | * Fix bug in comparison that selects std::byte.Neil MacIntosh2017-05-311-3/+3
| | | | | | | |
| | | | | | | * Use std::byte when available. (#519)Neil MacIntosh2017-05-311-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use std::byte implementation when available with MSVC. * Rollback the /std:c++latest flag used for testing. * Review feedback.
| | | | | | | * Fixes dereferencing operator issue #517 introduced in PR #513 (#516)Alexey Malov2017-05-312-13/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixes issue with dereferencing operator issue #491 introduced in PR #513 dereferencing operator added in PR#513 returned a copy of the object instead of reference to it. Adding decltype(auto) as return type of operator* fixes this issue. * added more tests for not_null::operator*
| | | | | | | * Restricting usage of owner<T> to pointer types (#507)saurabh singh2017-05-302-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Restricting usage of owner<T> to pointer types * Removing an additional type that was created for testing * Added comment about the new constraint on owner * Adding dereference operator to not_null * Removing dereference operator changes for not-null * Removing dereference operator changes for not-null * Review comments
| | | | | | | * Adding derference operator to not_null (#513)saurabh singh2017-05-302-0/+16
| | | | | | | |
| | | | | | | * Fix use of 0 instead of nullptr warning (#515)Gary Furnish2017-05-301-1/+1
| | | | | | | |
| | | | | | | * GSL_NOEXCEPT should appear before the initialization list (#514)Galik2017-05-301-2/+2
| | | | | | | |
| | | | | | | * span_iterator: converting constructor isn't a copy constructor (#511)Casey Carter2017-05-261-24/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #510. * Constrain the converting constructor to not participate in overload resolution when IsConst is true, so that it is never a copy constructor. * Use Default Member Initializers for span_iterator's data members so that the default constructor can be explicitly defaulted. * Declare all members of span_iterator GSL_NOEXCEPT: they only throw when contract violations throw. * Don't use & in operator-> since evil types may overload it.
| | | | | | | * Update README.md to include a new OS X combinationNeil MacIntosh2017-05-071-1/+2
| | | | | | | |
| | | | | | | * Update CMake usage (#493)Tiago2017-04-252-23/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor cmake file to have GSL as an interface CMake supports header only libraries as INTERFACE libraries. Using interfaces libraries make is easier for users to use the library because one just need to "link" agaisnt the library and necessary include paths, definitions, flags... will be taken care of. This commit creates a new interface library called GSL. It then add the following things to the GSL library: - compiler flags ex: (-std=c++14) - definitions ex: _SCL_SECURE_NO_WARNINGS - include paths ex: include/gsl - natvis file Another project can now have the GSL project as a git submodule and one only need to add the two following lines to their project to use the GSL. add_subdirectory(GSL) target_link_libraries(<some target> GSL) After cmake 3.8.0 a lot of the logic can be simplified. Right now the cmake file has an if for version checking, but when the minimun required version is 3.8.0 one can just delete the branching and keep the simpler version. * Cut support for c++11 Compiling on GCC6.2 with only the c++11 flag will generate compilation errors. For example some of the errors are related to the use of enable_if_t which is a c++14 feature. To avoid compilation errors this comiit removes c++11 support on linux. * Refactor code that pulls unittest-cpp Two minor changes: - uses cmake to find a proper installation of git (in case user does not have it on the path) - checks for the CMakeLists file instead. This is needed for the build itself and seems like a better way to do the checking * Refactor tests so they show together on VS This commit will make a VS geenrated project to group all tests under GSL_tests * Refactor tests configuration This creates a test configuration interface and add all the previous compiler options to that interface. compiler options are now sorted so it is easier to find them, and also one per line, so that modifications are easier to track from git.
| | | | | | | * make_span for array doesn't pass N as span template parameter (#498)ewoudvc2017-04-251-2/+2
| | | | | | | |
| | | | | | | * Reformat files to follow clang-format style (#492)Tiago2017-04-2020-1844/+1917
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | | | | | * Turn warnings into errors (#488)Casey Carter2017-04-172-9/+11
| | | | | | | |
| | | | | | | * Add value_type to span (#425)Maciej T. Nowak2017-04-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add value_type to span Currently I'm working on project which involves a lot of `span`s and mocking via Google Mock. Unfortunately a lot of standard matchers requires `value_type` type definition inside container which `gsl::span` lacks. This pull request add `value_type` type definition inside `gsl::span` * Strip cv from value_type of span and span_iterator
| | | | | | | * Updated submodule reference for unittest-cpp to latest (#483)Julien Monat Rodier2017-04-132-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | - updated to latest unittest-cpp
| | | | | | | * Added support of not_null<smart_ptr> comparison (#473)Alexey Malov2017-04-122-0/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added support of not_null<smart_ptr> comparison * The return type of not_null comparison operators is determined using SFINAE #474 * tests for gsl::not_null comparison were added * not_null comparison tests were rewritten to compare pointers to objects located in the same array * not_null<shared_ptr> comparison was simplified
| | | | | | | * gsl::at clean-up: (#479)Casey Carter2017-04-032-48/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * initializer_list overload returns by value to avoid lifetime issues * generic overload uses expression SFINAE to work with any type that has member size() and operator[], which notably includes const/non-const vector and array. * Add test coverage for const objects, rvalue initializer_lists, and constexpr usage. Fixes #357.
| | | | | | | * fail_fast should derive from logic_error (#480)Casey Carter2017-04-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #298.
| | | | | | | * Update README to drop support for VS 2013.Neil MacIntosh2017-04-021-1/+0
| | | | | | | |
| | | | | | | * Fix some corechecker warnings (#470)MikeGitb2017-04-027-530/+531
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | | | | | | * CI updates incl. remove support for VS 2013.Casey Carter2017-04-022-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * CI updates: Travis: use cmake 3.7 Appveyor: Add .appveyor.yml config, test VS2013/VS2015/VS2017 x86/x64 Debug/Release. * Drop VS2013 support from AppVeyor.
| | | | | | | * gsl_assert changes: (#452)Casey Carter2017-03-201-19/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * GSL_LIKELY/_UNLIKELY always contextually convert their argument to bool. * Add macro GSL_ASSUME(cond) to inform the optimizer that the predicate cond must hold. * Reimplement Expects & Ensures as expressions for flexibility and correctness. (Think about "if (cond1) Expects(cond2); else goto fail;") * Expects and Ensures GSL_ASSUME their predicate when GSL_UNENFORCED_ON_CONTRACT_VIOLATION is defined.
| | | | | | | * Fix links in README.md (#457)zhykzhykzhyk2017-03-101-3/+3
| | | | | | | |