Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: danselmi on May 10, 2016, 11:26:14 pm

Title: Template Implementation switch
Post by: danselmi on May 10, 2016, 11:26:14 pm
The problem is already discussed in the following topic:
http://forums.codeblocks.org/index.php/topic,15295.0.html (http://forums.codeblocks.org/index.php/topic,15295.0.html)

The attached patch adds a file type: c++ template implementation.
The editormanager and code completion handles these files like source files but the compiler handles them like header files.

Any objections? Otherwise I will apply it to trunk in about a week.
Title: Re: Template Implementation switch
Post by: yvesdm3000 on May 11, 2016, 06:32:40 am
Just a small question, why would code-completion do a distinction between header and source files? A header file can also contain implementations ?

Yves
Title: Re: Template Implementation switch
Post by: oBFusCATed on May 11, 2016, 11:14:52 am
No objections here. I won't use this feature, but if you really need it then it is better in trunk.
Title: Re: Template Implementation switch
Post by: MortenMacFly on May 14, 2016, 07:26:25 am
Just a small question, why would code-completion do a distinction between header and source files? A header file can also contain implementations ?
Yes, but you usually don't compile the header- file but the source file. So for compilation its important. BTW: If the header contains the implementation of a certain methods thats fine - CC can manage that.
Title: Re: Template Implementation switch
Post by: MortenMacFly on May 14, 2016, 07:26:49 am
Any objections? Otherwise I will apply it to trunk in about a week.
Looks good to me so far, but I've used it just today.