[clang] Add support for builtin_verbose_trap (PR #79230)
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 22 14:47:02 PDT 2024
================
@@ -3379,6 +3379,60 @@ Query for this feature with ``__has_builtin(__builtin_debugtrap)``.
Query for this feature with ``__has_builtin(__builtin_trap)``.
+``__builtin_verbose_trap``
----------------
dwblaikie wrote:
Ah, OK - that seems like more reason the prefix should be singular. Like we shouldn't add a new/distinct prefix for array bounds? Or other things we want to error out on - because it'd be an ongoing maintenance problem updating consumers like lldb each time we add one?
So maybe we should have a generic prefix we'll always use (`__builtin_trap`, say) and then maybe some identifier after that in a known format (eg: space, identifier, space) that can be used? then an error message string?
https://github.com/llvm/llvm-project/pull/79230
More information about the cfe-commits
mailing list