Skip to content

Option to include SPDX license tags in generated headers #1261

@alvinhochun

Description

@alvinhochun

I would like to have an option to include SPDX license tags in the headers. It would be similar to using the -license option which currently adds this:

w.write(R"(// C++/WinRT v%
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
)", CPPWINRT_VERSION_STRING);

But I would like to include lines similar to the following:

// SPDX-FileCopyrightText: Copyright (c) Microsoft Corporation
// SPDX-License-Identifier: MIT
  • Can the license header added by -license be changed? (I'm guessing no because this seems to be intended to be used by Microsoft internally when generating the headers for the Windows SDK.)
  • If not, will you accept adding a new option for this variation?
    • What should the option be called?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions