Oliver Stöneberg
Oliver Stöneberg
This introduces `Token::exactMatch()` to use when the pattern to match is just a single one replacing calls like `Token::simpleMatch(tok, "this")`. Using GCC 11 it is unfortunately a bit slower going...
Total Ir - before and after ``` 3,053,160,825 2,606,367,442 ```
The `unmatchedSuppression` messages might be a bug where the regular expression appears to be incorrectly validated. I saw this with local runs but didn't look into it yet. There was...
probably needs some unit tests as well
```cpp #include #include struct A { std::string s; }; void f1() { std::vector v; v.push_back(A()); // warning } void f2() { std::vector v; v.push_back(A{}); // no warning } void f3()...
Reading the file via `std::istream` includes a considerable overhead caused by `std::istream::sentry` and others. Using C I/O instead reduces the "total Ir" usage by about 10%. Testing with `-q -Ilib/...
The only interesting suppress warning is currently `clang-analyzer-core.NullDereference` since it depends on very complex value flow, might be a false positive and I didn't have the time to review it.