Advertisement

2019 LLVM Developers’ Meeting: A. Kumar “-Wall Found Programming Errors and Engineering Effort ...”

2019 LLVM Developers’ Meeting: A. Kumar “-Wall Found Programming Errors and Engineering Effort ...”

-Wall Found Programming Errors and Engineering Effort to Enable Across a Large Codebase -Aditya Kumar

Slides:

-Wall tells the compiler to enable a lot of (~9000) warning checks. And after we enable -Werror (which tells the compiler to treat warnings as errors), the build fails and good things happen. We found real bugs by enabling the warnings and hopefully, this will prevent bugs in future. Compiler warnings are one of the best static-analysis tools we could have, so we would like to use it to the fullest.

I'll share some interesting bugs that were found as a result of enabling -Wall in a large codebase. While some of them were funny and benign, some were really critical bugs hidden in the codebase. I'll share strategies that worked and that didn't for example: enabling compiler warning per module doesn't scale well in a monorepo.

Videos Filmed & Edited by Bash Films:

LLVM,LLVM Developers' Meeting,Lightning Talks,Errors,

Yorum Gönder

0 Yorumlar