Skip to content
Commit f6f07a4f authored by Igor Kushnir's avatar Igor Kushnir
Browse files

ParamIterator: add support for zero parameters: () or <>

The displayed tooltips for macros and identifiers with zero parameters
were correct even before this commit. For example,
"Function macro: mempty()" for `#define mempty()`;
"ClassName< > objectName" for objectName in `ClassName<> objectName;`.
However the unit tests revealed that the corresponding MacroDefinition
object contained a single parameter with an empty name. This didn't pose
any practical problems, but wrong models could cause issues later.

MacroNavigationContext::html() displayed parentheses only if at least
one parameter existed. In order to keep the tooltip correct (as opposed
to "Function macro: mempty" for the example above), display parentheses
if the macro is function-like instead.
parent 0d1381aa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment