summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-02-06 17:27:29 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-02-14 18:17:07 +0100
commitc33435b85f94b2403f5a782a5f2eb12d5de57772 (patch)
tree9094595e340a3ec7f0331df08d64140e30aebd2f /src
parente965a53193f30af80c5b48f4777cbd55a7dc37ea (diff)
downloadjustbuild-c33435b85f94b2403f5a782a5f2eb12d5de57772.tar.gz
pragma_special.hpp: Inline global scope maps
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/file_system/symlinks_map/pragma_special.hpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/buildtool/file_system/symlinks_map/pragma_special.hpp b/src/buildtool/file_system/symlinks_map/pragma_special.hpp
index c01c7fe8..49fa9c7e 100644
--- a/src/buildtool/file_system/symlinks_map/pragma_special.hpp
+++ b/src/buildtool/file_system/symlinks_map/pragma_special.hpp
@@ -31,15 +31,16 @@ enum class PragmaSpecial : std::uint8_t {
};
/// \brief Pragma "special" value map, from string to enum
-std::unordered_map<std::string, PragmaSpecial> const kPragmaSpecialMap = {
- {"ignore", PragmaSpecial::Ignore},
- {"resolve-partially", PragmaSpecial::ResolvePartially},
- {"resolve-completely", PragmaSpecial::ResolveCompletely}};
+inline std::unordered_map<std::string, PragmaSpecial> const kPragmaSpecialMap =
+ {{"ignore", PragmaSpecial::Ignore},
+ {"resolve-partially", PragmaSpecial::ResolvePartially},
+ {"resolve-completely", PragmaSpecial::ResolveCompletely}};
/// \brief Pragma "special" value inverse map, from enum to string
-std::unordered_map<PragmaSpecial, std::string> const kPragmaSpecialInverseMap =
- {{PragmaSpecial::Ignore, "ignore"},
- {PragmaSpecial::ResolvePartially, "resolve-partially"},
- {PragmaSpecial::ResolveCompletely, "resolve-completely"}};
+inline std::unordered_map<PragmaSpecial, std::string> const
+ kPragmaSpecialInverseMap = {
+ {PragmaSpecial::Ignore, "ignore"},
+ {PragmaSpecial::ResolvePartially, "resolve-partially"},
+ {PragmaSpecial::ResolveCompletely, "resolve-completely"}};
#endif // INCLUDED_SRC_BUILDTOOL_FILE_SYSTEM_SYMLINKS_MAP_PRAGMA_SPECIAL_HPP