[clang] [clang-tools-extra] [clang] Compute accurate begin location for CallExpr with explicit object parameter (PR #117841)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 3 22:19:24 PST 2024
================
@@ -1639,11 +1639,19 @@ SourceLocation CallExpr::getBeginLoc() const {
if (const auto *OCE = dyn_cast<CXXOperatorCallExpr>(this))
return OCE->getBeginLoc();
+ if (const auto *Method =
+ dyn_cast_if_present<const CXXMethodDecl>(getCalleeDecl());
----------------
HighCommander4 wrote:
Sorry, I'm not quite following this suggestion. What am I supposed to do with `Offset`?
https://github.com/llvm/llvm-project/pull/117841
More information about the cfe-commits
mailing list