[clang] Emit debug info with original source location for tokens from macros … (PR #163190)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 15 11:14:52 PDT 2025


SergejSalnikov wrote:

> Are there any uses of "unrefined" locations in `CGDebugInfo` with this patch? If there are, what's the distinction/how was it chosen which would be refined, and which would not? The slow/fast path through `getRefinedSpellingLoc` probably isn't worth it - probably make the whole thing outofline?

I'm converting all locations that came from public entry points into refined locations. The only non-converted locations are ones that located in private methods and it's guaranteed that the called already passes a refined location.

https://github.com/llvm/llvm-project/pull/163190


More information about the cfe-commits mailing list