From 6217c3d550cc8d677793b3bd5c80e2a1b3ce3bac Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Tue, 14 Jun 2022 10:58:23 +0100 Subject: IVGCVSW-7024 Add missing license info for reuse lint Signed-off-by: Jim Flynn Change-Id: I97dee6982e0a7be01c13e9e803c0997547a39ff1 --- third-party/ghc/README.md.license | 4 ++++ third-party/ghc/filesystem.hpp | 14 ++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 third-party/ghc/README.md.license (limited to 'third-party/ghc') diff --git a/third-party/ghc/README.md.license b/third-party/ghc/README.md.license new file mode 100644 index 0000000000..5da816353b --- /dev/null +++ b/third-party/ghc/README.md.license @@ -0,0 +1,4 @@ +# +# Copyright (c) 2018, Steffen Schümann +# SPDX-License-Identifier: MIT +# diff --git a/third-party/ghc/filesystem.hpp b/third-party/ghc/filesystem.hpp index 1f0fe39209..bc00025f8e 100644 --- a/third-party/ghc/filesystem.hpp +++ b/third-party/ghc/filesystem.hpp @@ -6,6 +6,8 @@ // // Copyright (c) 2018, Steffen Schümann // +// SPDX-License-Identifier: MIT +// // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -211,7 +213,7 @@ public: template constexpr char_type path_helper_base::preferred_separator; #endif - + // 30.10.8 class path class GHC_FS_API_CLASS path #if defined(GHC_OS_WINDOWS) && defined(GHC_WIN_WSTRING_STRING_TYPE) @@ -228,7 +230,7 @@ public: #endif using string_type = std::basic_string; using path_helper_base::preferred_separator; - + // 30.10.10.1 enumeration format /// The path format in wich the constructor argument is given. enum format { @@ -1154,7 +1156,7 @@ GHC_INLINE std::error_code make_system_error(int err) return std::error_code(err ? err : errno, std::system_category()); } #endif - + #endif // GHC_EXPAND_IMPL template @@ -1277,7 +1279,7 @@ GHC_INLINE unsigned consumeUtf8Fragment(const unsigned state, const uint8_t frag codepoint = (state ? (codepoint << 6) | (fragment & 0x3fu) : (0xffu >> category) & fragment); return state == S_RJCT ? static_cast(S_RJCT) : static_cast((utf8_state_info[category + 16] >> (state << 2)) & 0xf); } - + GHC_INLINE bool validUtf8(const std::string& utf8String) { std::string::const_iterator iter = utf8String.begin(); @@ -1295,9 +1297,9 @@ GHC_INLINE bool validUtf8(const std::string& utf8String) } } // namespace detail - + #endif - + namespace detail { template ::type* = nullptr> -- cgit v1.2.1