You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clang-include-cleaner suggest to include cstddef because of constructor (or may be method) implementation when it its inclusion in header should be enough.
clang-tidy misc-include-cleaner output:
clang-tidy -checks="-*,misc-include-cleaner" Method.cpp
1 warning generated.
Method.cpp:3:18: warning: no header providing "size_t" is directly included [misc-include-cleaner]
2 |
3 | Test::Test(const size_t size)
| ^
I tried clang-include-cleaner from main (7d8b4eb).
Header file (Method.h):
#pragma once
#include <cstddef>
class Test
{
public:
Test(const size_t size);
protected:
size_t size_;
};