* CC: remove the last parameter of the function ReplaceBufferText(), and all caller updated. This partially reverts rev6436. In the current code, all internal ReplaceBufferText calls (ie, called inside Tokenizer.cpp) have the second parameter updatePeek set to false, and external ReplaceBufferText calls have it set to true. All the external calls (there were just a few of them, and all of them in parserthread.cpp), and we always do a GetToken() after the ReplaceBufferText(). So it's safe to remove this parameter. Details here: http://forums.codeblocks.org/index.php/topic,18315.msg134199.html#msg134199 thanks Huki for the discussion and review.

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9917 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* CC: remove the second parameter of function Tokenizer::ReplaceFunctionLikeMacro(const Token* tk, bool updatePeekToken = true). This partially reverts rev6691. The user need to explicitly call PeekToken() to update the peek token. See details in http://forums.codeblocks.org/index.php/topic,18315.msg134199.html#msg134199

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9918 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* CCTest: add macro definition CC_PARSER_TEST to cctest.cbp

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9919 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* CC: code re-factoring for CodeCompletion plugin and CCTest projects, class ParserBase was now in its own parser_base.h/cpp files, thus remove parserdummy.cpp(this file was used to supply the class ParserBase implementation for CCTest project). ParserCommon::EFileType ParserCommon::FileType() function was moved to parser_base.cpp.

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9920 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* CCTest: add new test for the embedded unnamed class.

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9921 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* CCTest: add new test for function pointer code completion

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9922 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* CCTest: add test case for COM interface, which involve macro expansion and function pointer parsing.

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9923 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* CCTest: test case for X macros, see: http://forums.codeblocks.org/index.php/topic,19024.msg130198.html#msg130198

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9924 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* linux build fixes

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9925 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* non PCH build fix

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9926 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* more build fixes

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9927 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* IncrementalSelectListDlg: pull filename prefix matches to the top - for example, "sty" puts "Style.cxx" above "cbstyledtextctrl.h"

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9928 2a5c6006-c6dd-42ca-98ab-0921f2732cef
- non PCH build fix

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9929 2a5c6006-c6dd-42ca-98ab-0921f2732cef
- SRC: fix the eol style svn property of the file ccmanager.h.

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9930 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* cbEditor: url detection: format regex to improve readability (no functional change), strip trailing periods and commas from detected url

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9931 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* CC: Apply patch by Huki, which merges function handling and updates macro handling, see discussions in
http://forums.codeblocks.org/index.php/topic,19278.msg134227.html#msg134227.

The patch fixes handling the function pointer declaration pattern like: unsigned int (*AAA) (float BBB);
The normal function declaration and function pointer declaration are handled in the same way in the DoParse().
The patch also enable checking each lexeme like token for macro usage, thus many cctest cases like:
testing/cc_x_macro.cpp and testing/cc_function_ptr_com_interface.cpp get 100% passes. The only drawback
is that the parsing time becomes a little longer, but we can get more precise parsing results especially in codes
with many macro usages.

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9932 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* CC: disable the sanity check when expanding the macro usage, this try to work around an issue reported here: http://forums.codeblocks.org/index.php/topic,19661.msg134291.html#msg134291. We still have a expansion limit to avoid the infinite loop.

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9933 2a5c6006-c6dd-42ca-98ab-0921f2732cef
- CC: code refactoring. Change some function names. Change "ReplaceFunctionLikeMacro" to "ReplaceMacroUsage" because it handle both function like and variable like macro expansions. Change "ReplaceMacro" to "GetReplacedToken" to avoid name ambiguity.

git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9934 2a5c6006-c6dd-42ca-98ab-0921f2732cef