Back To Schedule
Wednesday, October 17 • 5:00pm - 5:30pm
Improving code reuse in clang tools with clangmetatool

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

This talk will cover the lessons we learned from the process of writing tools with Clang's LibTooling. We will also introduce clangmetatool, the open source framework we use (and developed) to reuse code when writing Clang tools.

When we first started writing Clang tools, we realized that there is a lot of lifecycle management that we had to repeat. In some cases, people advocate for the usage of global variables to manage the lifecycle of that data, but this actually makes code reuse across tools even harder.

We also learned that, when writing a tool, it is beneficial if the code is split into two phases -- a data collection phase and, later, a post-processing phase which actually performs the bulk of the logic of the tool.

More details at https://bloomberg.github.io/clangmetatool/

avatar for Daniel Ruoso

Daniel Ruoso

Senior Software Engineer, Bloomberg
Currently working as the lead for Code Governance at Bloomberg, where we focus on driving large scale Static Analysis and Automated Refactoring. Daniel has been working over the past 20+ years with a persistent lens on how to help engineers be more effective with build, deployment... Read More →

Wednesday October 17, 2018 5:00pm - 5:30pm PDT
2 - Technical Talk (Rm LL21AB)