llvm-tooling

Create LLVM/Clang-based tools for source analysis, transformation, and IDE integration.

868|100|Updated Jan 10, 2022
One-click install
npx skills add https://github.com/gmh5225/awesome-llvm-security --skill llvm-tooling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llvm-tooling
Source: https://github.com/gmh5225/awesome-llvm-security/tree/main/.claude/skills/llvm-tooling
Command: npx skills add https://github.com/gmh5225/awesome-llvm-security --skill llvm-tooling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LLVM tooling is essential for building custom analysis, refactoring, and debugging utilities for C/C++ projects. This skill provides a structured approach to create tools using LLVM/Clang infrastructure, enabling developers to extend compilers, automate code transformations, and integrate with IDEs.

Core Features & Use Cases

  • Clang plugin development: extend Clang's behavior during compilation.
  • LibTooling-based tools: standalone utilities for code analysis, refactoring, and transformation.
  • LLDB extension development: create debugger commands or custom views.
  • Clangd / Language Server Protocol integrations: provide custom code actions, diagnostics.
  • Use Case: build tools that analyze and transform codebases, or integrate tooling into IDEs.

Quick Start

Install the LLVM tooling skill and create a simple LibTooling-based tool to enumerate function declarations in a C++ file. Then run the tool against a source file to list function names and locations.

Frequently Asked Questions about llvm-tooling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Clang plugin for custom C++ code analysis?

To build a Clang plugin for custom C++ code analysis, you use LLVM/Clang libraries to extend compiler behavior during compilation. This skill provides a structured approach for creating plugins to analyze and transform source code.

What is the best way to create a standalone LibTooling utility for code refactoring?

Creating a standalone LibTooling utility for code refactoring involves using LLVM/Clang infrastructure to build standalone tools. This skill enables developers to build LibTooling-based analyzers for automated code transformations.

Can I use Clangd to integrate custom code actions and diagnostics into an IDE?

Yes, you can use Clangd to integrate custom code actions and diagnostics into an IDE via the Language Server Protocol. This skill supports creating Clangd integrations to provide custom features for C/C++ projects.

How do I create LLDB extensions for custom debugger commands?

To create LLDB extensions for custom debugger commands, you utilize LLVM tooling to build debugger extensions. This skill enables the development of LLDB extensions to create custom views and debugger tooling.

Does LLVM tooling support function-call analysis and automated refactoring?

Yes, LLVM tooling supports function-call analysis and automated refactoring through LibTooling-based utilities and Clang plugins. This skill provides practical examples like function-call analyzers and automated refactors for C/C++ projects.