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.