Add support for C++17 parsing with cpp_1z option
Note: It is currently experimental.
This commit is contained in:
parent
63c34e1ca3
commit
2af22083a6
3 changed files with 14 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue