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 _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
