Commit 0ac447c1 authored by Igor Kushnir's avatar Igor Kushnir
Browse files

Ignore ':' in a macro's parameter list

':' can only appear within a comment inside a macro's parameter list. It
has no special meaning there.
parent 902bc682
......@@ -1094,7 +1094,7 @@ void Visitor::setDeclData(CXCursor cursor, MacroDefinition* decl) const
// extract macro function parameters
const auto parameters = contents.mid(openingParen, closingParen - openingParen + 1); // include both '(' and ')'
ParamIterator paramIt(u"():", parameters, 0);
ParamIterator paramIt(u"()", parameters, 0);
while (paramIt) {
decl->addParameter(IndexedString(*paramIt));
++paramIt;
......
Supports Markdown
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