[all-commits] [llvm/llvm-project] 253b81: [clangd] Avoid range-loop init-list lifetime subtl...

Sam McCall via All-commits all-commits at lists.llvm.org
Fri Jul 23 06:34:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 253b8145dedbe8d10792f44b4af7f52dbecd527f
      https://github.com/llvm/llvm-project/commit/253b8145dedbe8d10792f44b4af7f52dbecd527f
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2021-07-23 (Fri, 23 Jul 2021)

  Changed paths:
    M clang-tools-extra/clangd/GlobalCompilationDatabase.cpp

  Log Message:
  -----------
  [clangd] Avoid range-loop init-list lifetime subtleties.

The original code appears to be OK per the spec, but we've had 3 reports of
crashes with certain unofficial builds of clangd that look a lot like old
compilers (GCC 5.4?) getting lifetime rules wrong.

Fixes https://github.com/clangd/clangd/issues/800

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




More information about the All-commits mailing list