Author Topic: CC plugin interface redesign  (Read 173193 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: CC plugin interface redesign
« Reply #135 on: April 02, 2014, 03:10:45 pm »
hmmm... On my windows machine I seem to be missing right click, Find Declaration/Find Implemention options. Just me?
You mean you don't have those entries in the context menu?
I don't have such problem with nightly build rev9744.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: CC plugin interface redesign
« Reply #136 on: April 02, 2014, 04:34:50 pm »
[...]
create a console-project with the wizard (c++),
in main type std:: and chose any of the suggestions and I get the function with all parameter definitions as completion.
std::abs expands to (e.g.) std::abs(float __x)
That is odd.  For me, it just completes to std::abs(|) (where "|" is the caret) when I am within the body of main().  I only get that behaviour if I am in the global scope and have "Add function arguments' types and names when autocompleted outside function" checked.
What does it look like in your autocomplete listing?  (For me it is: [icon]abs(): _GLIBCXX_CONSTEXPR float .)
It's the same here.
But I'm again not able to reproduce it.
Unfortunately I had created my test project in my temp-folder (like most of the time) and it does not longer exist.
I do not recall which header I included yesterday, but it was definitey not cmath directly.
I try to investigate and post here again.

Maybe I had some incomplete lines, so CC thought I was outside a function.

I don't have such issue.
I'm using rev 9744 on WinXP. I have the options checked on as Alpha said.
Both auto completion inside a function body or in global namespace works fine.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.