Skip to content

Commit 041179a

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 3915285 commit 041179a

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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 10 additions & 1 deletion
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 3 additions & 3 deletions
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

0 commit comments

Comments
 (0)