This talk will be a ground-up introduction to the LLVM/clang library infrastructure available for creating custom tools for static analysis or (clang-format-style) source-to-source transformation. Peter will discuss the LLVM and clang tooling environment and explain how clang represents C++ source code by means of an abstract syntax tree (AST), as well as ways of traversing the AST and looking for certain points of interest, such as code style violations or more severe code smells. After a theoretical introduction I will give one practical example of how any (motivated) C++ programmer can quickly build an effective tool to increase their productivity and improve the performance, style and safety of their code. By the end of the talk Peter expects listeners to have a basic understanding of the LLVM/clang tooling ecosystem and take away knowledge they can apply immediately at home or in the office.
YOU MAY ALSO LIKE:
clang-useful: exploring the clang tooling universe for fun and profit
Peter is a second-year CS student at TU Munich and currently doing a gap year to do internships and break things at Google, Facebook and Bloomberg.