24-28 August 2020
US/Pacific timezone

Clang-tidy and Clang-format

27 Aug 2020, 09:10
20m
Microconference1/Virtual-Room (LPC 2020)

Microconference1/Virtual-Room

LPC 2020

150
LLVM MC LLVM MC

Speakers

Nathan Huckleberry Miguel Ojeda

Description

Clang is a production C compiler (part of LLVM) that provides APIs for
C code parsing, formatting, custom compiler warnings, static analysis, etc. This framework has spawned widely used tools like clang-format and clang-tidy. These tools can be easily tailored for particular codebases like the Linux kernel.

This talk shows how to run clang-format, clang-tidy (including writing custom checks), and scan-build to help everyday Linux kernel development, using the kernel support we landed.

Furthermore, we will seek feedback on how we can incorporate these
tools into wider kernel dev/CI workflows, as well as what kinds of
static analyses we should seek to develop in the future.

I agree to abide by the anti-harassment policy I agree

Primary authors

Presentation Materials