We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7cf7e4 commit ddd59c1Copy full SHA for ddd59c1
src/frontc/cabsvisit.ml
@@ -538,7 +538,16 @@ and childrenExpression vis e =
538
let b' = visitCabsBlock vis b in
539
if b' != b then GNU_BODY b' else e
540
| EXPR_PATTERN _ -> e
541
- | GENERIC _ -> e (*TODO*)
+ | GENERIC (e, al) ->
542
+ let e' = ve e in
543
+ let al' = mapNoCopy (fun ((at, ae) as a) ->
544
+ let at' = visitCabsSpecifier vis at in
545
+ let ae' = ve ae in
546
+ if at' != at || ae' != ae then (at', ae') else a
547
+ ) al
548
+ in
549
+ if e' != e || al' != al then GENERIC (e', al') else e
550
+
551
552
and visitCabsInitExpression vis (ie: init_expression) : init_expression =
553
doVisit vis vis#vinitexpr childrenInitExpression ie
0 commit comments