rjmccall added a comment.

I agree with just special-casing this for now.



================
Comment at: clang/lib/Sema/SemaChecking.cpp:6800
+            MD->getSelector() ==
+                S.NSAPIObj->getLocalizedStringForKeySelector()) {
+          IgnoreStringsWithoutSpecifiers = true;
----------------
It's more efficient to do these checks with `isStr` instead of looking up an 
`IdentifierInfo`.  You can add a 
`Selector::isKeywordSelector(ArrayRef<StringRef>)` method to make that equally 
convenient for selectors.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D27165/new/

https://reviews.llvm.org/D27165



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to