[all-commits] [llvm/llvm-project] dbd1fb: [clangd] Avoid crash when summarizing pointer-to-m...
Nathan Ridge via All-commits
all-commits at lists.llvm.org
Thu Dec 28 23:19:01 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dbd1fb8e6f1e4a8c91059308b286f8f2a9471a8e
https://github.com/llvm/llvm-project/commit/dbd1fb8e6f1e4a8c91059308b286f8f2a9471a8e
Author: Nathan Ridge <zeratul976 at hotmail.com>
Date: 2023-12-29 (Fri, 29 Dec 2023)
Changed paths:
M clang-tools-extra/clangd/InlayHints.cpp
M clang-tools-extra/clangd/unittests/InlayHintTests.cpp
Log Message:
-----------
[clangd] Avoid crash when summarizing pointer-to-member expr for block-end hint (#76492)
For calls through a pointer to member, CXXMemberCallExpr::getCallee() is
a BinaryOperator with operator ->* (after unwrapping parens).
getMethodDecl() only returns non-null if the callee is a MemberExpr.
Fixes https://github.com/clangd/clangd/issues/1873
More information about the All-commits
mailing list