diff --git a/coding-style.md b/coding-style.md index 7b686d65..d0509550 100644 --- a/coding-style.md +++ b/coding-style.md @@ -26,9 +26,9 @@ sudo apt-get -y install clang-format ``` **Hint:** -You can use [utils/install.sh](./utils/install.sh) in order to install -dependencies. First read and understand the script then execute it. Type your -password if required. +You can use [install.sh](./utils/install.sh) in order to install dependencies. +First read and understand the script then execute it. Type your password if +required. ## DRAMSys Coding Style for C++ Code @@ -145,14 +145,21 @@ There is a plugin for VIM. More information can be found in + Select the **Enable auto format on file save** check box to automatically beautify files when you save them. +## Applying the Coding Style + +The script [make_pretty.sh](./utils/make_pretty.sh) applies the coding style +to the project excluding thrid party code. ## References -[Linux kernel coding style](https://github.com/torvalds/linux/blob/master/Documentation/process/coding-style.rst) +[Linux kernel coding +style](https://github.com/torvalds/linux/blob/master/Documentation/process/coding-style.rst) -[C++ Core Guidelines](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#S-cpl) +[C++ Core +Guidelines](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#S-cpl) -[PEP 8 -- Style Guide for Python Code](https://www.python.org/dev/peps/pep-0008/) +[PEP 8 -- Style Guide for Python +Code](https://www.python.org/dev/peps/pep-0008/) [Qt Documentation - Beautifying Source Code](http://doc.qt.io/qtcreator/creator-beautifier.html)