[all-commits] [llvm/llvm-project] ac511f: [clangd] Also mark output arguments of array subsc...

Nathan Ridge via All-commits all-commits at lists.llvm.org
Fri Jul 1 01:45:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac511fd4392d0f1fad3852378adf3c80738016b7
      https://github.com/llvm/llvm-project/commit/ac511fd4392d0f1fad3852378adf3c80738016b7
  Author: Christian Kandeler <christian.kandeler at qt.io>
  Date:   2022-07-01 (Fri, 01 Jul 2022)

  Changed paths:
    M clang-tools-extra/clangd/SemanticHighlighting.cpp
    M clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp

  Log Message:
  -----------
  [clangd] Also mark output arguments of array subscript expressions

... with the "usedAsMutableReference" semantic token modifier.
It's quite unusual to declare the index parameter of a subscript
operator as a non-const reference type, but arguably that makes it even
more helpful to be aware of it when working with such code.

Reviewed By: nridge

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




More information about the All-commits mailing list