Skip to content

Conversation

@Myriad-Dreamin
Copy link
Contributor

@Myriad-Dreamin Myriad-Dreamin commented Sep 6, 2025

There are two ways to configure clang-tidy in clangd.

  • P1: configure in .clangd
  • P2: configure in .clang-tidy and clangd will choose the one nearest configuration when seeing a source file.
    • For example, src/module-A/A.cc will use src/module-A/.clang-tidy first instead of .clang-tidy.

Following PR configures clang-tidy in clice.toml (P1) and respects .clang-tidy without watching changes (P2).

  • configure clang-tidy in clice.toml (P1)
  • get clangd's FragmentCompiler
  • use .clang-tidy without watching changes (P2)

Blocked by #200

Add clang-tidy support in CompilationParams

Remove the legacy fast check filter option
…dy header

- Removed the previous configuration for clang-tidy header generation in CMake.
- Updated include directories in both CMake and xmake to reference the new generated header location.
- Added a new generated header file for clang-tidy configuration with private restrictions.
@Myriad-Dreamin Myriad-Dreamin changed the title Configure tidy clice Configure clang-tidy in clice.toml Sep 6, 2025
@Myriad-Dreamin Myriad-Dreamin changed the title Configure clang-tidy in clice.toml Configure clang-tidy Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant