News for hackers. Stuff that matters.
Re:Additional C/C++ Tooling by amelius on Friday July 24, 2015 @09:01PM (#9946150)
> What did I miss?

Perhaps a tool to generate header files, so we don't have to write every function declaration twice?

Re:Additional C/C++ Tooling by nulltype on Friday July 24, 2015 @09:24PM (#9946199)
I use makeheaders: http://www.hwaci.com/sw/mkhdr/

It's pretty amazing.

If you can't use makeheaders, I prefer the Plan 9 include style where header files are not allowed to include header files: http://doc.cat-v.org/bell_labs/pikestyle

Re:Additional C/C++ Tooling by amelius on Friday July 24, 2015 @09:34PM (#9946213)
Interesting. Do you know if it works with C++14?
Re:Additional C/C++ Tooling by kazinator on Friday July 24, 2015 @10:35PM (#9946325)
My educated guess: not a chance. It's probably not going to grok C++ member declaration syntax, templates, namespaces, and so on.
Re:Additional C/C++ Tooling by nulltype on Friday July 24, 2015 @09:40PM (#9946222)
I don't use C++, so I have no idea.
Re:Additional C/C++ Tooling by exDM69 on Saturday July 25, 2015 @08:52AM (#9947455)
As annoying as it is, especially when updating function signatures, I kinda enjoy having separate header files. It clearly defines the public vs. private interface(s), it's a place to put your docstring comments in and a single file that can provide a quick glance to how a module works.

Although it is much less practical in C++ than in plain C, when you have to put the whole class definitions (including private member functions) in a header.

A good editor/tags system/ide should support jumping between definition and declaration quickly, this definitely makes it a bit less painful (e.g. vim + ctags + cscope work fine).

Re:Additional C/C++ Tooling by ndesaulniers on Friday July 24, 2015 @10:57PM (#9946371)
Such as? Take my money!
Re:Additional C/C++ Tooling by MichaelCrawford on Friday July 24, 2015 @09:06PM (#9946162)
I design my programs by writing the header files first.
Re:Additional C/C++ Tooling by huu on Friday July 24, 2015 @10:32PM (#9946322)
This approach makes me happy. Interface is key.