[all-commits] [llvm/llvm-project] 7437a9: [SemaObjC] Add a warning for @selector expressions...

Erik Pilkington via All-commits all-commits at lists.llvm.org
Tue Jul 7 10:30:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7437a9496528b838e6939dbcbb69a0acb5e1332d
      https://github.com/llvm/llvm-project/commit/7437a9496528b838e6939dbcbb69a0acb5e1332d
  Author: Erik Pilkington <erik.pilkington at gmail.com>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaExprObjC.cpp
    A clang/test/SemaObjC/potentially-direct-selector.m

  Log Message:
  -----------
  [SemaObjC] Add a warning for @selector expressions that potentially refer to objc_direct methods

By default, only warn when the selector matches a direct method in the current
class. This commit also adds a more strict off-by-default warning when there
isn't a non-direct method in the current class.

rdar://64621668

Differential revision: https://reviews.llvm.org/D82611


  Commit: 2f71cf6d77c5cc679968851080d0513d84ddccb6
      https://github.com/llvm/llvm-project/commit/2f71cf6d77c5cc679968851080d0513d84ddccb6
  Author: Erik Pilkington <erik.pilkington at gmail.com>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/SemaObjC/signed-char-bool-conversion.m

  Log Message:
  -----------
  [SemaObjC] Fix a -Wobjc-signed-char-bool false-positive with binary conditional operator

We were previously bypassing the conditional expression special case for binary
conditional expressions.

rdar://64134411

Differential revision: https://reviews.llvm.org/D81751


Compare: https://github.com/llvm/llvm-project/compare/62ba48b45f65...2f71cf6d77c5


More information about the All-commits mailing list