clang-format: enable sorting includes

Include files are now grouped and sorted in following order:
1. Header file of the class the current file implements
2. Project files
3. Third party files
4. Standard library

Change-Id: If31af05652184169f7fee1d7ad08f1b2ed602cf0
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2019-02-27 11:39:32 +01:00
parent 3eb10d0cc2
commit 8b57d28116
1208 changed files with 3921 additions and 4072 deletions

View File

@@ -1,16 +1,18 @@
/*
* Copyright (C) 2018 Intel Corporation
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "binary_decoder.h"
#include "elf/reader.h"
#include "helper.h"
#include "runtime/helpers/file_io.h"
#include "runtime/helpers/ptr_math.h"
#include "helper.h"
#include <cstring>
#include <fstream>

View File

@@ -1,16 +1,18 @@
/*
* Copyright (C) 2018 Intel Corporation
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "binary_encoder.h"
#include "CL/cl.h"
#include "elf/writer.h"
#include "helper.h"
#include "runtime/helpers/file_io.h"
#include "CL/cl.h"
#include "helper.h"
#include <algorithm>
#include <cstring>
#include <fstream>

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Intel Corporation
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,8 +7,8 @@
#pragma once
#include <sstream>
#include <vector>
#include <string>
#include <vector>
class BinaryEncoder {
public:

View File

@@ -1,14 +1,14 @@
/*
* Copyright (C) 2018 Intel Corporation
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <exception>
#include <string>
#include <vector>
#include <exception>
void addSlash(std::string &path);

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2017-2018 Intel Corporation
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "decoder/binary_encoder.h"
#include "decoder/binary_decoder.h"
#include "offline_compiler/offline_compiler.h"
#include "offline_compiler/utilities/safety_caller.h"
#include "runtime/os_interface/os_library.h"
#include "decoder/binary_decoder.h"
#include "decoder/binary_encoder.h"
#include <CL/cl.h>
using namespace OCLRT;

View File

@@ -5,29 +5,32 @@
*
*/
#include "offline_compiler.h"
#include "elf/writer.h"
#include "runtime/helpers/debug_helpers.h"
#include "runtime/helpers/file_io.h"
#include "runtime/helpers/hw_info.h"
#include "runtime/helpers/string.h"
#include "runtime/helpers/validators.h"
#include "runtime/os_interface/debug_settings_manager.h"
#include "runtime/os_interface/os_inc_base.h"
#include "runtime/os_interface/os_library.h"
#include "runtime/platform/extensions.h"
#include "cif/common/cif_main.h"
#include "cif/helpers/error.h"
#include "cif/import/library_api.h"
#include "igfxfmid.h"
#include "ocl_igc_interface/code_type.h"
#include "ocl_igc_interface/fcl_ocl_device_ctx.h"
#include "ocl_igc_interface/igc_ocl_device_ctx.h"
#include "ocl_igc_interface/platform_helper.h"
#include "offline_compiler.h"
#include "igfxfmid.h"
#include "runtime/helpers/file_io.h"
#include "runtime/os_interface/debug_settings_manager.h"
#include "runtime/os_interface/os_inc_base.h"
#include "runtime/os_interface/os_library.h"
#include "runtime/helpers/string.h"
#include "runtime/helpers/debug_helpers.h"
#include "runtime/helpers/hw_info.h"
#include "runtime/helpers/validators.h"
#include "runtime/platform/extensions.h"
#include "elf/writer.h"
#include <iomanip>
#include <list>
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <list>
#ifdef _WIN32
#include <direct.h>

View File

@@ -6,13 +6,15 @@
*/
#pragma once
#include "cif/common/cif_main.h"
#include "ocl_igc_interface/igc_ocl_device_ctx.h"
#include "ocl_igc_interface/fcl_ocl_device_ctx.h"
#include "elf/writer.h"
#include "cif/common/cif_main.h"
#include "ocl_igc_interface/fcl_ocl_device_ctx.h"
#include "ocl_igc_interface/igc_ocl_device_ctx.h"
#include <cstdint>
#include <string>
#include <memory>
#include <string>
namespace OCLRT {

View File

@@ -1,13 +1,16 @@
/*
* Copyright (C) 2017-2018 Intel Corporation
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "hw_cmds.h"
#include "runtime/helpers/options.h"
#include "runtime/helpers/array_count.h"
#include "hw_cmds.h"
#include <cstddef>
namespace OCLRT {

View File

@@ -1,13 +1,13 @@
/*
* Copyright (C) 2018 Intel Corporation
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/os_interface/os_library.h"
#include "offline_compiler/offline_compiler.h"
#include "offline_compiler/utilities/linux/safety_guard_linux.h"
#include "runtime/os_interface/os_library.h"
using namespace OCLRT;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Intel Corporation
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,11 +7,12 @@
#pragma once
#include "runtime/helpers/abort.h"
#include <cstdlib>
#include <cstdio>
#include <cstdlib>
#include <execinfo.h>
#include <signal.h>
#include <setjmp.h>
#include <signal.h>
static jmp_buf jmpbuf;

View File

@@ -6,6 +6,7 @@
*/
#include "seh_exception.h"
#include "runtime/os_interface/os_library.h"
#include <memory>
@@ -16,9 +17,10 @@
#include <dbghelp.h>
#pragma warning(pop)
#include <windows.h>
#include <excpt.h>
#include <psapi.h>
#include <windows.h>
using namespace std;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Intel Corporation
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,8 +7,9 @@
#pragma once
#include "windows.h"
#include "excpt.h"
#include "windows.h"
#include <string>
class SehException {