[clang] [clang][Sema] Emit warnings on incorrect AVR interrupt/signal handlers (PR #125328)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 5 06:14:33 PST 2025
================
----------------
aykevl wrote:
It might be worth adding a check for something like this?
```c
__attribute__((signal)) void foog() {} // expected-warning {{'signal' attribute only applies to functions that have no parameters}}
```
(This is because C, at least in the past, treated no parameters as a variadic function).
https://github.com/llvm/llvm-project/pull/125328
More information about the cfe-commits
mailing list