views:

48

answers:

0

Does somebody know if (and how) it is possible to add the namespace in the name of the automatic generated include guards in Eclipse CDT, when creating a new class using the .hpp/.cpp templates?

For me eclipse generates new class with namespace nicely, but the include-guards does not contain the namespace, so if the same header file exists twice in two different directories, only one can be included.

In my case the name of the namespace, the eclipse project name and name of source directory are all the same, so these could be alternatives as prefix for the include-guard.