# LibTooling

Published articles for LibTooling.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## What we've been reading in May (2025)

DevFeed: [What we've been reading in May (2025)](<https://devfeed.tech/articles/what-we-ve-been-reading-in-may-2025-47311.md>)

Original publisher: [Read original article](<https://interrupt.memfault.com/blog/may-2025-roundup>)

Author: Gillian Minnehan

Published: 2025-06-06T00:00:00Z

Content type: article

Language: en

Sources: [Interrupt](<https://devfeed.tech/sources/interrupt.md>)

Topics: [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>), [Microcontroller](<https://devfeed.tech/topics/microcontroller.md>), [Assembly](<https://devfeed.tech/topics/assembly.md>), [gcc](<https://devfeed.tech/topics/gcc.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [LibTooling](<https://devfeed.tech/topics/libtooling.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>), [Reverse Engineering](<https://devfeed.tech/topics/reverse-engineering.md>), [Ghidra](<https://devfeed.tech/topics/ghidra.md>), [Raspberry Pi](<https://devfeed.tech/topics/raspberry-pi.md>)

Tags: [assembly](<https://devfeed.tech/tags/assembly.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [developer](<https://devfeed.tech/tags/developer.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [gcc](<https://devfeed.tech/tags/gcc.md>), [ghidra](<https://devfeed.tech/tags/ghidra.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [implementing](<https://devfeed.tech/tags/implementing.md>), [libtooling](<https://devfeed.tech/tags/libtooling.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [microcontroller](<https://devfeed.tech/tags/microcontroller.md>)

### AI overview

A May 2025 roundup of articles, videos, tools, projects, and events focused mainly on embedded software and hardware development. It highlights GCC usability improvements, an RP2350 bootloader, MCU selection, Rust atomics and AVR assembly, LLVM-based documentation tooling, Rust code-coverage performance, Raspberry Pi firmware updates, reverse engineering, and embedded industry events.

### Source excerpt

Here are the articles, videos, and tools that we've been excited about this May. Continue reading...

## GSoC 2024: Improve Clang Doc

DevFeed: [GSoC 2024: Improve Clang Doc](<https://devfeed.tech/articles/gsoc-2024-improve-clang-doc-43112.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2024-12-04-improve-clang-doc/>)

Author: Peter Chou

Published: 2024-12-23T00:00:00Z

Content type: article

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [Documentation](<https://devfeed.tech/topics/documentation.md>), [LibTooling](<https://devfeed.tech/topics/libtooling.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>)

Tags: [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [clang](<https://devfeed.tech/tags/clang.md>), [clang-doc](<https://devfeed.tech/tags/clang-doc.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [libtooling](<https://devfeed.tech/tags/libtooling.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [make](<https://devfeed.tech/tags/make.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

A Google Summer of Code 2024 project improved Clang-Doc, an LLVM libTooling-based documentation generator. The work addressed usability issues in generated HTML, added support for more C++ constructs, expanded end-to-end tests, and improved performance after identifying excessive runtime, memory use, and crashes on large codebases.

### Source excerpt

Hi, my name is Peter, and this year I was involved in Google Summer of Code 2024. I worked on improving the Clang-Doc documenation generator Mentors: Petr Hosek and Paul Kirth Project Background Clang-Doc is a documentation generator developed on top of libtooling, as analternative to Doxygen. Development started in 2018 and continued through 2019,however, it has since stalled. Currently, the tool can generate HTML, YAML, and markdown but the generated output has usability issues. This GSOC project aimed to address the pain points regarding the output of the HTML, by adding support for various C++ constructs and reworking the CSS of the HTML output to be more user-friendly. Work Done The original scope of the project was to improve the output of Clang-Doc's generation. However during testing the tool was significantly slower than expected which made developing features for the tool impossible.Documentation generation for the LLVM codebase was taking upwards of 10 hours on my local machine. Additionally, the tool utilized a lot of memory and was prone to crashing with an out-of-memory error. Similar tools such as Doxygen and Hdoc ran in comparatively less time for the same codebase. This pointed to a significant bottleneck within Clang-Doc's code path when generating large-scale software projects. Due to this the project scope quickly changed to improving the runtime of Clang-Doc so that it could run much faster. It was only during the latter half of the project did the scope changed back to improving Clang-Doc's generation. Added More Test Cases to Clang-Doc test suite Clang-Doc previously had tests which did not test the full scope of the the HTML or Markdown output. I added more end-to-end tests to make sure that in the process of optimizing documentation generation we were not degrading the quality or functionality of the tool. In summary, I added four comprehensive tests that covered all features that we were not testing such as testing the generation for Enums,

## Breaking Loose from Third-Party Lock-In with Custom Refactoring Tools

DevFeed: [Breaking Loose from Third-Party Lock-In with Custom Refactoring Tools](<https://devfeed.tech/articles/breaking-loose-from-third-party-lock-in-with-custom-refactoring-tools-1999.md>)

Original publisher: [Read original article](<https://developers.soundcloud.com/blog//breaking-loose-from-third-party-lock-in-with-custom-refactoring-tools>)

Published: 2020-08-11T00:00:00Z

Content type: article

Language: en

Sources: [SoundCloud Backstage](<https://devfeed.tech/sources/soundcloud-backstage-blog.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [vendor lock-in](<https://devfeed.tech/topics/vendor-lock-in.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [abstract-class](<https://devfeed.tech/tags/abstract-class.md>), [abstractions](<https://devfeed.tech/tags/abstractions.md>), [accessible](<https://devfeed.tech/tags/accessible.md>), [ast-matchers](<https://devfeed.tech/tags/ast-matchers.md>), [change](<https://devfeed.tech/tags/change.md>), [code](<https://devfeed.tech/tags/code.md>), [custom](<https://devfeed.tech/tags/custom.md>), [developers](<https://devfeed.tech/tags/developers.md>), [essential](<https://devfeed.tech/tags/essential.md>), [ios](<https://devfeed.tech/tags/ios.md>), [job](<https://devfeed.tech/tags/job.md>), [libtooling](<https://devfeed.tech/tags/libtooling.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [product](<https://devfeed.tech/tags/product.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [software](<https://devfeed.tech/tags/software.md>), [software-developers](<https://devfeed.tech/tags/software-developers.md>), [technology](<https://devfeed.tech/tags/technology.md>), [third-party](<https://devfeed.tech/tags/third-party.md>), [time](<https://devfeed.tech/tags/time.md>), [tools](<https://devfeed.tech/tags/tools.md>), [with](<https://devfeed.tech/tags/with.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

SoundCloud replaced Specta in its iOS codebase by building a custom converter for more than 900 Objective-C spec files. A Clang LibTooling frontend matched Specta constructs in the AST and extracted their structure and code into JSON; Ruby parsers then generated XCTestCase classes, copied imports and variables, built setup and teardown methods and test methods, and formatted the output with clang-format. The authors found regex transformations too cumbersome and error-prone, while Xcode's refactoring features lacked the needed capabilities. Conversion time fell from hours per spec to a couple of minutes, enabling Specta's removal. The approach required upfront work and had drawbacks: limited, often outdated LibTooling documentation, edge cases requiring matcher changes, occasional need for custom matchers, and the added complexity of writing the tool in C++. The excerpt describes the process and tradeoffs but does not establish how the tool handled every possible spec.

### Source excerpt

Code refactoring is an essential part of the job of software developers. As time goes on, technology evolves, product requirements change...

## LLVM Weekly - #18, May 5th 2014

DevFeed: [LLVM Weekly - #18, May 5th 2014](<https://devfeed.tech/articles/llvm-weekly-18-may-5th-2014-42914.md>)

Original publisher: [Read original article](<https://blog.llvm.org/2014/05/llvm-weekly-18-may-5th-2014.html>)

Author: Alex Bradbury

Published: 2014-05-05T09:01:00Z

Content type: news

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [LLVM](<https://devfeed.tech/topics/llvm.md>), [clang](<https://devfeed.tech/topics/clang.md>), [JIT](<https://devfeed.tech/topics/jit.md>), [LibTooling](<https://devfeed.tech/topics/libtooling.md>), [WebKit](<https://devfeed.tech/topics/webkit.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [clang](<https://devfeed.tech/tags/clang.md>), [jit](<https://devfeed.tech/tags/jit.md>), [libtooling](<https://devfeed.tech/tags/libtooling.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [llvmweekly](<https://devfeed.tech/tags/llvmweekly.md>), [python](<https://devfeed.tech/tags/python.md>), [static-analysis](<https://devfeed.tech/tags/static-analysis.md>)

### AI overview

The eighteenth LLVM Weekly newsletter covers developments in LLVM and related projects, including a Clang-based static analysis checker for the Heartbleed bug, WebKit's FTL JavaScript JIT on Mac, LibTooling source-to-source transformations, LLVM community events, and ongoing discussions about compiler intrinsics, exceptions, coding style, and benchmarking.

### Source excerpt

Welcome to the eighteenth issue of LLVM Weekly, a weekly newsletter (published every Monday) covering developments in LLVM, Clang, and related projects. LLVM Weekly is brought to you by Alex Bradbury. Subscribe to future issues at http://llvmweekly.org and pass it on to anyone else you think may be interested. Please send any tips or feedback to asb@asbradbury.org, or @llvmweekly or @asbradbury on Twitter. I'm going to be in the San Francisco area May 13th-20th with some other Raspberry Pi people. We'll be at Maker Faire Bay Area on the 17th and 18th. Let me know if there's anything else I should check out while over there. The canonical home for this issue can be found here at llvmweekly.org. News and articles from around the web Andrew Ruef has written a blog post about using static analysis and Clang to find the SSL heartbleed bug. The code for the checker described in the blog post is available on Github. The FTL ('Fourth tier LLVM') Javascript JIT is now enabled in WebKit for Mac. The WebKit Wiki has more information. I haven't seen any public benchmark figures. Please do share if you have any. Eli Bendersky has written an article about how to use libTooling to implement source to source transformations. The next Paris LLVM Social will take place on May 5th (i.e. this evening). The LLVM Bay Area social will take place on May 8th. Please RSVP if you are interested. On the mailing lists Discussion is still going on regarding last week's proposal to add intrinsics for safe division. Philip Reames has shared his reasoning againt the proposal. This triggered a lot of discussion which is unfortunately more than I have time to summarise. Kevin Modzelewski is working on exceptions for Pyston, the LLVM-based Python JIT and asks for advice/experiences on how others have implemented them in projects like VMKit. There are a number of useful responses. Alp Toker suggests adding a coding style policy to discourage excessive use of default arguments. Yi Kong has suggested imp

## Status of the C++11 Migrator

DevFeed: [Status of the C++11 Migrator](<https://devfeed.tech/articles/status-of-the-c-11-migrator-42880.md>)

Original publisher: [Read original article](<https://blog.llvm.org/2013/04/status-of-c11-migrator.html>)

Author: Edwin Vane

Published: 2013-04-15T05:53:00Z

Content type: article

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [clang](<https://devfeed.tech/topics/clang.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [ast-matchers](<https://devfeed.tech/topics/ast-matchers.md>), [LibTooling](<https://devfeed.tech/topics/libtooling.md>), [CMake](<https://devfeed.tech/topics/cmake.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Maintainability](<https://devfeed.tech/topics/maintainability.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [build](<https://devfeed.tech/tags/build.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [clang](<https://devfeed.tech/tags/clang.md>), [cmake](<https://devfeed.tech/tags/cmake.md>), [development](<https://devfeed.tech/tags/development.md>), [libtooling](<https://devfeed.tech/tags/libtooling.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [maintainability](<https://devfeed.tech/tags/maintainability.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

The article reports progress on cpp11-migrate, a C++11 source-to-source migration tool built with Clang LibTooling and AST Matchers. It describes the project's early development, infrastructure and testing work, build requirements, and supported transformations, including range-based for loops, nullptr, auto, and override.

### Source excerpt

Since the design document for cpp11-migrate, the C++11 migrator tool, was first proposed in early December 2012 development has been making steady progress. In this article I'll talk about what's been implemented in cpp11-migrate so far, what's coming up, and how you can get involved. The purpose of the C++11 Migrator is to do source-to-source translation to migrate existing C++ code to use C++11 features to enhance maintainability, readability, runtime performance, and compile-time performance. Development is still early and transforms fall mostly into the first two categories. The migrator is based on Clang's LibTooling and the AST Matching library. Most of the development so far has been carried out by a small core group at Intel. Our focus so far has been to set up project infrastructure and testing, implement a few basic transforms, and make sure those transforms work well. Our aim is to make this tool useful to the community so we're always listening for transform ideas and feedback. How to Get cpp11-migratecpp11-migrate is located in the Extra Clang Tools repository. To build cpp11-migrate, you will need the LLVM and Clang sources as well. Follow the directions in Clang's Getting Started instructions making sure to perform the optional step of checking out the Extra Clang Tools repository. Once checked out into the correct directory the build system, after a reconfiguration, will automatically include the extra Clang tools as part of the next full build. If you're using the CMake build system, you can build just cpp11-migrate with the cpp11-migrate target. The check-clang-tools target provided by CMake will run all regression tests for extra Clang tools, including cpp11-migrate. The Transforms So FarThe C++11 Migrator currently supports four features of C++11: Range-based for loops The nullptr literal for null pointers The auto type specifier override virtual specifier The range-based for-loop transform once existed as a stand-alone tool called loop-convert c