Skip to content

Commit

Permalink
clang-tidy: Add option to silence GLib macro warnings
Browse files Browse the repository at this point in the history
Add a (for now) very simple configuration for clang-tidy that silences
warnings about sizeof() expressions from g_clear_{object,pointer} macros.
The clang-tidy configuration file is also used by clangd, so this also
avoids these false positive diagnostics when using it in an editor with
LSP support.
  • Loading branch information
aperezdc committed Dec 19, 2023
1 parent 6fa5157 commit 0224239
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
CheckOptions:
bugprone-sizeof-expression.WarnOnSizeOfPointerToAggregate: false

0 comments on commit 0224239

Please sign in to comment.