Why does the xcode IDE think "friend" is a reserved word

I am working on a personal project and have the following code in a new class that I created:

@property (readonly, getter = isFriend) BOOL friend;

There is nothing wrong with it, and when I create it, it compiles fine, but when we look at this line of code in xcode IDE, it looks like

Code snippet screenshot

My question is: why xcode IDEdoes the word seem to be frienda keyword / reserved word?

+1
source share
1 answer

Presumably because it friendis a reserved word in C ++. See Friendship and Inheritance .

xCode , , IDE. ++ 11 Xcode?

+4

Source: https://habr.com/ru/post/1533164/


All Articles