Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: ollydbg on February 19, 2024, 11:38:54 am

Title: change the file name plugins\codecompletion\nativeparser.cpp to parsemanager.cpp
Post by: ollydbg on February 19, 2024, 11:38:54 am
Hi, I think the file name and class name is not correct, and I want to change the file name from "nativeparser.cpp" to "parsemanager.cpp", in-fact, I have already comments in the header file:

Code
/** @brief NativeParser class is just like a manager class to control Parser objects.
 *
 * Normally, Each C::B Project (cbp) will have an associated Parser object.
 * In another mode, all C::B projects belong to a C::B workspace share a single Parser object.
 * Nativeparser will manage all the Parser objects.
 */
class NativeParser : public wxEvtHandler, NativeParserBase
{

I see the clangd_client already has the file name changes.

I think I can handle the cbp file changes, the class name changes, but I'm not sure how to change the auto-tools build system. Any dev can help with this? Maybe, I just need to commit the changes, and you can help to change the other build system files? Thanks.
Title: Re: change the file name plugins\codecompletion\nativeparser.cpp to parsemanager.cpp
Post by: ollydbg on February 19, 2024, 01:47:25 pm
OK, patch file created, see attachment.

I have patches for all the cbp files.

Any objections?
Title: Re: change the file name plugins\codecompletion\nativeparser.cpp to parsemanager.cpp
Post by: stahta01 on February 19, 2024, 05:25:10 pm
You likely need to edit "src\codeblocks\src\plugins\codecompletion\Makefile.am"
Title: Re: change the file name plugins\codecompletion\nativeparser.cpp to parsemanager.cpp
Post by: blauzahn on February 19, 2024, 08:02:14 pm
@ollydbg: I always find names like *manager rather nondescriptive, like *object, *system, *thing.

As usual: Naming is hard.
Title: Re: change the file name plugins\codecompletion\nativeparser.cpp to parsemanager.cpp
Post by: ollydbg on February 20, 2024, 01:45:50 am
You likely need to edit "src\codeblocks\src\plugins\codecompletion\Makefile.am"

Thanks Tim.

I will modify this file and push all the commits with "- CC:" log message prefix.

Title: Re: change the file name plugins\codecompletion\nativeparser.cpp to parsemanager.cpp
Post by: ollydbg on February 20, 2024, 01:52:48 am
@ollydbg: I always find names like *manager rather nondescriptive, like *object, *system, *thing.

As usual: Naming is hard.

Yes.  Naming is hard.

Thanks for the suggestion.  Currently the parse manager class try to add a new parse or delete a finished parse.  So the new name should be better than the old name "native parser".

If we find a better name we can change it later.