Clang 22 enables query-based checks for translucent typedefs
The author demonstrates how to use query-based custom clang-tidy checks introduced in Clang version 22 to enforce translucent typedefs in C. By writing custom AST queries, developers can catch unintended implicit conversions from regular char pointers to dynamic string typedef pointers across assignments, function calls, return statements, and variable declarations. Open article →