Skip to content
Commit ee83f8db authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

lib/cppparser/parser.cpp : Address problems uncovered by...

lib/cppparser/parser.cpp : Address problems uncovered by https://bugs.kde.org/attachment.cgi?id=164078

- In function skip(int l, int r) remove special handling for case
     l != '{' && (tk == '{' || tk == '}' || tk == ';')
- In function skipExpression handle case '{' by skip('{', '}').
- In function parsePtrOperator handle case Token_and (reference
  operator).
- In function parseMemInitializer handle { } in addition to ( ) as
  delimiters for initialization expression.
- In function parseFunctionBody use skip('{', '}') in lieu of detailed
  function body statement representations.
- In function parsePrimaryExpression add case Token_default for
  supporting usages like ~IAlgoScheduler() = default.

BUG: 478198
FIXED-IN: 2.38.80 (KDE releases 24.01.80)
parent 6c6c6531
Pipeline #553582 passed with stages
in 8 minutes and 17 seconds
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