Cyber Risks · Trail of Bits Blog

Brent Pappas

Summary: Trail of Bits published a post by Brent Pappas on September 11, 2023 describing a tool called Macroni for progressive language enhancement, built around Clang, LLVM, MLIR, and VAST. The post states that the Clang AST does not provide provenance information about which C preprocessor macro expansions a given AST node came from, nor does it lower macro expansions down to LLVM Intermediate Representation code.

What you should know: Static analysis and refactoring tools built on Clang work without knowing which macros produced the code they inspect, and that gap is the problem Macroni is aimed at.

Read the original at Trail of Bits Blog ↗