aboutsummaryrefslogtreecommitdiff
path: root/third-party/ghc
diff options
context:
space:
mode:
authorJim Flynn <jimfly01@e127806.cambridge.arm.com>2022-06-14 10:58:23 +0100
committerNikhil Raj <nikhil.raj@arm.com>2022-07-08 15:26:05 +0100
commit6217c3d550cc8d677793b3bd5c80e2a1b3ce3bac (patch)
tree2eb16da51a5f3b2da755307b5f119a801748cb6f /third-party/ghc
parent0eba1a250623025bd4ef28a43f804955201ed831 (diff)
downloadarmnn-6217c3d550cc8d677793b3bd5c80e2a1b3ce3bac.tar.gz
IVGCVSW-7024 Add missing license info for reuse lint
Signed-off-by: Jim Flynn <jim.flynn@arm.com> Change-Id: I97dee6982e0a7be01c13e9e803c0997547a39ff1
Diffstat (limited to 'third-party/ghc')
-rw-r--r--third-party/ghc/README.md.license4
-rw-r--r--third-party/ghc/filesystem.hpp14
2 files changed, 12 insertions, 6 deletions
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 <s.schuemann@pobox.com>
+# 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 <s.schuemann@pobox.com>
//
+// 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 <typename char_type>
constexpr char_type path_helper_base<char_type>::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<value_type>;
using path_helper_base<value_type>::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 <typename Enum>
@@ -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<unsigned>(S_RJCT) : static_cast<unsigned>((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 <class StringType, typename std::enable_if<(sizeof(typename StringType::value_type) == 1)>::type* = nullptr>