Skip to content

Commit 5a50f2b

Browse files
authored
Merge pull request doxygen#10545 from albert-github/feature/issue_10544
issue doxygen#10544 Doxygen omits closing '>' in method returning `std::function< void(A *) >`
2 parents 3a5d278 + 3422311 commit 5a50f2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/doxygen.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2592,7 +2592,9 @@ static int findFunctionPtr(const std::string &type,SrcLangExt lang, int *pLength
25922592
size_t be=type.rfind('>');
25932593
bool templFp = false;
25942594
if (be!=std::string::npos) {
2595-
templFp = type.find("::*")>be || type.find("::&")>be; // hack to find, e.g 'B<X>(A<int>::*)'
2595+
size_t cc_ast = type.find("::*");
2596+
size_t cc_amp = type.find("::&");
2597+
templFp = (cc_ast != std::string::npos && cc_ast>be) || (cc_amp != std::string::npos && cc_amp>be); // hack to find, e.g 'B<X>(A<int>::*)'
25962598
}
25972599

25982600
if (!type.empty() && // return type is non-empty

0 commit comments

Comments
 (0)