Problem: When using #if-else-endif on the if(<condition>) portion, VA outline starts assuming all following functions are nested inside.
Expected behavior: All following function should be indented on same level
Reproduce Sample Code:
void func1(void) {
} void func2(void) { int x = 0; #if 1 if(x == 0) #else if( x == 1) #endif {
} } void func3(void) {
} void func4(void) {
}
System notes Support ends 2019.12.01 VA_X.dll file version 10.9.2341.2 built 2019.08.05 DevEnv.exe version 14.0.25420.1 Professional msenv.dll version 14.0.25431.1 Comctl32.dll version 6.10.17763.719 Windows 10 10.0 1809 Build 17763.720 8 processors (x86-64, WOW64) Language info: 1252, 0x409
As a temporary work around, if you change "#if 1" into "#if 0", reversing the if / else blocks, then VA Outline shows this code correctly. Hopefully helpful if you don't run into this to often.