I cannot avoid the inspection warning for 'Clang tidy'
Answered
I'm using google test and I'm testing a C code (not C++) but anyway every time I run the inspector I receive these errors:
- use '= default' to define a trivial default constructor
- use '= delete' to prohibit calling of a special member function
It is my code:
[code]
#include "prime/is_prime.c"
#include <gtest/gtest.h>
namespace {
TEST(is_prime_test, yes) {
EXPECT_EQ(1, is_prime(1));
}
}
[/code]

Please sign in to leave a comment.
Hello, Israel.
You can suppress the inspection via "Alt-Enter" on the warning, then press "right" and select one of the suppression options from the submenu (either the specific clang-tidy check, or the clang-tidy completely).
You can also go to Settings | Editor | Inspections | C/C++ | General | Clang-Tidy and disable it there.