Skip to content

Commit

Permalink
Add clang-format off directive to header files
Browse files Browse the repository at this point in the history
Prevent clang-format from formatting specific sections of code by adding the `// clang-format off` directive above those sections.
  • Loading branch information
forntoh committed Oct 29, 2024
1 parent ed267c2 commit 2279f3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ItemList.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include "LcdMenu.h"
#include "MenuItem.h"

// clang-format off

/**
* @class ItemList
* @brief A class representing a list of items in a menu.
Expand Down
2 changes: 2 additions & 0 deletions src/ItemRangeBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include "MenuItem.h"
#include <utils/utils.h>

// clang-format off

template <typename T>
/**
* @brief Item that allows user to select a value from a range.
Expand Down

0 comments on commit 2279f3c

Please sign in to comment.