Skip to content

Commit

Permalink
Fix license headers and manually reflow some awkward comments
Browse files Browse the repository at this point in the history
The SPDX-license header must be on its own line according to the spec
  • Loading branch information
ldrumm committed Jan 15, 2025
1 parent e233656 commit ea581dc
Show file tree
Hide file tree
Showing 372 changed files with 1,124 additions and 746 deletions.
5 changes: 3 additions & 2 deletions examples/codegen/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file codegen.cpp
*
Expand Down
5 changes: 3 additions & 2 deletions examples/codegen/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/

#include "helpers.h"
Expand Down
5 changes: 3 additions & 2 deletions examples/codegen/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/

#pragma once
Expand Down
5 changes: 3 additions & 2 deletions examples/collector/collector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file collector.cpp
*
Expand Down
5 changes: 3 additions & 2 deletions examples/hello_world/hello_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2020-2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/
#include <iostream>
Expand Down
11 changes: 10 additions & 1 deletion scripts/verify_license.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument('-f', '--files', nargs='+', default=[])
args = parser.parse_args()
failed = []
for file in args.files:
verify_file_has_license(file)
try:
verify_file_has_license(file)
except Exception:
failed.append(file)

for fail in failed:
print(f'{fail}', file=sys.stderr)

return len(failed) != 0


if __name__ == "__main__":
Expand Down
5 changes: 3 additions & 2 deletions source/adapters/mock/ur_mock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2019-2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file ur_null.cpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/adapters/mock/ur_mock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2019-2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file ur_null.hpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/common/linux/ur_lib_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/
#include <dlfcn.h>
Expand Down
6 changes: 3 additions & 3 deletions source/common/logger/ur_level.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (C) 2023 Intel Corporation
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
// Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
// LLVM-exception

// Exceptions. See LICENSE.TXT
//
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef UR_LEVEL_HPP
#define UR_LEVEL_HPP 1

Expand Down
6 changes: 3 additions & 3 deletions source/common/logger/ur_logger.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (C) 2023 Intel Corporation
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
// Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
// LLVM-exception

// Exceptions. See LICENSE.TXT
//
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef UR_LOGGER_HPP
#define UR_LOGGER_HPP 1

Expand Down
5 changes: 3 additions & 2 deletions source/common/logger/ur_logger_details.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Copyright (C) 2023 Intel Corporation
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
// Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
// LLVM-exception
// Exceptions. See LICENSE.TXT
//
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef UR_LOGGER_DETAILS_HPP
#define UR_LOGGER_DETAILS_HPP 1
Expand Down
5 changes: 3 additions & 2 deletions source/common/logger/ur_sinks.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Copyright (C) 2023 Intel Corporation
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
// Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
// LLVM-exception
// Exceptions. See LICENSE.TXT
//
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef UR_SINKS_HPP
#define UR_SINKS_HPP 1
Expand Down
5 changes: 3 additions & 2 deletions source/common/umf_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2023-2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/

Expand Down
5 changes: 3 additions & 2 deletions source/common/ur_filesystem_resolved.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Copyright (C) 2023 Intel Corporation
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
// Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
// LLVM-exception
// Exceptions. See LICENSE.TXT
//
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef UR_FILESYSTEM_RESOLVED_HPP
#define UR_FILESYSTEM_RESOLVED_HPP 1
Expand Down
5 changes: 3 additions & 2 deletions source/common/ur_lib_loader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/
#ifndef UR_LIB_LOADER_HPP
Expand Down
5 changes: 3 additions & 2 deletions source/common/ur_pool_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/

Expand Down
5 changes: 3 additions & 2 deletions source/common/ur_singleton.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2022-2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/

Expand Down
5 changes: 3 additions & 2 deletions source/common/ur_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2022-2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/

Expand Down
5 changes: 3 additions & 2 deletions source/common/ur_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2022-2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/

Expand Down
5 changes: 3 additions & 2 deletions source/common/windows/ur_lib_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2023 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/
#include "ur_lib_loader.hpp"
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_allocator.cpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_allocator.hpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_buffer.cpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_buffer.hpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_ddi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_ddi.cpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_ddi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_ddi.hpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_interceptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_interceptor.cpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_interceptor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_interceptor.hpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_libdevice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_libdevice.hpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_options.cpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_options.hpp
*
Expand Down
5 changes: 3 additions & 2 deletions source/loader/layers/sanitizer/asan/asan_quarantine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT SPDX-License-Identifier: Apache-2.0 WITH
* LLVM-exception
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file asan_quarantine.cpp
*
Expand Down
Loading

0 comments on commit ea581dc

Please sign in to comment.