Skip to content

Commit 5cdfd8e

Browse files
committed
Fix license headers and manually reflow some awkward comments
The SPDX-license header must be on its own line according to the spec
1 parent 12e8bda commit 5cdfd8e

File tree

373 files changed

+1127
-748
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

373 files changed

+1127
-748
lines changed

examples/codegen/codegen.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file codegen.cpp
1011
*

examples/codegen/helpers.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*/
910

1011
#include "helpers.h"

examples/codegen/helpers.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*/
910

1011
#pragma once

examples/collector/collector.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file collector.cpp
1011
*

examples/hello_world/hello_world.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2020-2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
*/
1011
#include <iostream>

scripts/verify_license.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@ def main():
2020
parser = argparse.ArgumentParser()
2121
parser.add_argument('-f', '--files', nargs='+', default=[])
2222
args = parser.parse_args()
23+
failed = []
2324
for file in args.files:
24-
verify_file_has_license(file)
25+
try:
26+
verify_file_has_license(file)
27+
except Exception:
28+
failed.append(file)
29+
30+
for fail in failed:
31+
print(f'{fail}', file=sys.stderr)
32+
33+
return len(failed) != 0
2534

2635

2736
if __name__ == "__main__":

source/adapters/mock/ur_mock.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2019-2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file ur_null.cpp
1011
*

source/adapters/mock/ur_mock.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2019-2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file ur_null.hpp
1011
*

source/common/linux/ur_lib_loader.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
*/
1011
#include <dlfcn.h>

source/common/logger/ur_level.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (C) 2023 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
3-
// Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
4-
// LLVM-exception
5-
3+
// Exceptions. See LICENSE.TXT
4+
//
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#ifndef UR_LEVEL_HPP
77
#define UR_LEVEL_HPP 1
88

source/common/logger/ur_logger.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (C) 2023 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
3-
// Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
4-
// LLVM-exception
5-
3+
// Exceptions. See LICENSE.TXT
4+
//
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
#ifndef UR_LOGGER_HPP
77
#define UR_LOGGER_HPP 1
88

source/common/logger/ur_logger_details.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Copyright (C) 2023 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
3-
// Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
4-
// LLVM-exception
3+
// Exceptions. See LICENSE.TXT
4+
//
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
56

67
#ifndef UR_LOGGER_DETAILS_HPP
78
#define UR_LOGGER_DETAILS_HPP 1

source/common/logger/ur_sinks.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Copyright (C) 2023 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
3-
// Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
4-
// LLVM-exception
3+
// Exceptions. See LICENSE.TXT
4+
//
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
56

67
#ifndef UR_SINKS_HPP
78
#define UR_SINKS_HPP 1

source/common/umf_helpers.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2023-2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
*/
1011

source/common/ur_filesystem_resolved.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Copyright (C) 2023 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
3-
// Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
4-
// LLVM-exception
3+
// Exceptions. See LICENSE.TXT
4+
//
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
56

67
#ifndef UR_FILESYSTEM_RESOLVED_HPP
78
#define UR_FILESYSTEM_RESOLVED_HPP 1

source/common/ur_lib_loader.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
*/
1011
#ifndef UR_LIB_LOADER_HPP

source/common/ur_pool_manager.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
*/
1011

source/common/ur_singleton.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2022-2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
*/
1011

source/common/ur_util.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2022-2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
*/
1011

source/common/ur_util.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2022-2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
*/
1011

source/common/windows/ur_lib_loader.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2023 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
*/
1011
#include "ur_lib_loader.hpp"

source/loader/layers/sanitizer/asan/asan_allocator.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file asan_allocator.cpp
1011
*

source/loader/layers/sanitizer/asan/asan_allocator.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file asan_allocator.hpp
1011
*

source/loader/layers/sanitizer/asan/asan_buffer.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file asan_buffer.cpp
1011
*

source/loader/layers/sanitizer/asan/asan_buffer.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file asan_buffer.hpp
1011
*

source/loader/layers/sanitizer/asan/asan_ddi.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file asan_ddi.cpp
1011
*

source/loader/layers/sanitizer/asan/asan_ddi.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file asan_ddi.hpp
1011
*

source/loader/layers/sanitizer/asan/asan_interceptor.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
* Copyright (C) 2024 Intel Corporation
55
*
66
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
7-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
8-
* LLVM-exception
7+
* Exceptions. See LICENSE.TXT
8+
*
9+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
910
*
1011
* @file asan_interceptor.cpp
1112
*

source/loader/layers/sanitizer/asan/asan_interceptor.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file asan_interceptor.hpp
1011
*

source/loader/layers/sanitizer/asan/asan_libdevice.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file asan_libdevice.hpp
1011
*

source/loader/layers/sanitizer/asan/asan_options.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file asan_options.cpp
1011
*

source/loader/layers/sanitizer/asan/asan_options.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file asan_options.hpp
1011
*

source/loader/layers/sanitizer/asan/asan_quarantine.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (C) 2024 Intel Corporation
44
*
55
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
7-
* LLVM-exception
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
89
*
910
* @file asan_quarantine.cpp
1011
*

0 commit comments

Comments
 (0)