Skip to content

Commit

Permalink
clangd: ignore bugprone-sizeof-expression
Browse files Browse the repository at this point in the history
clang-tidy is complaining about this:

  Suspicious usage of 'sizeof(A*)'; pointer to aggregate

For each READ_ONCE() / WRITE_ONCE().

We don't control them, easier to silence them for the moment.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
  • Loading branch information
matttbe committed May 2, 2024
1 parent 2a0f909 commit 7e4770c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --rm -it \
If you use [VSCode for Linux kernel development](https://github.com/FlorentRevest/linux-kernel-vscode)
add-on, you can configure it to use this docker image: simply copy all files
from the [`vscode`](/tree/main/vscode) directory in your `.vscode` dir from the
kernel source (or use symbolic links).
kernel source (or use symbolic links). `.clangd` needs to be placed at the root
of the kernel source directory.

Notes:
- The VSCode add-on needs some modifications, see
Expand Down
3 changes: 3 additions & 0 deletions vscode/.clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Diagnostics:
ClangTidy:
Remove: bugprone-sizeof-expression

0 comments on commit 7e4770c

Please sign in to comment.