2023-03-16 07:35:04 +00:00
|
|
|
# Goal
|
|
|
|
|
|
|
|
|
2023-03-16 07:56:26 +00:00
|
|
|
the project has included a .clang-format as the code guideline.
|
2023-03-16 07:35:04 +00:00
|
|
|
|
|
|
|
# How to use this file
|
|
|
|
|
|
|
|
|
2023-03-26 11:34:22 +00:00
|
|
|
## CommandLine
|
|
|
|
|
|
|
|
Stash changes via `git add files` then `git-clang-format`
|
2023-03-17 01:02:15 +00:00
|
|
|
|
2023-03-26 11:34:22 +00:00
|
|
|
<https://clang.llvm.org/docs/ClangFormat.html#git-integration>
|
|
|
|
|
|
|
|
## QtCreator:
|
2023-03-16 07:35:04 +00:00
|
|
|
|
|
|
|
Check the steps in the following webpage.
|
|
|
|
https://doc.qt.io/qtcreator/creator-indenting-code.html#automatic-formatting-and-indentation
|
2023-03-17 01:02:15 +00:00
|
|
|
|
|
|
|
## Visual Studio(Newer Version)
|
|
|
|
|
|
|
|
visual studio will automatically detect this file and apply the format guideline.
|
2023-03-22 01:13:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Fix warnings reported by SonarCloud
|
|
|
|
|
|
|
|
After PR submitted , a SonarCloud analysis will take place. Fix all the warnings introduced by your PR.
|
|
|
|
Previous code may also have many warnings ,can be left alone.
|
|
|
|
![image](https://user-images.githubusercontent.com/105986/226776188-e23c4da0-4ea5-4c53-86eb-5a3da971b691.png)
|
|
|
|
|