interface: pass correct 4th argument to CompilerInvocation::setLangDefaults
commitaba9b469ef43783386618cb3da68d2f9c21f2cf7
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Mon, 5 Apr 2021 07:28:03 +0000 (5 09:28 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Sat, 10 Apr 2021 12:14:26 +0000 (10 14:14 +0200)
treecf73f1471ebb96ab040097419161780ea8769317
parent647edd646847adbd2c41f4d345227786e36cedff
interface: pass correct 4th argument to CompilerInvocation::setLangDefaults

Since llvmorg-12-init-16745-gc495dfe0268b ([clang][cli] NFC: Decrease
the scope of ParseLangArgs parameters, Thu Jan 14 08:26:12 2021 +0100),
the fourth argument of CompilerInvocation::setLangDefaults is
a std::vector<std::string> rather than a clang::PreprocessorOptions.
Introduce a setLangDefaultsArg4 to pass in the right argument
depending on what is expected by the specific version of clang.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
interface/Makefile.am
interface/extract_interface.cc
interface/set_lang_defaults_arg4.h [new file with mode: 0644]
m4/ax_detect_clang.m4