1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 04:03:52 +00:00

Add copyright and copyright check (#424)

* Add copyright check

* Remove old license message

* Implement suggestions from code review
This commit is contained in:
Christoph Bachhuber 2020-02-10 20:28:47 +01:00 committed by GitHub
parent b1d8285db3
commit 34bfa38691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 240 additions and 46 deletions

View File

@ -10,5 +10,4 @@ filter=-whitespace/parens,-whitespace/braces # Conflict with clang-format
# Filters to be included in future # Filters to be included in future
filter=-whitespace/indent,-whitespace/comments,-readability/braces filter=-whitespace/indent,-whitespace/comments,-readability/braces
filter=-legal/copyright # Remove this line after Version 1.9

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <map> #include <map>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <map> #include <map>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <memory> #include <memory>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <CLI/Timer.hpp> #include <CLI/Timer.hpp>
#include <iostream> #include <iostream>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <algorithm> #include <algorithm>
#include <iostream> #include <iostream>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <memory> #include <memory>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <string> #include <string>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <vector> #include <vector>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <utility> #include <utility>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <vector> #include <vector>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include "subcommand_a.hpp" #include "subcommand_a.hpp"
#include <iostream> #include <iostream>
#include <memory> #include <memory>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#pragma once #pragma once
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include "subcommand_a.hpp" #include "subcommand_a.hpp"
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <CLI/Timer.hpp> #include <CLI/Timer.hpp>
#include <iostream> #include <iostream>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp> #include <CLI/CLI.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
#include <algorithm> #include <algorithm>
#include <cstdint> #include <cstdint>

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
// CLI Library includes // CLI Library includes
// Order is important for combiner script // Order is important for combiner script

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
#include <algorithm> #include <algorithm>
#include <fstream> #include <fstream>

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
#include <algorithm> #include <algorithm>
#include <fstream> #include <fstream>

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
#include <exception> #include <exception>
#include <stdexcept> #include <stdexcept>

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
#include <algorithm> #include <algorithm>
#include <string> #include <string>

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
#include <map> #include <map>
#include <string> #include <string>

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
// [CLI11:verbatim] // [CLI11:verbatim]

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
#include <algorithm> #include <algorithm>
#include <functional> #include <functional>

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
#include <string> #include <string>
#include <tuple> #include <tuple>

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
#include <algorithm> #include <algorithm>
#include <iomanip> #include <iomanip>

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
// On GCC < 4.8, the following define is often missing. Due to the // On GCC < 4.8, the following define is often missing. Due to the
// fact that this library only uses sleep_for, this should be safe // fact that this library only uses sleep_for, this should be safe

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
#include "StringTools.hpp" #include "StringTools.hpp"
#include <cstdint> #include <cstdint>

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
#include "CLI/Macros.hpp" #include "CLI/Macros.hpp"
#include "CLI/StringTools.hpp" #include "CLI/StringTools.hpp"

View File

@ -1,7 +1,10 @@
#pragma once // Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Distributed under the 3-Clause BSD License. See accompanying #pragma once
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
// [CLI11:verbatim] // [CLI11:verbatim]