Difference between revisions of "Clang"
Jump to navigation
Jump to search
(Create local page "clang".) |
m (Minor formatting.) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | Notes on clang-format | |
− | https://www.kernel.org/doc/html/next/dev-tools/clang-format.html | + | This local page to hold notes and references about clang-format and related C, C++ and higher level language formatters and code checkers. |
+ | |||
+ | First references . . . | ||
+ | |||
+ | * https://dojofive.com/wp-content/uploads/2024/03/Modern-Embedded-Journey.pdf | ||
+ | |||
+ | * https://www.kernel.org/doc/html/next/dev-tools/clang-format.html | ||
+ | |||
+ | 2025-09-10 | ||
+ | |||
+ | * https://github.com/pocc/pre-commit-hooks - C/C++ hooks to integrate with pre-commit | ||
+ | |||
+ | . . . above link found near or at the end of Reddit forum post https://www.reddit.com/r/cpp/comments/bh8dbt/precommit_cc_integrations_clangformat_clangtidy/. | ||
+ | |||
+ | * https://stackoverflow.com/questions/55965712/how-do-i-add-clang-formatting-to-pre-commit-hook | ||
+ | |||
+ | == [[#top|^]] Specific Format Choicel == | ||
+ | |||
+ | What does the following clang-format setting do? | ||
+ | |||
+ | AlignAfterOpenBracket: Align | ||
+ | |||
+ | == [[#top|^]] LLVM Clang-format References == | ||
+ | |||
+ | * https://releases.llvm.org/3.6.1/tools/clang/docs/ClangFormatStyleOptions.html |
Latest revision as of 16:44, 15 September 2025
Notes on clang-format
This local page to hold notes and references about clang-format and related C, C++ and higher level language formatters and code checkers.
First references . . .
2025-09-10
- https://github.com/pocc/pre-commit-hooks - C/C++ hooks to integrate with pre-commit
. . . above link found near or at the end of Reddit forum post https://www.reddit.com/r/cpp/comments/bh8dbt/precommit_cc_integrations_clangformat_clangtidy/.
^ Specific Format Choicel
What does the following clang-format setting do?
AlignAfterOpenBracket: Align