[PATCH] D39913: [ObjC] warn about availability attributes missing from a method's declaration when they're specified for a method's definition

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 25 00:10:52 PST 2017


ahatanak accepted this revision.
ahatanak added a comment.

LGTM



================
Comment at: lib/Sema/SemaDeclAttr.cpp:2295
+      MissingIntroduced =
+          MissingIntroduced ? Decl->getIntroduced().empty() : false;
+      MissingDeprecated =
----------------
I feel like using "if" is easier to understand than a conditional operator, but it's up to you:

```
if (MissingIntroduced)
  MissingIntroduced = Decl->getIntroduced().empty();
```


Repository:
  rL LLVM

https://reviews.llvm.org/D39913





More information about the cfe-commits mailing list