[all-commits] [llvm/llvm-project] 483992: [clangd] Make forwarding parameter detection logic...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Fri Jul 22 05:38:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4839929bed6e69346ff689ffe88750a90ebc0dfa
      https://github.com/llvm/llvm-project/commit/4839929bed6e69346ff689ffe88750a90ebc0dfa
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

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

  Log Message:
  -----------
  [clangd] Make forwarding parameter detection logic resilient

This could crash when our heuristic picks the wrong function. Make sure
there is enough parameters in the candidate to prevent those crashes.

Also special case copy/move constructors to make the heuristic work in
presence of those.

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

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




More information about the All-commits mailing list