[all-commits] [llvm/llvm-project] 31751c: [clang-format] Fix build on gcc < 7 introduced in ...

Marek Kurdej via All-commits all-commits at lists.llvm.org
Mon May 3 09:54:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 31751ce1b9239d7aacac84864bf06c36ce888408
      https://github.com/llvm/llvm-project/commit/31751ce1b9239d7aacac84864bf06c36ce888408
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2021-05-03 (Mon, 03 May 2021)

  Changed paths:
    M clang/lib/Format/UnwrappedLineFormatter.cpp

  Log Message:
  -----------
  [clang-format] Fix build on gcc < 7 introduced in rG8d93d7ff.

This fixes another bogus build error on gcc, e.g. https://lab.llvm.org/buildbot/#/builders/118/builds/2504.

/home/ssglocal/clang-cmake-x86_64-avx2-linux/clang-cmake-x86_64-avx2-linux-perf/llvm/clang/lib/Format/UnwrappedLineFormatter.cpp:424:42: error: binding ‘clang::format::FormatToken* const’ to reference of type ‘clang::format::FormatToken*&’ discards qualifiers
     auto IsElseLine = [&First = TheLine->First]() -> bool {
                                          ^




More information about the All-commits mailing list