[all-commits] [llvm/llvm-project] 64168c: [clangd] Disable suffix matching fallback for C du...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Thu Sep 24 01:46:37 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 64168c6d996b6fdd017488785e0e9ce5ce05be54
      https://github.com/llvm/llvm-project/commit/64168c6d996b6fdd017488785e0e9ce5ce05be54
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2020-09-24 (Thu, 24 Sep 2020)

  Changed paths:
    M clang-tools-extra/clangd/index/CanonicalIncludes.cpp
    M clang-tools-extra/clangd/unittests/CanonicalIncludesTests.cpp

  Log Message:
  -----------
  [clangd] Disable suffix matching fallback for C during include insertion

Clangd currently doesn't respect language and breaks the builds with
include insertion for C. This patch aims to stop the bleeding by not mapping
back to CPP standard library headers.

Improves https://github.com/clangd/clangd/issues/376.

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




More information about the All-commits mailing list