python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to avoid duplicate clang-tidy warnings coming from the same header?
Description
Recently I started using clang-tidy in a C++ project and I encountered an annoying problem. When a header contains error and is included in many .cpp files the error is reported multiple t...
Wojciech
Votes: 0
Answers: 0
ignore system headers when applying clang-tidy on macOS project
I’ve started using clang-tidy on my cmake based project that runs on macOS platform.
Unfortunately, this option isn’t supported on Xcode project generation but only in Makefile.
So when I compiled on ...
Zohar81
Votes: 0
Answers: 1
clang-tidy fails with OpenCV code that compiles fine
clang-tidy fails on this simple program:
#include <opencv2/core.hpp>
int main()
{
cv::Mat m;
m.at<const cv::Vec2i>(12, 34);
return 0;
}
when run with
clang-tidy-13 test.cpp ...
iliis
Votes: 0
Answers: 0
clang-tidy: `Loop variable is copied but only used as const reference; consider making it a const reference` - does it really matter?
I'm working on code that clang-tidy is flagging all over the place with
Loop variable is copied but only used as const reference; consider making it a const reference
Current code:
for (auto foo : co...

Edward Falk
Votes: 0
Answers: 1