|
|
|
|
|
by eatonphil
2646 days ago
|
|
+1 for clang-format. I have been using it as a beautifier on generated code in a TypeScript to C++ compiler. There are some other features I wish it did for me in cleaning up my generated code. For example it doesn't remove superfluous parenthesis. It doesn't remove unused labels. It doesn't remove superfluous semi-colons (a single line of just a semi-colon). And so on. (I should, of course, just be building up an AST and pretty-printing the AST instead.) |
|