Skip to content

Commit

Permalink
Apply clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Nov 20, 2023
1 parent c9f38c7 commit 1aa9c71
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 200 deletions.
19 changes: 19 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
Checks: "*,
-abseil-*,
-altera-*,
-android-*,
-fuchsia-*,
-google-*,
-llvm*,
-modernize-use-trailing-return-type,
-zircon-*,
-readability-else-after-return,
-readability-static-accessed-through-instance,
-readability-avoid-const-params-in-decls,
-cppcoreguidelines-non-private-member-variables-in-classes,
-misc-non-private-member-variables-in-classes,
"
WarningsAsErrors: ''
HeaderFilterRegex: ''
FormatStyle: none
18 changes: 18 additions & 0 deletions lwow/src/include/lwow/lwow_opt.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,24 @@ extern "C" {
#define LWOW_CFG_OS_MUTEX_HANDLE void*
#endif

/**
* \brief Memory set function
*
* \note Function footprint is the same as \ref memset
*/
#ifndef LWOW_MEMSET
#define LWOW_MEMSET(dst, val, len) memset((dst), (val), (len))
#endif

/**
* \brief Memory copy function
*
* \note Function footprint is the same as \ref memcpy
*/
#ifndef LWOW_MEMCPY
#define LWOW_MEMCPY(dst, src, len) memcpy((dst), (src), (len))
#endif

/**
* \}
*/
Expand Down

0 comments on commit 1aa9c71

Please sign in to comment.