Add support for C++17 parsing with cpp_1z option

Note: It is currently experimental.
This commit is contained in:
Jonathan Müller 2017-04-25 17:30:07 +02:00
commit 2af22083a6
3 changed files with 14 additions and 2 deletions

View file

@ -86,6 +86,12 @@ void libclang_compile_config::do_set_flags(cpp_standard standard, compile_flags
else
add_flag("-std=c++14");
break;
case cpp_standard::cpp_1z:
if (flags & compile_flag::gnu_extensions)
add_flag("-std=gnu++1z");
else
add_flag("-std=c++1z");
break;
}
if (flags & compile_flag::ms_compatibility)