Author Topic: New show-statements command  (Read 3110 times)

asandler

  • Senior Community Member
  • Posts: 303
  • Hero Points: 27
New show-statements command
« on: September 24, 2015, 12:50:13 PM »
Seems like a pretty powerful tool.
Beta1 C++ version IMHO has few problems:
1. It only shows top level statements. I.e. if there is an if statement inside of while loop it will not show.
2. There is no way to add my own statements. E.g. we're using macro called for_each_on_queue that runs through a linked list. It's a for loop. It does not show up as a statement.

Alex.

asandler

  • Senior Community Member
  • Posts: 303
  • Hero Points: 27
Re: New show-statements command
« Reply #1 on: September 24, 2015, 12:57:28 PM »
There are some issues with this command too. For instance:

if (...)
else if (...)
else

statement shows just last else. Not very useful.

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: New show-statements command
« Reply #2 on: October 02, 2015, 08:54:12 PM »
Interesting that you found the raw command before finding it on the GUI.

Go to Tools > Options > General > Selective Display

You can adjust the level that the statement outline drills down to.  The default probably should be increased.  I could not reproduce the issue you saw with if statements, but I'm going to guess it was related to having the option set too low.

If you go to Document > C/C++ options > C/C++ Preprocessing and define your foreach macro's to expand to recognizable C++, the statement tagging should be able to take it from there.