-
## Description
Using the `doctest.h`, clang-tidy swears at any macros for testing.
### Steps to reproduce
```cpp
#include
// NOLINTNEXTLINE(misc-no-recursion)
auto factorial(int x) -> i…
-
# Summary of the new feature/enhancement
[clang-tidy](https://clang.llvm.org/extra/clang-tidy) is a great C++ linter with many useful automated refactorings. We may integrate it to our pipeline, star…
-
I am trying to use this build extension, but I am getting the following error:
```
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
baz…
-
Hello,
We're going to start working on supporting `clang-tidy` for distribution as this will greatly increase the speed of our static analysis.
Since FASTBuild already supports msvc's, I figured y…
-
## Description
clang-tidy gives warnings of unused variables in test cases when compiled without doctest.
Clang-tidy uses some clever methods to omit test cases from the binary when compiled with …
garyo updated
3 months ago
-
Currently, clang-tidy warnings link within . This results in seeing documentation for the latest version of clang tools, which can contain features which are not present in the user's current version…
-
I wrote for a quick lecture to introduce clang-tidy to my colleagues a faulty C++ snippet upon which I intended to run clang-tidy:
```c++
#include
class Circle
{
public:
Circle(…
-
This code:
```cpp
#include
#include
struct Structy {
std::string foo;
int bar;
};
int main() {
auto *s = new Structy{
.foo = "foo",
.bar = 1,
};
std::cout fo…
-
The following code snippet will trigger `readability-redundant-casting` and suggests removing the `static_cast`. Doing so would lead to a compilation failure.
```
class A
{
int a;
};
class…
-
clang-tidy 18.1.2 segfaulted with this error message. I was not able to reproduce it.
```
$ clang-tidy myfile.cpp -checks="-*,misc-const-correctness" -p build_dir
PLEASE submit a bug report to http…