[Lldb-commits] [clang] [lldb] [Clang] Improve Sema diagnostic performance for __builtin_counted_by_ref (PR #116719)

Bill Wendling via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 20 13:19:58 PST 2024


bwendling wrote:

> The main thing I’m concerned about here is that I feel like there ought to be a better way of doing this than checking for and disallowing it in every place where we can have a subexpression in C.

Yeah, but we don't have such a method, partially due to the languages Clang supports. How is this any different from the vast array of other features that are checked in Sema?

> Also, if we’re doing it this way, then the check should definitely be factored out into a function in `Sema`.

Okay.

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


More information about the lldb-commits mailing list