[all-commits] [llvm/llvm-project] fc7a9f: [clangd] Ignore cvr-qualifiers in selection.

Sam McCall via All-commits all-commits at lists.llvm.org
Thu Jan 13 06:09:05 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc7a9f36a9232794f8b5414347024b726954fe53
      https://github.com/llvm/llvm-project/commit/fc7a9f36a9232794f8b5414347024b726954fe53
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2022-01-13 (Thu, 13 Jan 2022)

  Changed paths:
    M clang-tools-extra/clangd/Selection.cpp
    M clang-tools-extra/clangd/unittests/SelectionTests.cpp

  Log Message:
  -----------
  [clangd] Ignore cvr-qualifiers in selection.

The AST doesn't track their locations, and the default behavior of attributing
them to the lexically-enclosing node is sloppy and often inaccurate.

Also add a couple of passing test cases for declarators that weren't obvious.

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




More information about the All-commits mailing list