[clang] [Clang][Comments] Attach comments to decl even if preproc directives are in between (PR #88367)

Patrick Reisert via cfe-commits cfe-commits at lists.llvm.org
Mon May 6 22:32:59 PDT 2024


Boddlnagg wrote:

Regarding the positioning of Doxygen comments, I just saw this and was wondering if it's possible to also support parsing of Doxygen comments that come after the signature, which happens to be the preferred style in our codebase ...

```c++
static int doSomething(int foobar)
/** \brief ...
 * \param foobar foo bar
 * \return  return value
 */
{
...
```

Doxygen accepts this, although I don't know if it's specified/documented as such.

https://github.com/llvm/llvm-project/pull/88367


More information about the cfe-commits mailing list