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.
Add a (for now) very simple configuration for
clang-tidy
that silences warnings aboutsizeof()
expressions fromg_clear_{object,pointer}
macros. Theclang-tidy
configuration file is also used byclangd
, so this also avoids these false positive diagnostics when using it in an editor with LSP support.