[all-commits] [llvm/llvm-project] 744b11: [clangd] Bail gracefully if given an assembly or I...

Nathan Ridge via All-commits all-commits at lists.llvm.org
Fri Aug 18 20:26:54 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 744b111434b25b1259308050c59062dc4f38a589
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M clang-tools-extra/clangd/ParsedAST.cpp
    M clang-tools-extra/clangd/unittests/ParsedASTTests.cpp

  Log Message:
  [clangd] Bail gracefully if given an assembly or IR source file

The previous behaviour is to try to parse such files, and in some
cases assert or hang in components that don't expect these forms of
input, like TokenBuffer.

Fixes https://github.com/llvm/llvm-project/issues/62090

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

More information about the All-commits mailing list