Skip to content

Keeping code clean with clang-based tools

Photo of Roberto Castañeda Lozano
Hosted By
Roberto Castañeda L. and Diana P.
Keeping code clean with clang-based tools

Details

We're happy to announce our next event, which will happen during the CASTOR Software Days [1] at KTH in October.

This will be a hands-on workshop about using clang-based tools (especially clang-tidy) to analyze and update large codebases.

IMPORTANT You will have to bring your own laptop with this virtual machine running on it: https://bit.ly/310A1Mn. It has everything needed for the workshop already setup. It is an Ubuntu system with vim and emacs installed, but we recommend spending a bit of time to make it feel more like home - install your preferred editor/IDE and other configuration (the user is 'llvm' with the password 'password'). We have tried to keep it as small as possible. The download size is 3.9GB and unpacked it is 9.9GB. It uses up to 4GB RAM. We realize that working in an environment you are not familiar with may be unpleasant, but it would be difficult to reproduce the setup on other systems and we won't have the time to debug any related issues during the workshop. Therefore, it is essential that you come prepared. Please send us a message if you can't get the virtual machine running on your laptop or if you need any help whatsoever setting it up.

Prerequisites:

  • You should be comfortable writing C++ code;
  • You should have a basic understanding of the compilation process;
  • Familiarity with the shell is a plus, but really all you need to know is how to use the command history.

What you will learn during this workshop:

  • How to use clang-tidy to find potential issues with your code (ranging from actual bugs to obsolete code patterns);
  • How to use clang-tidy to automatically fix some of those issues;
  • How to hack clang-tidy to identify any code pattern you're interested in;
  • How to hack clang-tidy to automatically refactor code to meet your standards.

Food and beverages will be provided courtesy of the CASTOR Software Days organizers. Please let us know in advance if you have any dietary restrictions.

We're looking forward to seeing you there!

You can find a description of the tasks here: https://cutt.ly/AesWwit
and a couple of cheatsheets here: https://cutt.ly/lesWzj2

[1] https://castor-software-days-2019.github.io/#

Photo of LLVM / Clang Sweden socials group
LLVM / Clang Sweden socials
See more events