diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-09 07:48:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-09 07:48:02 +0200 |
commit | 7a7b8ba432977282a90567c77822a72645d2a5c8 (patch) | |
tree | 6abac0b3fad817c4149bc34d80b9c0e6e4a31168 /build2/parser.cxx | |
parent | 6906097a822517af4dc711825132d5f026329c62 (diff) |
Add abs_dir_path type, auto-complete if initialized from names
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r-- | build2/parser.cxx | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx index 3d21cac..6926ce3 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -1335,16 +1335,17 @@ namespace build2 map_type (const string& n) { return - n == "bool" ? &value_traits<bool>::value_type : - n == "uint64" ? &value_traits<uint64_t>::value_type : - n == "string" ? &value_traits<string>::value_type : - n == "path" ? &value_traits<path>::value_type : - n == "dir_path" ? &value_traits<dir_path>::value_type : - n == "name" ? &value_traits<name>::value_type : - n == "strings" ? &value_traits<strings>::value_type : - n == "paths" ? &value_traits<paths>::value_type : - n == "dir_paths" ? &value_traits<dir_paths>::value_type : - n == "names" ? &value_traits<names>::value_type : + n == "bool" ? &value_traits<bool>::value_type : + n == "uint64" ? &value_traits<uint64_t>::value_type : + n == "string" ? &value_traits<string>::value_type : + n == "path" ? &value_traits<path>::value_type : + n == "dir_path" ? &value_traits<dir_path>::value_type : + n == "abs_dir_path" ? &value_traits<abs_dir_path>::value_type : + n == "name" ? &value_traits<name>::value_type : + n == "strings" ? &value_traits<strings>::value_type : + n == "paths" ? &value_traits<paths>::value_type : + n == "dir_paths" ? &value_traits<dir_paths>::value_type : + n == "names" ? &value_traits<names>::value_type : nullptr; } |