Uncrustify: Difference between revisions

From miki
Jump to navigation Jump to search
Line 23: Line 23:
</source>
</source>
You need a Windows compiler, like Visual Studio Express.
You need a Windows compiler, like Visual Studio Express.

== Troubleshoot ==
=== Bug - comment line not indented with tabs ===
<source lang=c>
int main(void)
{
// This line indented with space should be indented with tabs
helloWorld();

return 0;
}
</source>

Revision as of 06:30, 23 February 2017

Uncrustify is highly configurable source beautifier.

Reference

Build

Since v0.63, build with cmake. Instructions are given in the README:

mkdir build
cd build
cmake ..
make                 # or cmake --build .
sudo make install    # or sudo cmake --install

On Windows, install cmake, then it works the same:

md build
cd build
cmake ..
cmake --build . --config Release

You need a Windows compiler, like Visual Studio Express.

Troubleshoot

Bug - comment line not indented with tabs

int main(void)
{
    // This line indented with space should be indented with tabs
	helloWorld();

	return 0;
}