diff options
author | albert-github <albert.tests@gmail.com> | 2020-09-07 09:12:30 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-09-07 09:12:30 (GMT) |
commit | 8d976817a0a71411452f213e7c73ee9db1ba8d71 (patch) | |
tree | 2f74aec4adf9a4c6211345c3d1d79e6dc2ee5e44 /src/util.cpp | |
parent | 05547d571d1f5c32e7577ef26c830a240505d0aa (diff) | |
download | Doxygen-8d976817a0a71411452f213e7c73ee9db1ba8d71.zip Doxygen-8d976817a0a71411452f213e7c73ee9db1ba8d71.tar.gz Doxygen-8d976817a0a71411452f213e7c73ee9db1ba8d71.tar.bz2 |
Double "->" in warning in case of trailing return type
When having the input
```
/*!
* \brief Performs some side effect
* \param i1 first */
auto side_effect_after(int i1, int i2) -> void;
```
we get the warning
```
warning: The following parameter of side_effect_after(int i1, int i2) -> -> void is not documented:
```
so a double "->".
The "->" has already been added in scanner.l and defargs.l so shouldn't be added here.
(also the return type gives a warning, but this is another issue #6442)..
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index acc6098..0581b5f 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -2263,7 +2263,7 @@ QCString argListToString(const ArgumentList &al,bool useCanonicalType,bool showD if (al.volatileSpecifier()) result+=" volatile"; if (al.refQualifier()==RefQualifierLValue) result+=" &"; else if (al.refQualifier()==RefQualifierRValue) result+=" &&"; - if (!al.trailingReturnType().isEmpty()) result+=" -> "+al.trailingReturnType(); + if (!al.trailingReturnType().isEmpty()) result+=al.trailingReturnType(); if (al.pureSpecifier()) result+=" =0"; return removeRedundantWhiteSpace(result); } |