aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-01-05 14:25:50 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-01-05 14:25:50 -0800
commit708e93d82acd4da9c651cc7043dfd32a182ecc11 (patch)
treef54fdba17ca3e7192476e8f249b16c8836225096 /toolsrc/include
parent6e29b7b8d4b3a21e46a721f79d184213d1c874a4 (diff)
downloadvcpkg-708e93d82acd4da9c651cc7043dfd32a182ecc11.tar.gz
vcpkg-708e93d82acd4da9c651cc7043dfd32a182ecc11.zip
Use Nested Namespace Definition
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/BuildInfo.h4
-rw-r--r--toolsrc/include/Paragraphs.h4
-rw-r--r--toolsrc/include/vcpkg_info.h4
-rw-r--r--toolsrc/include/vcpkglib_helpers.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/toolsrc/include/BuildInfo.h b/toolsrc/include/BuildInfo.h
index 49811d521..c90ad7a4e 100644
--- a/toolsrc/include/BuildInfo.h
+++ b/toolsrc/include/BuildInfo.h
@@ -4,7 +4,7 @@
#include "Paragraphs.h"
#include <regex>
-namespace vcpkg { namespace PostBuildLint
+namespace vcpkg::PostBuildLint
{
enum class LinkageType
{
@@ -126,4 +126,4 @@ namespace vcpkg { namespace PostBuildLint
};
BuildInfo read_build_info(const fs::path& filepath);
-}}
+}
diff --git a/toolsrc/include/Paragraphs.h b/toolsrc/include/Paragraphs.h
index 9e9fafe49..761b49759 100644
--- a/toolsrc/include/Paragraphs.h
+++ b/toolsrc/include/Paragraphs.h
@@ -3,8 +3,8 @@
#include "filesystem_fs.h"
#include <unordered_map>
-namespace vcpkg { namespace Paragraphs
+namespace vcpkg::Paragraphs
{
std::vector<std::unordered_map<std::string, std::string>> get_paragraphs(const fs::path& control_path);
std::vector<std::unordered_map<std::string, std::string>> parse_paragraphs(const std::string& str);
-}}
+}
diff --git a/toolsrc/include/vcpkg_info.h b/toolsrc/include/vcpkg_info.h
index 01da06307..5380e0158 100644
--- a/toolsrc/include/vcpkg_info.h
+++ b/toolsrc/include/vcpkg_info.h
@@ -2,9 +2,9 @@
#include <string>
-namespace vcpkg { namespace Info
+namespace vcpkg::Info
{
const std::string& version();
const std::string& email();
-}}
+}
diff --git a/toolsrc/include/vcpkglib_helpers.h b/toolsrc/include/vcpkglib_helpers.h
index 019bb8c39..8a08513f3 100644
--- a/toolsrc/include/vcpkglib_helpers.h
+++ b/toolsrc/include/vcpkglib_helpers.h
@@ -2,7 +2,7 @@
#include <unordered_map>
-namespace vcpkg {namespace details
+namespace vcpkg::details
{
std::string optional_field(const std::unordered_map<std::string, std::string>& fields, const std::string& fieldname);
std::string remove_optional_field(std::unordered_map<std::string, std::string>* fields, const std::string& fieldname);
@@ -11,4 +11,4 @@ namespace vcpkg {namespace details
std::string remove_required_field(std::unordered_map<std::string, std::string>* fields, const std::string& fieldname);
std::string shorten_description(const std::string& desc);
-}}
+}