I just downloaded KDevelop because it scans header files to offer better suggestions in code completion.
I was looking at all the keywords it suggests when no header files are included at all:
Why is it recommending "incr"?
That's not a C++ keyword.
What is it, and what is it used for?
I thought it might be short for increment..?
Probably it's a bug. Looking at KDevelop source, incr
has been add for code completion in file languages/cpp/codecompletion/context.cpp
on line 2326. It looks like a synonym to increment operation, however only valid synonyms are: and (&&), bitand (&), and_eq (&=), or (||), bitor (|), or_eq (|=), xor (^), xor_eq (^=), not (!), not_eq (!=), compl (~)
我无法在C ++ 98或C ++ 11中看到任何提及incr
作为关键字或替代标记(例如and
for &&
)因此我只能得出结论,其他一些语言使用该关键字并且KDevelop没有正确地引入C ++ - 仅为名称建议设置关键字。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.