C/C++ Code formatting tool that converts modern "C++" comments <'//'> to their ANSI-styled equivalent <'/* ... */'>, keeping original identation width
Original source:
// This is an integer wrapper
// This comment block is supposed to describe
// this class, but this class is totally trivial
// and boring
template<typename I>
class Integer
{
...
};
Will be formatted to
/*
* This is an integer wrapper
* This comment block is supposed to describe
* this class, but this class is totally trivial
* and boring
*/
template<typename I>
class Integer
{
...
};
ansi-format [-i/--inplace] [-v/--verbose] [SourceFile(s) ...]
-v / --verbose: enable verbose output to stderr
-i / --inplace: edit files inplace (simillar to sed or clang-format)
-h / --help: display help
Ron Shabi, 2024 <[email protected]>