I can't find the exact cause of this but have managed to reduce it to the following .h file:
#ifndef _TEST_H_
#define _TEST_H_
#include "test.h"
//=====================================================================================
//=====================================================================================
#endif /* _TEST_H_ */
At the mid-line between the two comment lines, I want to start a doc comment so I hit forward slash, star, star and then return:
#ifndef _TEST_H_
#define _TEST_H_
#include "test.h"
//=====================================================================================
/**
* |
*/
//=====================================================================================
#endif /* _TEST_H_ */
The '|' character shows where the cursor is now position. I start typing the comment, maybe leading with a 'D' and expect it just to accept my typing as normal, but instead the first star on the line moves to column 1 and another star appears at the end of the line:
#ifndef _TEST_H_
#define _TEST_H_
#include "test.h"
//=====================================================================================
/**
* D *
*/
//=====================================================================================
#endif /* _TEST_H_ */
Unfortunately, this forum seems to have swallowed the line ending star, but it does exist at column 79. Weird.
If I remove the #include or #if or comment lines then this doesn't occur and a normal doc comment can be used.