[all-commits] [llvm/llvm-project] 0995b5: Add default constructurs to `filter_iterator_impl`...

jensmassberg via All-commits all-commits at lists.llvm.org
Fri Jan 13 07:45:21 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0995b545ecc8214ddcfd68ede11503fc029cacd4
      https://github.com/llvm/llvm-project/commit/0995b545ecc8214ddcfd68ede11503fc029cacd4
  Author: Jens Massberg <massberg at google.com>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M llvm/include/llvm/ADT/STLExtras.h

  Log Message:
  -----------
  Add default constructurs to `filter_iterator_impl` and `filter_iterator_impl`.

Bases of `reverse_iterator` must be default-constructible. This is enforced when using `libstdc++-12` plus C++20.

Differential Revision: https://reviews.llvm.org/D141587


  Commit: f88c6b9166f885e7089cb15095e38868aaba04da
      https://github.com/llvm/llvm-project/commit/f88c6b9166f885e7089cb15095e38868aaba04da
  Author: Jens Massberg <massberg at google.com>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M clang-tools-extra/clang-doc/Representation.cpp
    M clang-tools-extra/clang-doc/Representation.h

  Log Message:
  -----------
  Move definitions to prevent incomplete types.

C++20 is more strict when erroring out due to incomplete types.
Thus the code required some restructoring so that it complies in C++20.

Differential Revision: https://reviews.llvm.org/D141671


Compare: https://github.com/llvm/llvm-project/compare/45cd0e453d5d...f88c6b9166f8


More information about the All-commits mailing list