Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-tidy: Add option to silence GLib macro warnings #684

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

aperezdc
Copy link
Member

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 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.
@aperezdc aperezdc added the enhancement New feature or request label Dec 19, 2023
@aperezdc aperezdc self-assigned this Dec 19, 2023
@aperezdc aperezdc merged commit 0224239 into master Dec 19, 2023
5 checks passed
@aperezdc aperezdc deleted the aperezdc/clangd-silence-glib-macro-warnings branch December 19, 2023 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants