[clang] [clang][Sema] Emit warnings about incorrect AVR interrupt/signal handlers (PR #125997)

Ben Shi via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 6 03:00:38 PST 2025


================
@@ -351,8 +351,8 @@ def warn_arm_interrupt_vfp_clobber : Warning<
 def err_arm_interrupt_called : Error<
   "interrupt service routine cannot be called directly">;
 def warn_interrupt_attribute_invalid : Warning<
-   "%select{MIPS|MSP430|RISC-V}0 'interrupt' attribute only applies to "
-   "functions that have %select{no parameters|a 'void' return type}1">,
+   "%select{MIPS|MSP430|RISC-V|AVR}0 '%1' attribute only applies to "
----------------
benshi001 wrote:

fixed.

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


More information about the cfe-commits mailing list