Skip to content
0:00 / 0:00

#clang-tidy#staticanalysis#c++

C++ Weekly - Ep 3 Intro to clang-tidy

C++ Weekly With Jason Turner

130K subscribers • 7 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

52K views10 years ago2 recommendations

Programming languagesTools and practiceC++TestingDebugging

Jason Turner introduces clang-tidy and demonstrates how to use it for static analysis and automatic code fixes in C++.

☟☟ Awesome T-Shirts! Sponsors! Books! ☟☟ C++ Best Practices Workshops Near You: Preview: youtu.be/Ipr6ntCAm9A Sep 12-13 (Aurora, CO): cppcon.org/class-2026-best-practices/ Sep 21-22 (Kongsberg, NO): ndctechtown.com/tickets Oct 14 (Breda, NL): cppunderthesea.nl/#workshops In this video I show basic usage of clang-tidy and how to use it to automatically fix issues in your code. See T-SHIRTS AVAILABLE! ► The best C++ T-Shirts anywhere! jason-turner-shop.fourthwall.com/ WANT MORE JASON? ► My Training Classes: emptycrate.com/training.html ► Follow me on twitter: twitter.com/lefticus SUPPORT THE CHANNEL ► Patreon: patreon.com/lefticus ► Github Sponsors: github.com/sponsors/lefticus ► Paypal Donation: paypal.com/donate/?hosted_button_id=PQ4A2V6ZZFQEU GET INVOLVED ► Video Idea List: github.com/lefticus/cpp_weekly/issues JASON'S BOOKS ► C++23 Best Practices Amazon Paperback: amzn.to/47MEAhj Leanpub Ebook: leanpub.com/cpp23_best_practices/ ► C++ Best Practices Amazon Paperback: amzn.to/3wpAU3Z Leanpub Ebook: leanpub.com/cppbestpractices JASON'S PUZZLE BOOKS ► Programming Puzzles Big Book Amazon Paperback: amzn.to/4plj0cb Leanpub Ebook: leanpub.com/programming_puzzles_for_everyone ► Object Lifetime Puzzlers Book 1 Amazon Paperback: amzn.to/3g6Ervj Leanpub Ebook: leanpub.com/objectlifetimepuzzlers_book1 ► Object Lifetime Puzzlers Book 2 Amazon Paperback: amzn.to/3whdUDU Leanpub Ebook: leanpub.com/objectlifetimepuzzlers_book2 ► Object Lifetime Puzzlers Book 3 Leanpub Ebook: leanpub.com/objectlifetimepuzzlers_book3 ► Copy and Reference Puzzlers Book 1 Amazon Paperback: amzn.to/3g7ZVb9 Leanpub Ebook: leanpub.com/copyandreferencepuzzlers_book1 ► Copy and Reference Puzzlers Book 2 Amazon Paperback: amzn.to/3X1LOIx Leanpub Ebook: leanpub.com/copyandreferencepuzzlers_book2 ► Copy and Reference Puzzlers Book 3 Leanpub Ebook: leanpub.com/copyandreferencepuzzlers_book3 ► OpCode Puzzlers Book 1 Amazon Paperback: amzn.to/3KCNJg6 Leanpub Ebook: leanpub.com/opcodepuzzlers_book1 RECOMMENDED BOOKS ► Bjarne Stroustrup's A Tour of C++ (now with C++20/23!): amzn.to/3X4Wypr AWESOME PROJECTS ► The C++ Starter Project - Gets you started with Best Practices Quickly - github.com/cpp-best-practices/cpp_starter_project ► C++ Best Practices Forkable Coding Standards - github.com/cpp-best-practices/cppbestpractices O'Reilly VIDEOS ► Inheritance and Polymorphism in C++ - oreilly.com/library/view/inheritance-and-polymorphism/978149… ► Learning C++ Best Practices - oreilly.com/library/view/learning-c-best/9781491954898/

Why it's here

2 people recommend this

What people say. Recommended as a helpful introduction to using clang-tidy for static analysis in C++ projects.

u/Bokkutoin r/embedded • Recommends

On “clang-tidy: Which check flags you typically use?”

I sadly don't use it yet at my workplace, but I would look into Jason Turner's content about clang-tidy. There's a C++ template that has a clang-tidy file (with integration with CMake). And he has two videos, that talk about clang-tidy, that I thought might help you. Here are the links: - clang-tidy file of the C++ Project Template - C++ Weekly - Ep 3 Intro to clang-tidy - C++ Weekly - Ep 148 - clang-tidy Checks To Avoid I'm sure there's probably other videos of his that can be useful. But I think that's where I would start to look if I were looking for advice about clang-tidy. Although his advice might not be for embedded specifically, so you might need to adapt. I hope this helps :…

u/Bug13in r/embedded • Recommends

On “Does anyone do static or dynamic analysis? Why/why not? What do you use?”

this maybe? [video