Skip to content

Commit

Permalink
Merge pull request #3 from Alpaca-zip/feature/update_readme
Browse files Browse the repository at this point in the history
Feature/update readme
  • Loading branch information
Alpaca-zip authored Sep 12, 2023
2 parents c0a35b4 + 64ae9b3 commit ec14435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,3 @@ CATKIN_IGNORE

# vscode
.vscode

# compiler logs
compile_commands.json
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ $ sudo apt-get install clang clang-tidy
```
**2. Format with Clang-Tidy**
```
$ catkin build <this_package> --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1
$ cp ~/<your_ros_workspace>/build/<this_package>/compile_commands.json <path_of_this_package>/
$ roscd <this_package> && clang-tidy ./src/<your_cpp>.cpp -p=./ -fix
$ cd <path_to_your_workspace> && catkin build <this_package> --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1
$ clang-tidy -p build/<this_package>/ <path_to_this_package>/src/<your_cpp> -fix
```
Recommended tool : [catkin_tidy](https://github.com/nyxrobotics/catkin_tidy)
### Black
Expand Down

0 comments on commit ec14435

Please sign in to comment.