본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

clangd-lsp

bowen31337 제작

Coding Agents & IDEs
854clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

C/C++ language server (clangd) providing code intelligence, diagnostics, and formatting for .c, .h, .cpp, .cc.

설명

이 스킬이 하는 일

C/C++ language server integration using clangd, part of the LLVM project. Provides autocomplete, go-to-definition, find references, real-time diagnostics, and refactoring for C and C++ files. Works with any LSP-compatible editor.

clangd uses the same compiler frontend as Clang, so its diagnostics and code understanding are more accurate than generic IDE plugins that parse code independently.

사용 시점

  • Navigating a large C++ codebase with go-to-definition
  • Catching compilation errors in real time while editing
  • Formatting C++ source files with clang-format
  • Renaming a symbol across an entire C project
  • Running static analysis on C++ code before committing

예시 워크플로

입력

User asks: set up C++ code intelligence for my cmake project

에이전트
  1. 1

    Generate compile_commands.json by running cmake with -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

  2. 2

    Create a .clangd config file in the project root with compiler flags and diagnostic settings

  3. 3

    Verify clangd picks up the project by checking that go-to-definition resolves across files

  4. 4

    Run clang-tidy to surface static analysis warnings

  5. 5

    Run clang-format to auto-format modified source files

출력

C++ project has full code intelligence with accurate diagnostics, autocomplete, and formatting integrated into the editor

요구 사항

  • clangd installed (via LLVM: brew install llvm, apt install clangd, dnf install clang-tools-extra, or winget install LLVM.LLVM)

설치

clawhub install bowen31337/clangd-lsp

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크