[all-commits] [llvm/llvm-project] f59d6f: [clang][test] Add test for stack_protector_ignore ...

Usama Hameed via All-commits all-commits at lists.llvm.org
Tue Aug 4 11:49:52 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f59d6f5f866b97413510fa119144651fbbbc7123
      https://github.com/llvm/llvm-project/commit/f59d6f5f866b97413510fa119144651fbbbc7123
  Author: Usama Hameed <u_hameed at apple.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    A clang/test/CodeGen/stack-protector-system-macro.c

  Log Message:
  -----------
  [clang][test] Add test for stack_protector_ignore in system macros (#213770)

d3184bc6c6a8 ("[clang] Don't warn on stack_protector_ignore in system
macros") added SuppressInSystemMacro to
warn_stack_protection_ignore_attribute but only added an LLVM CodeGen
test for the stack-protector metadata, so the diagnostic change itself
was untested.

Add a test using the self-include system_header idiom: the attribute
from a system header macro does not warn under -fstack-protector-all,
while one written in user code still does.

rdar://183962985



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list