summaryrefslogtreecommitdiff
path: root/compiler/driver/simple_compiler_options_map.h
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2018-10-29 14:28:56 -0700
committerYi Kong <yikong@google.com>2018-10-29 14:39:24 -0700
commitc57c680b16eb4857eef16134a811f4c2ff9d95f0 (patch)
tree9527328cb8738878e1b727a48620769224dddb2c /compiler/driver/simple_compiler_options_map.h
parentce2a00daa92670a4fc01ef59fdbc3769a846f69c (diff)
Modernise code to use std::make_unique
Generated by clang-tidy. Test: m checkbuild Change-Id: Idb24960d9326c0d94ab5d04b18deb0894d23da9f
Diffstat (limited to 'compiler/driver/simple_compiler_options_map.h')
-rw-r--r--compiler/driver/simple_compiler_options_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/driver/simple_compiler_options_map.h b/compiler/driver/simple_compiler_options_map.h
index 3860da9f66..e7a51a4995 100644
--- a/compiler/driver/simple_compiler_options_map.h
+++ b/compiler/driver/simple_compiler_options_map.h
@@ -50,7 +50,7 @@ using Parser = CmdlineParser<SimpleParseArgumentMap, SimpleParseArgumentMapKey>;
static inline Parser CreateSimpleParser(bool ignore_unrecognized) {
std::unique_ptr<Parser::Builder> parser_builder =
- std::unique_ptr<Parser::Builder>(new Parser::Builder());
+ std::make_unique<Parser::Builder>();
AddCompilerOptionsArgumentParserOptions<SimpleParseArgumentMap>(*parser_builder);