# clangd settings for whoson, taken from zash. The Makefile's flags are not a # compilation database, so the editor is told the same language level and # macros here. CompileFlags: Add: [-std=c23, -D_XOPEN_SOURCE=600, -D_POSIX_C_SOURCE=200809L, -D_ALL_SOURCE, -D_EXT, -D_OPEN_SYS, -D_OPEN_SYS_FILE_EXT=1, -Wall, -Wextra, -Wshadow, -Wconversion, -Wstrict-prototypes, -Wmissing-prototypes] # IBM Open XL only: the editor is not that compiler. Remove: [-fzos-le-char-mode=*, -m64] --- Diagnostics: UnusedIncludes: Strict MissingIncludes: None # The tree only builds on z/OS with IBM Open XL: Linux clangd has no # , no attrib_t/st_tag, no F_CONTROL_CVT and no __fchattr, so its # cascade from the missing z/OS headers is noise. The build on z/OS is the # authority; these are the diagnostics that cascade from those headers. Suppress: - pp_file_not_found - undeclared_var_use - unknown_typename - incomplete_type - implicit_function_declaration - implicit-function-declaration - typecheck_decl_incomplete_type - field_incomplete_or_sizeless - no_member - fatal_too_many_errors ClangTidy: # Use .clang-tidy; do not duplicate its checks here. FastCheckFilter: Strict # Two checks .clang-tidy already switches off or allows. clangd applies # its CheckOptions unevenly between clang-tidy versions, so name them # here too. The tree writes `if (ptr)` and depends on compiler-only # spellings such as `__attribute__`, which is the implementation's # namespace to define. Remove: - readability-implicit-bool-conversion - bugprone-reserved-identifier Index: Background: Build InlayHints: Enabled: false Hover: ShowAKA: true Completion: AllScopes: false Style: FullyQualifiedNamespaces: []