Go to file
Reid Kleckner a643e6449b [clang-cl] Treat inputs as C++ with /E, like MSVC
midl invokes the compiler on .idl files with /E. Before this change, we
would treat unrecognized inputs as object files. Now we pre-process to
stdout as expected. I checked that MSVC defines __cplusplus when invoked
this way, so treating the input as C++ seems like the right thing to do.

After this change, I was able to run midl like this with clang-cl:
$ midl -cpp_cmd clang-cl.exe foo.idl

Things worked for the example IDL file in the Microsoft documentation,
but beyond that, I don't know if this will work well.

Fixes PR40140

llvm-svn: 350072
2018-12-26 21:04:08 +00:00
clang [clang-cl] Treat inputs as C++ with /E, like MSVC 2018-12-26 21:04:08 +00:00
clang-tools-extra [clang-tidy] add IgnoreMacros option to readability-uppercase-literal-suffix 2018-12-24 17:47:32 +00:00
compiler-rt [xray] Detect MPROTECT and error out when it's enabled (on NetBSD) 2018-12-23 15:09:28 +00:00
debuginfo-tests Set config.lit_tools_dir, which is needed by lit.llvm.initialize. 2018-11-06 21:54:27 +00:00
libclc travis: Add cmake build 2018-11-27 16:07:21 +00:00
libcxx [libcxx] Remove unused macro _LIBCPP_HAS_UNIQUE_TYPEINFO 2018-12-21 20:14:43 +00:00
libcxxabi [libcxx] Remove bad_array_length 2018-11-29 19:44:57 +00:00
libunwind [SEH] Add initial support for AArch64 2018-12-18 20:05:59 +00:00
lld Use error() instead of fatal() to report an invalid address range. 2018-12-26 19:15:04 +00:00
lldb [cmake] Suppress 'warning C4201: nonstandard extension used: nameless struct/union' on Windows 2018-12-21 23:59:24 +00:00
llgo
llvm [NVPTX] Allow libcalls that are defined in the current module. 2018-12-26 19:12:31 +00:00
openmp [runtime] [test] Fix using %python path 2018-12-22 10:51:53 +00:00
parallel-libs
polly [CMake] Fix generation of exported targets in build directory 2018-11-06 15:18:17 +00:00
pstl [pstl] Initial integration with LLVM's CMake 2018-12-21 15:59:04 +00:00
README.md Update the project name in README.md 2018-10-19 00:03:01 +00:00

README.md

The LLVM Compiler Infrastructure

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.