Rename DebugVariables.def to DebugVariables.inl

Append this file to project source tree

Change-Id: I1d1f8538f6d28abd053a3106f9ffe4b955530416
This commit is contained in:
Mateusz Jablonski
2018-02-27 17:29:17 +01:00
committed by sys_ocldev
parent 8ace8f8256
commit cb37fb97a3
6 changed files with 11 additions and 10 deletions

View File

@@ -21,6 +21,7 @@
set(RUNTIME_SRCS_OS_INTERFACE_BASE
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/32bit_memory.h
${CMAKE_CURRENT_SOURCE_DIR}/DebugVariables.inl
${CMAKE_CURRENT_SOURCE_DIR}/debug_settings_manager.cpp
${CMAKE_CURRENT_SOURCE_DIR}/debug_settings_manager.h
${CMAKE_CURRENT_SOURCE_DIR}/device_factory.h

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Intel Corporation
* Copyright (c) 2017-2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -51,7 +51,7 @@ DebugSettingsManager<DebugLevel>::DebugSettingsManager() {
dataType tempData = readerImpl->getSetting(#variableName, flags.variableName.get()); \
flags.variableName.set(tempData); \
}
#include "DebugVariables.def"
#include "DebugVariables.inl"
}
std::remove(logFileName.c_str());

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Intel Corporation
* Copyright (c) 2017-2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -77,7 +77,7 @@ private:
dataType value; \
};
#include "DebugVariables.def"
#include "DebugVariables.inl"
#undef DECLARE_DEBUG_VARIABLE
// clang-format on
@@ -87,7 +87,7 @@ class DebugSettingsManager {
struct DebugVariables {
#define DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) \
DebugVar##variableName variableName;
#include "DebugVariables.def"
#include "DebugVariables.inl"
#undef DECLARE_DEBUG_VARIABLE
};

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Intel Corporation
* Copyright (c) 2017-2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -697,7 +697,7 @@ TEST(DebugSettingsManager, WithoutDebugFunctionality) {
bool isEqual = TestDebugFlagsChecker::isEqual(debugManager.flags.variableName.get(), defaultValue); \
EXPECT_TRUE(isEqual); \
}
#include "runtime/os_interface/DebugVariables.def"
#include "runtime/os_interface/DebugVariables.inl"
#undef DECLARE_DEBUG_VARIABLE
// test kernel dumping

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Intel Corporation
* Copyright (c) 2017-2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -80,7 +80,7 @@ TEST(SettingsFileReader, CreateFileReaderWithSettingsFile) {
size_t debugVariableCount = 0;
#define DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) \
debugVariableCount++;
#include "runtime/os_interface/DebugVariables.def"
#include "runtime/os_interface/DebugVariables.inl"
#undef DECLARE_DEBUG_VARIABLE
size_t mapCount = reader->getValueSettingsCount() + reader->getStringSettingsCount();
@@ -101,7 +101,7 @@ TEST(SettingsFileReader, GetSetting) {
EXPECT_TRUE(true); \
} \
}
#include "runtime/os_interface/DebugVariables.def"
#include "runtime/os_interface/DebugVariables.inl"
#undef DECLARE_DEBUG_VARIABLE
}