trailofbits / pasta

Peter's Amazing Syntax Tree Analyzer
Apache License 2.0
123 stars 9 forks source link

Improve pretty printer for comma-separated VarDecls and FieldDecls #97

Open pgoodman opened 1 year ago

pgoodman commented 1 year ago

int a __attribute__((annotate("a"))), b __attribute__((annotate("b")));

In the above, we'll print this roughly as:

int a __attribute__((annotate("a")));
int b __attribute__((annotate("b")))

This affects the algorithm in PrintedTokenRange::AlignTokens.