[all-commits] [llvm/llvm-project] e81c98: [clangd] Don't collect templated decls for builtin...

Younan Zhang via All-commits all-commits at lists.llvm.org
Thu Jan 18 18:55:00 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e81c981fe35483a4b7474e110ff1b5d02bc2cb00
      https://github.com/llvm/llvm-project/commit/e81c981fe35483a4b7474e110ff1b5d02bc2cb00
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M clang-tools-extra/clangd/FindTarget.cpp
    M clang-tools-extra/clangd/unittests/FindTargetTests.cpp

  Log Message:
  -----------
  [clangd] Don't collect templated decls for builtin templates (#78466)

Builtin templates e.g. `__make_integer_seq`, `__type_pack_element` are
such that they don't have alias *Decls*.
[D133262](https://reviews.llvm.org/D133262) marked these as alias
templates, resulting in an attempt to collect their null "using" Decls
within our `TargetFinder`.

This fixes https://github.com/clangd/clangd/issues/1906.




More information about the All-commits mailing list