mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
clang-tidy configuration cleanup
Define single .clang-tidy configuration with all used checks and use NOLINT to selectively silence tool. That way cleanup should be easier. third_part/ has its own configuration that disables clang-tidy for this folder. Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
910871a706
commit
e9be9b64c6
@ -22,7 +22,7 @@ extern const DeviceDescriptor NEO::deviceDescriptorTable[];
|
||||
|
||||
class DrmNullDeviceTestsFixture {
|
||||
public:
|
||||
void SetUp() {
|
||||
void SetUp() { // NOLINT(readability-identifier-naming)
|
||||
if (deviceDescriptorTable[0].deviceId == 0) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
@ -35,7 +35,7 @@ class DrmNullDeviceTestsFixture {
|
||||
ASSERT_NE(drmNullDevice, nullptr);
|
||||
}
|
||||
|
||||
void TearDown() {
|
||||
void TearDown() { // NOLINT(readability-identifier-naming)
|
||||
}
|
||||
|
||||
std::unique_ptr<Drm> drmNullDevice;
|
||||
|
@ -53,7 +53,7 @@ using namespace NEO;
|
||||
|
||||
class DrmTestsFixture {
|
||||
public:
|
||||
void SetUp() {
|
||||
void SetUp() { // NOLINT(readability-identifier-naming)
|
||||
if (deviceDescriptorTable[0].deviceId == 0) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
@ -62,7 +62,7 @@ class DrmTestsFixture {
|
||||
rootDeviceEnvironment = executionEnvironment.rootDeviceEnvironments[0].get();
|
||||
}
|
||||
|
||||
void TearDown() {
|
||||
void TearDown() { // NOLINT(readability-identifier-naming)
|
||||
}
|
||||
ExecutionEnvironment executionEnvironment;
|
||||
RootDeviceEnvironment *rootDeviceEnvironment = nullptr;
|
||||
|
@ -245,7 +245,7 @@ int drmVirtualMemoryDestroy(drm_i915_gem_vm_control *control) {
|
||||
}
|
||||
|
||||
int drmVersion(drm_version_t *version) {
|
||||
strcpy(version->name, providedDrmVersion);
|
||||
strcpy(version->name, providedDrmVersion); // NOLINT(clang-analyzer-security.insecureAPI.strcpy)
|
||||
|
||||
return failOnDrmVersion;
|
||||
}
|
||||
|
Reference in New Issue
Block a user