mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +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
@@ -35,7 +35,7 @@ struct Context : _ze_context_handle_t {
|
||||
return ZE_MEMORY_TYPE_UNKNOWN;
|
||||
}
|
||||
|
||||
virtual ~Context() = default;
|
||||
~Context() override = default;
|
||||
virtual ze_result_t destroy() = 0;
|
||||
virtual ze_result_t getStatus() = 0;
|
||||
virtual DriverHandle *getDriverHandle() = 0;
|
||||
|
||||
@@ -414,10 +414,10 @@ ze_result_t DeviceImp::getPciProperties(ze_pci_ext_properties_t *pPciProperties)
|
||||
}
|
||||
auto pciBusInfo = driverInfo->getPciBusInfo();
|
||||
auto isPciValid = [&](auto pci) -> bool {
|
||||
return (pci.pciDomain != NEO::PhysicalDevicePciBusInfo::InvalidValue &&
|
||||
pci.pciBus != NEO::PhysicalDevicePciBusInfo::InvalidValue &&
|
||||
pci.pciDevice != NEO::PhysicalDevicePciBusInfo::InvalidValue &&
|
||||
pci.pciFunction != NEO::PhysicalDevicePciBusInfo::InvalidValue);
|
||||
return (pci.pciDomain != NEO::PhysicalDevicePciBusInfo::invalidValue &&
|
||||
pci.pciBus != NEO::PhysicalDevicePciBusInfo::invalidValue &&
|
||||
pci.pciDevice != NEO::PhysicalDevicePciBusInfo::invalidValue &&
|
||||
pci.pciFunction != NEO::PhysicalDevicePciBusInfo::invalidValue);
|
||||
};
|
||||
if (!isPciValid(pciBusInfo)) {
|
||||
return ZE_RESULT_ERROR_UNINITIALIZED;
|
||||
|
||||
@@ -57,11 +57,11 @@ struct DriverHandleImp : public DriverHandle {
|
||||
ze_result_t releaseImportedPointer(void *ptr) override;
|
||||
ze_result_t getHostPointerBaseAddress(void *ptr, void **baseAddress) override;
|
||||
|
||||
virtual NEO::GraphicsAllocation *findHostPointerAllocation(void *ptr, size_t size, uint32_t rootDeviceIndex) override;
|
||||
virtual NEO::GraphicsAllocation *getDriverSystemMemoryAllocation(void *ptr,
|
||||
size_t size,
|
||||
uint32_t rootDeviceIndex,
|
||||
uintptr_t *gpuAddress) override;
|
||||
NEO::GraphicsAllocation *findHostPointerAllocation(void *ptr, size_t size, uint32_t rootDeviceIndex) override;
|
||||
NEO::GraphicsAllocation *getDriverSystemMemoryAllocation(void *ptr,
|
||||
size_t size,
|
||||
uint32_t rootDeviceIndex,
|
||||
uintptr_t *gpuAddress) override;
|
||||
NEO::GraphicsAllocation *getPeerAllocation(Device *device,
|
||||
NEO::SvmAllocationData *allocData,
|
||||
void *basePtr,
|
||||
|
||||
@@ -248,7 +248,7 @@ struct EventPoolImp : public EventPool {
|
||||
|
||||
ze_result_t initialize(DriverHandle *driver, Context *context, uint32_t numDevices, ze_device_handle_t *phDevices);
|
||||
|
||||
~EventPoolImp();
|
||||
~EventPoolImp() override;
|
||||
|
||||
ze_result_t destroy() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user