Permalink
Browse files

Do not add extra space after pointer return value in function signature.

For example, this is correct code:
stub::function<const uint8_t*(uint32_t)> coefficient_vector_data;
  • Loading branch information...
petya2164 committed Sep 29, 2016
1 parent e6fccea commit 7eb183de855bb1b414df74a9970364f659693012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/ASFormatter.cpp
View
@@ -3576,7 +3576,8 @@ void ASFormatter::formatPointerOrReference(void)
peekedChar = currentLine[nextChar];
}
// check for cast
if (peekedChar == ')' || peekedChar == '>' || peekedChar == ',' || peekedChar == '.')
if (peekedChar == ')' || peekedChar == '>' || peekedChar == ','
|| peekedChar == '.' || peekedChar == '(')
{
formatPointerOrReferenceCast();
return;

0 comments on commit 7eb183d

Please sign in to comment.