================
@@ -4402,8 +4403,12 @@ clang_parseTranslationUnit_Impl(CXIndex CIdx, const char
*source_filename,
Args->insert(Args->end(), command_line_args,
command_line_args + num_command_line_args);
+ // Use the driver pass-through spelling for options not accepted by clang-cl.
+ bool IsCLMode = driver::IsClangCL(
+ driver::getDriverMode((*Args)[0], llvm::ArrayRef(*Args).slice(1)));
----------------
cerisier wrote:
Reused this existing method of getting the driver mode.
https://github.com/llvm/llvm-project/pull/237563
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits