User forums > Help

C++ comments inside generated C code?

(1/4) > >>

ToApolytoXaos:
To whom it may concern,

I typed #ifndef DEMO_H_ and press enter, and #endif auto completed with a C++ comment along with preprocessor macro name.

--- Code: ---#ifndef DEMO_H_
#endif // DEMO_H_

--- End code ---

Should not add or generate a C style comment line
--- Code: ---/* DEMO_H_ */
--- End code ---
when it's used with C code?

Thank you.

P.S.: It works OK if you compile it as C99, but not as C90.

oBFusCATed:
C::B is mostly C++ IDE, so this is not unexpected omission :)
Generally it is better to post it in the bug tracker, because here it will be forgotten.
Better option is to post a patch that fixes it :)

ToApolytoXaos:

--- Quote from: oBFusCATed on October 15, 2013, 10:11:37 am ---C::B is mostly C++ IDE, so this is not unexpected omission :)

--- End quote ---
OK, that's good to know.

--- Quote from: oBFusCATed on October 15, 2013, 10:11:37 am ---Generally it is better to post it in the bug tracker, because here it will be forgotten.

--- End quote ---
I don't like having multiple accounts for various projects I'm interested in participating. You could

* either move bug tracker from berlios to trac in a location like, trac.codeblocks.org and allow anonymous reports
* allow registered forum users to submit bug tickets or suggestions accordingly.
--- Quote from: oBFusCATed on October 15, 2013, 10:11:37 am ---Better option is to post a patch that fixes it :)

--- End quote ---
That would be brilliant if I knew where to look so I could modify it lol :D

oBFusCATed:

--- Quote from: ToApolytoXaos on October 15, 2013, 03:18:03 pm ---I don't like having multiple accounts for various projects I'm interested in participating. You could

* either move bug tracker from berlios to trac in a location like, trac.codeblocks.org and allow anonymous reports
* allow registered forum users to submit bug tickets or suggestions accordingly.
--- End quote ---
I don't think this is possible, without writing a tool to convert databases, so you'll have to hope someone will fix this bug or keep bugging devs about it, until someone does it.

I don't know where to look to fix it. Probably in the codecompletion plugin, but I don't know where.

Alpha:
Try: src/plugins/codecompletion/codecompletion.cpp line 1601 and src/plugins/contrib/SmartIndent/SmartIndentCpp.cpp line 566.

Navigation

[0] Message Index

[#] Next page

Go to full version