Issue 172470
Summary [clang] Support unnamed parameters in -Wdocumentation
Labels clang, clang:diagnostics
Assignees
Reporter carlosgalvezp
    Currently -Wdocumentation does not support unnamed parameters, since it requires that a name is present. For example:

```cpp
/// @param some unnamed parameter
/// @param y something 
void f(int, int y) {}
```

It fails with:

```cpp
<source>:1:12: warning: parameter 'some' not found in the function declaration [-Wdocumentation]
    1 | /// @param some unnamed parameter
      | ^~~~
```
https://godbolt.org/z/efqxdTTjb

It would be great if this use case could be supported in some way. In a relevant [Doxygen thread](https://github.com/doxygen/doxygen/issues/6926) they propose using an integer to identify the unnamed parameter:

```cpp
@param 1 some unnamed parameter
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to