[clang-tools-extra] [clangd] Resolve __builtin_offsetof designator components precisely (PR #194407)
Jakob Linke via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 28 21:13:21 PDT 2026
schuay wrote:
> Thanks, LGTM.
>
> Perhaps the description needs to be slightly corrected according to your latest change.
The commit msg was already updated, also updated the PR description now.
> P.S. I also noticed that the completion doesn't work (i.e. ctrl+space on ^ doesn't return `field` for code like `struct S { int field; }; int x = __builtin_offsetof(struct S, fiel^d);`). This is definitely outside the scope of the current PR, but you might be interested in looking into it.
Interesting, I may take a look. I wonder why, doesn't it go through the same RAV codepaths..
I'll need help to merge this commit again, ty.
https://github.com/llvm/llvm-project/pull/194407
More information about the cfe-commits
mailing list