-
I'd like an option for clang tidy's `cppcoreguidelines-init-variables` checker that provides fixes with an initializer list when possible.
Example:
```c++
int main()
{
// int var;
// …
-
When adding littlefs to a project that uses Clang static checking that includes `clang-analyzer-core`, the `littlefs.c.o` object throws several errors during compilation:
```
[6/27] Building C ob…
-
```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))) & …
-
This issue lists areas that are good entry points to start contributing to opentelemetry-cpp.
For each issue, see the issue comments for details.
## Functional
Typically, features touching a …
-
Clang 14.0.0
I have a macro like this:
```c
#define GET_ARG(...) do { get_arg_impl(__VA_ARGS__); } while(false)
```
clang-tidy suggests adding `#pragma unroll` even though that doesn't make sen…
-
Considering add code format check by using:
- [x] clang-format/clang-format-diff
- [ ] cppchecker
- [x] clang-tidy
And add a makefile target.
-
See https://devblogs.microsoft.com/cppblog/code-analysis-with-clang-tidy-in-visual-studio/
In the “Future work” section, the article says:
> The UI doesn’t currently support pointing Visual Studio…
-
Clang-tidy tools reported some coding guideline violation issue, we need fix that.
-
The template project still needs plenty of documentation to explain what each bit is doing:
- [x] CMakeLists.txt
- [x] MyLibrary.{cpp,hpp}
- [x] MyTests.cpp
- [x] travis.yml
- [x] appveyor.yml
…