HighCommander4 wrote:

Noticed this while looking at 
https://github.com/llvm/llvm-project/issues/120175. The range information 
originates as a `CharSourceRange` in `MacroOccurrence::toRange()`, then it's 
converted to `clangd::Range` using `halfOpenToRange()`. Then we convert it back 
to a `SourceRange` using `sourceLocationInMainFile()`, which seems like an 
unnecessary round-trip.

https://github.com/llvm/llvm-project/pull/127757
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to