[all-commits] [llvm/llvm-project] c8048c: [attributes] Generalize attribute 'enforce_tcb' to...

NoQ via All-commits all-commits at lists.llvm.org
Mon Mar 28 15:09:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c8048c7c42ffd1731149b0abe15b9081dd27c789
      https://github.com/llvm/llvm-project/commit/c8048c7c42ffd1731149b0abe15b9081dd27c789
  Author: Pierre d'Herbemont <pdherbemont at apple.com>
  Date:   2022-03-28 (Mon, 28 Mar 2022)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/Misc/pragma-attribute-supported-attributes-list.test
    A clang/test/Sema/attr-enforce-tcb-errors.m
    A clang/test/Sema/attr-enforce-tcb.m

  Log Message:
  -----------
  [attributes] Generalize attribute 'enforce_tcb' to Objective-C methods.

Calling an ObjC method from a C function marked with the 'enforce_tcb'
attribute did not produce a warning. Now it does, and on top of that
Objective-C methods can participate in TCBs themselves.

Differential Revision: https://reviews.llvm.org/D122343




More information about the All-commits mailing list