Fix false detection of rvalue references in a class headers
This commit is contained in:
parent
25c4fdac73
commit
52a1be339a
@ -1406,7 +1406,6 @@ string ASFormatter::nextLine()
|
|||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
} // (isPotentialHeader && !isInTemplate)
|
} // (isPotentialHeader && !isInTemplate)
|
||||||
|
|
||||||
// determine if this is an Objective-C statement
|
// determine if this is an Objective-C statement
|
||||||
@ -1592,7 +1591,6 @@ string ASFormatter::nextLine()
|
|||||||
}
|
}
|
||||||
|
|
||||||
appendCurrentChar();
|
appendCurrentChar();
|
||||||
|
|
||||||
} // end of while loop * end of while loop * end of while loop * end of while loop
|
} // end of while loop * end of while loop * end of while loop * end of while loop
|
||||||
|
|
||||||
// return a beautified (i.e. correctly indented) line.
|
// return a beautified (i.e. correctly indented) line.
|
||||||
@ -2805,6 +2803,9 @@ bool ASFormatter::isPointerOrReference() const
|
|||||||
{
|
{
|
||||||
if (previousNonWSChar == '>')
|
if (previousNonWSChar == '>')
|
||||||
return true;
|
return true;
|
||||||
|
// This is a logical expression in a pre-definition header
|
||||||
|
if (foundPreDefinitionHeader)
|
||||||
|
return false;
|
||||||
string followingText = peekNextText(currentLine.substr(charNum + 2));
|
string followingText = peekNextText(currentLine.substr(charNum + 2));
|
||||||
if (followingText.length() > 0 && followingText[0] == ')')
|
if (followingText.length() > 0 && followingText[0] == ')')
|
||||||
return true;
|
return true;
|
||||||
@ -7272,5 +7273,4 @@ void ASFormatter::stripCommentPrefix()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end namespace astyle
|
} // end namespace astyle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user