Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

STL class member or standard C++ keyword?

(1/1)

stefanos_:
I have got confused with the following output.

If I start typing for example, "std::vector::ite...", the auto completion mechanism will display "iterator" as part of vector class.

std::vector::iterator

If I start typing "std::vector<int>::iter...", the auto completion will display "iterator" as part of C++ keyword list.

std::vector<int>::iterator

Is this how it supposed to work? I got confused :S

P.S.: Is there a reason why "img" does not work with pasteboard.co (and I had to use "url") or is it because forums need upgrade to the latest version of SMF that could have fixed this issue?

ollydbg:

--- Quote ---P.S.: Is there a reason why "img" does not work with pasteboard.co (and I had to use "url") or is it because forums need upgrade to the latest version of SMF that could have fixed this issue?
--- End quote ---
I think the site (pasteboard.co) does no allow an external link/access to the image. Our forum does not have the issue.


--- Quote ---I have got confused with the following output.

If I start typing for example, "std::vector::ite...", the auto completion mechanism will display "iterator" as part of vector class.

std::vector::iterator

If I start typing "std::vector<int>::iter...", the auto completion will display "iterator" as part of C++ keyword list.

std::vector<int>::iterator

Is this how it supposed to work? I got confused :S
--- End quote ---
I think:
In the first case, "iterator" is a member of std::vector, so it show it correctly.
In the second case, the parser failed to parse the statement "std::vector<int>::iter", so as a fullback, it shows some C++ keyword, which contains a C++ keyword named "iterator".

stefanos_:
Another question I would like to ask if I may. With NetBeans, I hover on a keyword and press Ctrl key and that keyword becomes a symbolic link to the original location of that keyword; if it's class String, it would take me to the actual location of that class file and so forth.

Is it difficult to implement the same logic more or less for Code::Blocks? If yes, which part of project should I look at so I would experiment a bit?

oBFusCATed:

--- Quote from: ToApolytoXaos on June 12, 2013, 07:05:00 pm ---Is it difficult to implement the same logic more or less for Code::Blocks? If yes, which part of project should I look at so I would experiment a bit?

--- End quote ---
Ctrl-shift+. or Ctrl-. does almost the same thing.

Navigation

[0] Message Index

Go to full version