Source Insight scripts helping you understanding messy codes.
This is a source Insight script.It is suitable for most c/c++ codes in which there are too much token like #ifdef、#elif and #if that programmer could hardly understand what the codes mean, or which branch it would go through.
This script turn the inactive code to gray looking like comments by analyzing macro definition in variable cflags in your makefiles.
And what's more,it offers quick operation for svn differ,svn log, opening the explorer and locating the current file.
This is a source insight script tool,so we got to set up in source insight.
1.Open source insight and open the Base project.
2.download the scripts ,and paste them to utils.em file in your opening base project.
3.Save & close project
4.Open menu Options =》 Menu assignments
5.Type "setEnvironment" in Left “Command” Colume,Select "Project" in Right "Command" Colume,Select "End of menu" in right bottom "Menu contents" colume. And do the same to Macro "clearEnvironment" .And Press OK.
1.Pull the sample project & open it,you'll see four statements that you don't know which will be excuted.
2.Click Project=>SetEnvironment ,then instruments will show.And don't press any key.
3.Open you terminal & locate to the build directory of the sample project.
4.Type "make check" in your terminal.
5.Turn back to source insight ,and click the Sure button to go on.
6.Then you'll see like This
This script works by analysing the variable named CFLAGS in your makefile which will pass -D to gcc or g++.So if your variable who passing -D to gcc or g++ isn't CFLAGS, you should modify this script. Any help please contact me via Email:wtniao@163.com ZhiHu:ibirds