Easy way to remove all c++ comments from code
Qt Creator and other tools
3
Posts
3
Posters
5.3k
Views
1
Watching
-
wrote on 18 Oct 2011, 08:06 last edited by
Hi all,
I need to give a part of my source code to a customer but I wat to remove all comments from the code:
@
//my comment/*
my comment
*/
@Is there a way to do that from QtCreator.
I'm actually trying with the find function and RegExp. I find all occurrence of:
@
//.*
@
and I replace with :
@
//------------
@
This is not so difficult but how can I find the following comment:
@
/*
my comment
*/
@?
-
wrote on 18 Oct 2011, 08:32 last edited by
You can use Regular Expression in the find-/replace field in QtCreator.
-
wrote on 18 Oct 2011, 10:27 last edited by
"Try this":http://lmgtfy.org/?q=c+++comment+remover
1/3