[all-commits] [llvm/llvm-project] 3fcca8: [clangd] Refine recoveryAST flags in clangd

Haojian Wu via All-commits all-commits at lists.llvm.org
Wed Oct 14 04:42:37 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3fcca804b2916b68d34523e9f88c77272a256d77
      https://github.com/llvm/llvm-project/commit/3fcca804b2916b68d34523e9f88c77272a256d77
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-10-14 (Wed, 14 Oct 2020)

  Changed paths:
    M clang-tools-extra/clangd/ClangdServer.h
    M clang-tools-extra/clangd/Compiler.cpp
    M clang-tools-extra/clangd/tool/ClangdMain.cpp
    M clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
    M clang-tools-extra/clangd/unittests/FindTargetTests.cpp
    M clang-tools-extra/clangd/unittests/TestTU.cpp

  Log Message:
  -----------
  [clangd] Refine recoveryAST flags in clangd

so that we could start experiment for C.

Previously, these flags in clangd were only meaningful for C++. We need
to flip them for C, this patch repurpose these flags.

- if true, just set it.
- if false, just respect the value in clang.

this would allow us to keep flags on for C++, and optionally flip them on for C.

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




More information about the All-commits mailing list