I got an error when apply one patch:
$ patch <../patches/CodeBlocks_patch_huki_130906/cc_enum_values.patch -p0
patching file `src/plugins/codecompletion/parser/expression.cpp'
patching file `src/plugins/codecompletion/parser/expression.h'
patch: **** malformed patch at line 36: Index: src/plugins/codecompletion/parser
/parserthread.cpp
EDIT: problem solved, I found that an empty line is missing, that is mostly caused by manually editing/spliting the patch file@@ -88,7 +88,7 @@
PostfixVector m_PostfixExpression;
InfixVector m_InfixExpression;
- bool m_Result;
+ long m_Result; //MOD(huki), return type was (bool)
bool m_Status;
};
Index: src/plugins/codecompletion/parser/parserthread.cpp
Note that there should be an empty line before the line "Index:.....".
About other patches:
cc_build_target_handling.patch
If a build target is changed, reparse the whole project, I think it is not necessory. E.g. If we change the build target in Codeblocks.cbp, the whole project get reparsed? That's not necessory I think. If the user do want to a reparse, he can right click on the context menu of the project manager, and select "reparse this project" sub menu.
cc_includes_parsing.patch
I think this is OK, priority header parsing is not needed here. The only issue is that some standalone header files included in a project, but those include files were not used/included in any cpp files, so they will be skipped by the parser.