Community
Participate
Working Groups
Created attachment 241538 [details] here i attach a snap shot of eclipse Kepler with codan plugin In C language compiler throw error when a pre-processor or const value is changed but codan does not give any error when I change the value. codan should be0 intelligent enough to detect such type of problem. for eg: ... 1. #define testingvariable_1 5 2. const int temp1 = 23; 3. 4. 5. void main(void) 6. { 7. int temp11,temp12; 8. 9. puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */ 10. 11. /*It is supposed to show error here*/ 12. testingvariable_1 = 6; /*error :lvalue can not be modify*/ 13. temp1 = 5; /*error :lvalue can not be modify*/ 14. } ..... here in 1st and 2nd line i define pre-processor and constant respectively but at line number 12 and 13 it is not showing any type of problem. but if you consider this problem in visual studio you will get an error. please solve this problem.
Moving to CDT for comment. However, please make better quality bug reports. This is not a blocker severity issue. Do not cc a large list of committers who have nothing to do with the issue.
ok, i will try to make better quality of bug report. can you please give me the solution of this.
Dear Curtis, I tried this kind of code in VS2010 and found it catches this issue on the fly.....I too believe this kind of issue can be caught by codan as we code.