-
Clang-tidy tools reported some coding guideline violation issue, we need fix that.
-
As reported on #85868 (and case inside llvm/clang fixed by #90391)
We have cases like:
```cpp
for (unsigned i = TSFlags & X86II::EVEX_K ? 2 : 1;
```
Similar to #84481 it'd be much easier to…
-
With clang 14.0.3 on Windows using
test.cpp
```cpp
#include
#include
```
test.rsp
```
-I/sub -I/sub2
```
This works:
`"C:\Program Files\LLVM\bin\clang.exe" "/test.cpp" @/test.rsp`
…
-
There are two static analyzers in an LLVM project:
- https://clang.llvm.org/extra/clang-tidy/
- https://clang-analyzer.llvm.org/
Would be nice to check tarantool source code with these analyzers,…
-
| | |
| --- | --- |
| Bugzilla Link | [47460](https://llvm.org/bz47460) |
| Version | unspecified |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @martingalvan |
## Extended Descri…
-
- Issue Type: `Performance`
- Extension Name: `clang-tidy`
- Extension Version: `0.5.1`
- OS Version: `Windows_NT x64 10.0.19041`
- VSCode version: `1.51.1`
:warning: Make sure to **attach** th…
-
Readibility can be improved by specifying the type or using a literal. Maybe there could be an option to only consider fundamental types.
~~~c++
#include
void f(const std::vector& v, bool b, int…
-
```cpp
#include
void test()
{
int* p = NULL;
}
```
```
$ clang -Wzero-as-null-pointer-constant test.cpp
test.cpp:5:11: warning: zero as null pointer constant [-Wzero-as-null-poin…
-
```c
void
my_func(uint16_t hex, char* ascii) {
for (uint8_t idx = 4U; idx != 0; --idx) {
uint8_t aux = (hex >> (4U * (idx - 1U))) & 0x0FU;
aux = (aux > (4U * (idx - 1U))) & …
-
I would like to see a static analysis tool to be performed on pull request. Static analysis tools helps a lot from finding flaws to enforce code quality / readability. It has ready-to-use solutions in…