Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

VC compiler, to find why the CC is not working

(1/1)

Loaden:
Hello everyone! I have the following tests are based on branches / codecompletion_refactoring / a SVN5741 version. Glad to see CC's latest development!

With regard to CC does not support the VC header files, I find the reasons for a bit and found that:
The test file is VC's stdio.h, I find this code is the reason!

--- Code: ---#ifdef  _POSIX_
#define _P_tmpdir   "/"
#define _wP_tmpdir  L"/"
#else
#define _P_tmpdir2   "\"
#define _wP_tmpdir2  L"\\"
#endif
--- End code ---

LOG is as follows:

--- Quote ---Reparsing saved files ...
Starting batch parsing
Parsing stage done (31 total parsed files, 3575 tokens in 0 minute (s), 0.0 seconds).
Updating class browser ...
Class browser updated.
--- End quote ---


When remove this code, then the CC is working properly, this time LOG are as follows:

--- Quote ---Reparsing saved files ...
Starting batch parsing
Parsing stage done (31 total parsed files, 3945 tokens in 0 minute (s), 0.16 seconds).
Updating class browser ...
Class browser updated.
--- End quote ---


Among them, a key factor is:

--- Code: ---#ifdef  _POSIX_
#define _P_tmpdir2   "\"
#define _wP_tmpdir2  L"\\"
--- End code ---
These two lines of code, if changed:

--- Code: ---#ifdef  _POSIX_
#define _P_tmpdir2   "/"
#define _wP_tmpdir2  L"//"
--- End code ---
This time LOG are as follows, CC work well:

--- Quote ---Reparsing saved files ...
Starting batch parsing
Parsing stage done (31 total parsed files, 3945 tokens in 0 minute (s), 0.16 seconds).
Updating class browser ...
Class browser updated.
--- End quote ---


This shows that the CC on the "\\" analytic serious bug, urge restoration, thank you!

ollydbg:
It seems in my local copy, I can't reproduce this bug.
See the screen shot.


[attachment deleted by admin]

Navigation

[0] Message Index

Go to full version