From 8d976817a0a71411452f213e7c73ee9db1ba8d71 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 7 Sep 2020 11:12:30 +0200 Subject: 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).. --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v0.12