C++ Weekly - Ep 148 - clang-tidy Checks To Avoid

preview_player
Показать описание
☟☟ Awesome T-Shirts! Sponsors! Books! ☟☟

Upcoming Workshop: Applied constexpr: The Power of Compile-Time Resources, C++ Under The Sea, October 10, 2024

T-SHIRTS AVAILABLE!

WANT MORE JASON?

SUPPORT THE CHANNEL

GET INVOLVED

JASON'S BOOKS

► C++23 Best Practices

► C++ Best Practices

JASON'S PUZZLE BOOKS

► Object Lifetime Puzzlers Book 1

► Object Lifetime Puzzlers Book 2

► Object Lifetime Puzzlers Book 3

► Copy and Reference Puzzlers Book 1

► Copy and Reference Puzzlers Book 2

► Copy and Reference Puzzlers Book 3

► OpCode Puzzlers Book 1


RECOMMENDED BOOKS

AWESOME PROJECTS

O'Reilly VIDEOS

Рекомендации по теме
Комментарии
Автор

Why are platform specific checks are even part of default clang tidy? Is it Google's internal project or what?

VFPnkQT
Автор

Hi Jason, maybe i didn't understand properly your advice for Abseil but from what i understand, the clang-tidy checks aren't designed for abseil developers but for abseil users. I think they are here to help the user to use abseil the way it was intended by the abseil developers. No ?

Shonallein
Автор

1:12 clang-tidy google project warnings

lolol, these corpses always show their color;

yash
Автор

I also find it is useful to have a different set of warnings in production code and tests. For example, I disable "avoid magic numbers" in tests.

LesleyLai
Автор

Dear Mr. Jason Turner,



I am student of university and I started learning about Clang.

Here's an error that clang-tidy produced in my project:


warning: non-const reference parameter 'variables', make it const or use a pointer [google-runtime-references]
void variables);
^


The entire purpose of a non-const reference parameter is to modify it! In this case, I'm filling the vector with stuff.


Excuse for your precious time. Can you make a short comment on this one? With real respect.

konstantinrebrov
Автор

Short question but what's your standpoint to the last C++20 Ranges stuff that's currently happening on twitter?

platin
Автор

which kind of c++ is this I haven't studied this before

YUVRAJSINGH-izgt
Автор

good video!
Happy new year, and thanks for your awesome work in 2018 here!

HaraldAchitz
Автор

Why would you be so certain that Google employees wouldn't be watching your videos?

homomorphic
Автор

Great video, this one is more useful than many of the "programming" ones, most of them being "too modern".

tauicsicsics