[all-commits] [llvm/llvm-project] 81bc13: Correct swift_bridge duplicate attribute warning l...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu Feb 11 04:13:01 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81bc1365d8f85a125a6db6a5a1acff3ceddcbe9e
      https://github.com/llvm/llvm-project/commit/81bc1365d8f85a125a6db6a5a1acff3ceddcbe9e
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

  Changed paths:
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/SemaObjC/attr-swift_bridge.m

  Log Message:
  -----------
  Correct swift_bridge duplicate attribute warning logic

The swift_bridge attribute warns when the attribute is applied multiple
times to the same declaration. However, it warns about the arguments
being different to the attribute without ever checking if the arguments
actually are different. If the arguments are different, diagnose,
otherwise silently accept the code. Either way, drop the duplicated
attribute.




More information about the All-commits mailing list