[Lldb-commits] [lldb] [lldb] Change bitfield range character from '-' to ':' in DIL (PR #173410)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 14 16:30:52 PST 2026
cmtice wrote:
> > Can't you just update the code that currently recognizes "[expr - expr]" to return an error for now (something along the lines that "this syntax is deprecated; please use ':' instead of '-'")? Then in the PR that implements binary subtraction, remove this error message?
>
> If I understood @jimingham correctly, the idea is to keep this error for an entire major release version, and I would like to implement binary subtraction way sooner than that.
Ok, plan B. :-) Issue the deprecated message for now. When you implement the binary subtraction, [expr - expr] will always be subtraction, but have it issue a warning (only if done inside square brackets] that it IS subtraction, and that if people are looking for bitfield subranges they need to use ':' instead. After entire major release, remove the warning. Would that satisfy both you and @jimingham ?
https://github.com/llvm/llvm-project/pull/173410
More information about the lldb-commits
mailing list