1
CodeCompletion redesign / Re: use PPToken for preprocessor in native CC
« Last post by ollydbg on Today at 12:10:55 am »I have been looking at this commit (the exact location of the changes was not specified).
PPToken looks to me just a way to pack token information, so I assume the real benefit is using the deque afterwards.
Thanks for the comment.
The "deque" here is used to move the token cursor forward or backward, because we have some interface to "peek token" (look ahead) or "undo token"(move the cursor backward), so I think a "deque" is a good structure to use.
Quote
I just suggest changingCodeto thisif (m_PPTokenStream.size() > 0)
Codeif (!m_PPTokenStream.empty())
Thanks, but what's the difference? Maybe the "empty()" function runs much faster?
Quote
and removing this partI will read this part of the code later.Codeelse
;// peekToken.Clear();
Thanks.