[all-commits] [llvm/llvm-project] 043e96: [clangd] Add inlay hints for mutable reference par...

Tobias Ribizel via All-commits all-commits at lists.llvm.org
Mon May 2 12:57:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 043e9650240866701bee89922d54bf7af059ed30
      https://github.com/llvm/llvm-project/commit/043e9650240866701bee89922d54bf7af059ed30
  Author: Tobias Ribizel <ribizel at kit.edu>
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
    M clang-tools-extra/clangd/InlayHints.cpp
    M clang-tools-extra/clangd/unittests/InlayHintTests.cpp

  Log Message:
  -----------
  [clangd] Add inlay hints for mutable reference parameters

Add a & prefix to all parameter inlay hints that refer to a non-const l-value reference. That makes it easier to identify them even if semantic highlighting is not used (where this is already available)

Reviewed By: nridge

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




More information about the All-commits mailing list