Skip to content

Commit

Permalink
Change default CLANG_FORMAT definition to clang-format-8
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Oct 31, 2024
1 parent 6281fc6 commit b5bdc59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ CMAKE ?= cmake

# clang-format command
DEBUG_VARS += CLANG_FORMAT
CLANG_FORMAT ?= clang-format
CLANG_FORMAT ?= clang-format-8

# more tools
DEBUG_VARS += AWK
Expand Down
2 changes: 2 additions & 0 deletions docs/source/information/develop/clang-tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ IDE integration
There are multiple existing integrations for IDEs. You can find details
in the `ClangFormat documentation <https://clang.llvm.org/docs/ClangFormat.html>`__.

For VS Code/Codium install the **clang-format** extension and configure the path with the location of the **clang-format-8** executable.

For the Eclipse IDE we recommend installing
the `CppStyle plugin <https://github.com/wangzw/CppStyle>`__. You can
configure your IDE to auto-format the code on "Save" using the
Expand Down

0 comments on commit b5bdc59

Please sign in to comment.