Author Topic: Template Implementation switch  (Read 3735 times)

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 203
Template Implementation switch
« 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

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.

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: Template Implementation switch
« Reply #1 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
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Template Implementation switch
« Reply #2 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.
(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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Template Implementation switch
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Template Implementation switch
« Reply #4 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ