[FEAT] Add in C/CPP code formatting #15

Closed
opened 2024-07-25 23:09:33 +00:00 by jakegoodwin · 2 comments
Owner
  • Add a configuration for code formatting.
  • Add script shell function to automatically apply code formatting.

From some initial investigation on tools for this I found that clang-tidy and clang-format are commonly recommended tools. Indent is another tool that I've seen as a recommendation for devs that like gcc.

I found a full list of formatters as a repo here: https://github.com/rishirdua/awesome-code-formatters

- Add a configuration for code formatting. - Add script shell function to automatically apply code formatting. From some initial investigation on tools for this I found that clang-tidy and clang-format are commonly recommended tools. Indent is another tool that I've seen as a recommendation for devs that like gcc. I found a full list of formatters as a repo here: https://github.com/rishirdua/awesome-code-formatters
jakegoodwin added the
enhancement
label 2024-07-25 23:09:33 +00:00
Author
Owner

Some of the code beautifiers and tools I found were ancient and seem somewhat dead. I'm going forward with clang's tooling as they are already the only one's maintaining the LSP so GNU's offerings with indent are less appealing to me at the moment.

Some of the code beautifiers and tools I found were ancient and seem somewhat dead. I'm going forward with clang's tooling as they are already the only one's maintaining the LSP so GNU's offerings with indent are less appealing to me at the moment.
Author
Owner

Added functionality into the .otto.sh shell script along with a config file that's hidden in the root directory.

Added functionality into the `.otto.sh` shell script along with a config file that's hidden in the root directory.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TDD-Templates/cmake_cpputest_template#15
No description provided.