diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-01-12 15:58:00 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-01-13 11:27:30 +0100 |
commit | 73df1aea4f8a779241c053ab54f616f7b3a6dcb9 (patch) | |
tree | 4692637c56cdf2b9e1c2a949503ccd26a0fb3ca5 /solenv | |
parent | c3e9d393ea10da48e8b9ab4742dbc5277b7c4882 (diff) |
array_view was changed to span in upcoming C++20
...see <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0122r7.pdf>
"span: bounds-safe views for sequences of objects". o3tl::span is still an
incomplete approximation of std::span; removed those o3tl::array_view members
that are not present in std::span (and were not used in the code).
Relies on C++17 __has_include to use standard <span> where available (e.g., in
LLVM 7 libc++).
Change-Id: I82a7e246b61b2456fa6183025d25eec4121ad3c9
Reviewed-on: https://gerrit.libreoffice.org/66215
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/clang-format/blacklist | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/clang-format/blacklist b/solenv/clang-format/blacklist index 0287ee50af5c..87f88d633832 100644 --- a/solenv/clang-format/blacklist +++ b/solenv/clang-format/blacklist @@ -6489,7 +6489,6 @@ include/linguistic/lngprops.hxx include/linguistic/misc.hxx include/linguistic/spelldta.hxx include/o3tl/any.hxx -include/o3tl/array_view.hxx include/o3tl/char16_t2wchar_t.hxx include/o3tl/cow_wrapper.hxx include/o3tl/deleter.hxx @@ -6504,6 +6503,7 @@ include/o3tl/numeric.hxx include/o3tl/runtimetooustring.hxx include/o3tl/safeint.hxx include/o3tl/sorted_vector.hxx +include/o3tl/span.hxx include/o3tl/strong_int.hxx include/o3tl/typed_flags_set.hxx include/o3tl/vector_pool.hxx @@ -8777,12 +8777,12 @@ mysqlc/source/mysqlc_types.cxx mysqlc/source/mysqlc_types.hxx o3tl/qa/cow_wrapper_clients.cxx o3tl/qa/cow_wrapper_clients.hxx -o3tl/qa/test-array_view.cxx o3tl/qa/test-cow_wrapper.cxx o3tl/qa/test-enumarray.cxx o3tl/qa/test-lru_map.cxx o3tl/qa/test-safeint.cxx o3tl/qa/test-sorted_vector.cxx +o3tl/qa/test-span.cxx o3tl/qa/test-string_view.cxx o3tl/qa/test-typed_flags.cxx o3tl/qa/test-vector_pool.cxx |