News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Template Implementation switch

Started by danselmi, May 10, 2016, 11:26:14 PM

Previous topic - Next topic

danselmi

The problem is already discussed in the following topic:
http://forums.next.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.
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

yvesdm3000

Just a small question, why would code-completion do a distinction between header and source files? A header file can also contain implementations ?

Yves
Clang based code completion for Code::Blocks:   [url="http://github.com/yvesdm3000/ClangLib"]http://github.com/yvesdm3000/ClangLib[/url]

oBFusCATed

No objections here. I won't use this feature, but if you really need it then it is better in trunk.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: 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 ?
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MortenMacFly

Quote from: danselmi on May 10, 2016, 11:26:14 PM
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]