User forums > General (but related to Code::Blocks)
Code Completion in foreach loop
koonschi:
Alright, it seems like it's done .. Is there something like a testing framework or similar where I could add/get some test cases?
I tested multiple cases, seems to be alright though ..
So should I just submit it?
ollydbg:
--- Quote from: koonschi on October 06, 2012, 04:24:55 pm ---Alright, it seems like it's done ..
--- End quote ---
Good work.
--- Quote ---Is there something like a testing framework or similar where I could add/get some test cases?
--- End quote ---
There is a testing project called "cctest.cbp", its under "trunk\src\plugins\codecompletion", you can build this project, then run the app. (The app will open the file "test.h", and parse it, you can see the log of parserthread or other classes), I think we can use some kind of testing framework like cpp-unit-test in the future.
--- Quote ---I tested multiple cases, seems to be alright though ..
So should I just submit it?
--- End quote ---
Go ahead. Thanks.
koonschi:
Alright, uploaded it :)
ollydbg:
--- Quote from: koonschi on October 06, 2012, 05:41:41 pm ---Alright, uploaded it :)
--- End quote ---
Good work, I'm testing your patchAdded code completion of declarations in for/if/while heads, Thanks.
ollydbg:
Some comments:
1, RemoveTemplateArgs is missing in header file, comments needed for this function.
2,
--- Code: --- // for loop heads look like this:
// ([init1 [, init2 ...] ] ; [cond1 [, cond2 ..]], [mod1 [, mod2 ..]])
--- End code ---
should have the second ";" instead of ",".
BTW: It is the first time I see you use another instance (smallTokenizer) of Tokenizer class in Parserthread. :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version