Coding style script improved and doc updated
This commit is contained in:
@@ -26,9 +26,9 @@ sudo apt-get -y install clang-format
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Hint:**
|
**Hint:**
|
||||||
You can use [utils/install.sh](./utils/install.sh) in order to install
|
You can use [install.sh](./utils/install.sh) in order to install dependencies.
|
||||||
dependencies. First read and understand the script then execute it. Type your
|
First read and understand the script then execute it. Type your password if
|
||||||
password if required.
|
required.
|
||||||
|
|
||||||
## DRAMSys Coding Style for C++ Code
|
## 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
|
+ Select the **Enable auto format on file save** check box to automatically
|
||||||
beautify files when you save them.
|
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
|
## 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)
|
[Qt Documentation - Beautifying Source Code](http://doc.qt.io/qtcreator/creator-beautifier.html)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user