4 ms·
Those kinds of tools aren't new or emerging. The "indent" utility for C has been around for decades. I first remember using it on 4.3BSD, but it may have been a
by Pacabel 13y ago
Those kinds of tools aren't new or emerging. The "indent" utility for C has been around for decades. I first remember using it on 4.3BSD, but it may have been around before that.
- tobiasu 13y agoindent - indent and format C program source HISTORY The indent command appeared in 4.2BSD. And for context, 4.2BSD was released in 1983.
- kps 13y agocb(1) was in Seventh Edition (1979). NAME cb - C program beautifier SYNOPSIS cb DESCRIPTION Cb places a copy of the C program from the standard input on the stan- dard output with spacing and indentation that displays the structure of the program.
- danieljh 13y agoSure, the idea is not new. Using the compilers libraries and internal representation to re-format your code is new, though. You want the compilers knowledge of the code for this, e.g. while formating C++ template mess. There's a tight integration into the actual toolchains, which is a good thing.
- pjmlp 13y agoWorse, lint was part of the original C toolchain, but very few people cared to use it, because they couldn't be bored to tune the tool to their projects. This is the type of error that any static analysis tool would easily pick.