| Issue |
64682
|
| Summary |
Add diagnostic for undocumented builtins
|
| Labels |
clang:diagnostics
|
| Assignees |
|
| Reporter |
Endilll
|
Non-user facing builtins could be too fragile to be used by regular users, leading to crashes.
Builtins for coroutines are one example of that (see #60863 and linked issues).
@AaronBallman proposed a generic diagnostic to catch this: https://github.com/llvm/llvm-project/issues/60863#issuecomment-1677257472
Possible phrasing: `__builtin_xxx is not documented and can crash the compiler if used incorrectly.`
False-positives are going to be suppressed by generic mechanism of suppressing diagnostics for system headers (`-isystem`).
I wonder, though, how this is going to impact compile times.
Since this is intentionally a low-effort mitigation for low-priority crashes, should it be added to the pool of good first issues?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs