How lljbash/clangd-tidy works
Main Components
a) Core Components:
• Input Handler (handles file paths and compilation database)
• Clangd Interface (manages communication with clangd process)
• Diagnostic Processor (formats and processes diagnostics)
• Output Formatter (handles different output formats)
b) External Dependencies:
• clangd (external process)
• compilation database
• source files
Specific Implementation Details
• main_cli.py (entry point and CLI handling)
• diagnostic_formatter.py (formatting logic)
• pylspclient/ (LSP communication)
• json_rpc_endpoint.py
• lsp_client.py
• lsp_endpoint.py
• lsp_structs.py
[Input Files & Compilation DB] →
• [Input Handler] →
• [Clangd Interface] ↔ [clangd process]
• ↓
• [Diagnostic Processor]
• ↓
• [Output Formatter] →
• [Diagnostic Output]
Additional Elements
A notes section showing:
• Supported file extensions
• Configuration options
• Output format options (GitHub Actions, compact, etc.)
Technical Details to Highlight
• LSP (Language Server Protocol) communication
• Async worker support
• File extension filtering
• Severity level handling
• Output formatting options