A bug report (#3487406) is concerned with problems when comments occur within macro definitions when the "styling.within.preprocessor" option is off. One potential solution is to add new styles for comments inside preprocessor text. This would also allow some more choice when choosing how these comments would appear: they could be made indistinguishable from the rest of the preprocessor lines or could be blended in more than the standard comments.
The most common use of comments inside preprocessor directives is to mark the end of constructs like this:
#ifdef UNICODE
#define strcpy wcscpy
#endif /* UNICODE */
There are complex examples in multi-line macros like this:
#define BFD_FAKE_SECTION(SEC, FLAGS, SYM, NAME, IDX) \
/* name, id, index, next, prev, flags, user_set_vma, */ \
{ NAME, IDX, 0, NULL, NULL, FLAGS, 0, \
\
/* linker_mark, linker_has_input, gc_mark, gc_mark_from_eh, */ \
0, 0, 1, 0, \
...
One question here is which of the 6 comment styles would need to be duplicated as preprocessor comment styles. Are documentation comments ever located inside preprocessor text? Looking at the Doxygen documentation didn't show any examples -- it mostly shows separate lines of document comments and few examples of inline doc comments.
There is a cost to defining new styles as it requires applications to add definitions for the visual appearance of these styles.
Bug:
http://sourceforge.net/tracker/?func=detail&aid=3487406&group_id=2439&atid=102439
Neil