[clang] [clang] Enforce 1-based indexing for command line source locations (PR #139457)

via cfe-commits cfe-commits at lists.llvm.org
Sun May 11 09:30:23 PDT 2025


cor3ntin wrote:

Thanks for working on that.
I think it might better to do that check where `ParsedSourceLocation::FromString` is called, so that we can have a proper
front-end diagnostics for it (search for `err_fe_invalid_code_complete_file` and `OPT_code_completion_at`)

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


More information about the cfe-commits mailing list