llvm-project/clang/test
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
..
ARCMT Quickfix for failing tests. 2018-08-17 23:54:00 +00:00
AST [AST] Store "UsesADL" information in CallExpr. 2018-12-12 21:50:55 +00:00
ASTMerge [ASTImporter] Load external Decls when getting field index. 2018-08-08 09:40:57 +00:00
Analysis [analyzer] pr38668: Do not attempt to cast loaded integers to floats. 2018-12-22 02:06:51 +00:00
CXX [Sema] Produce diagnostics when C++17 aligned allocation/deallocation 2018-12-21 07:05:36 +00:00
CodeCompletion [CodeComplete] Properly determine qualifiers of 'this' in a lambda 2018-12-19 18:01:24 +00:00
CodeGen Declares __cpu_model as dso local 2018-12-20 21:33:59 +00:00
CodeGenCUDA [CUDA] Treat extern global variable shadows same as regular extern vars. 2018-12-22 01:11:09 +00:00
CodeGenCXX [MS] Mangle return adjusting thunks with the public access specifier 2018-12-26 20:07:52 +00:00
CodeGenCoroutines Revert "[CodeGenCXX] Treat 'this' as noalias in constructors" 2018-10-15 15:43:00 +00:00
CodeGenObjC Convert some ObjC retain/release msgSends to runtime calls. 2018-12-21 21:00:32 +00:00
CodeGenObjCXX [CodeGen] Fix a test from r349848 by replacing `objc_` with `llvm.objc.` 2018-12-20 23:26:29 +00:00
CodeGenOpenCL [OpenCL][CodeGen] Fix replacing memcpy with addrspacecast 2018-12-10 12:03:00 +00:00
CodeGenOpenCLCXX [OpenCL] Add generic AS to 'this' pointer 2018-12-13 10:15:27 +00:00
Coverage [Frontend] Delete -print-decl-contexts 2018-10-03 03:50:44 +00:00
CoverageMapping [Coverage] Specify the Itanium ABI triple for a C++ test 2018-11-28 20:51:09 +00:00
Driver [clang-cl] Treat inputs as C++ with /E, like MSVC 2018-12-26 21:04:08 +00:00
FixIt Introduce the _Clang scoped attribute token. 2018-11-09 17:19:45 +00:00
Format
Frontend [darwin] parse the SDK settings from SDKSettings.json if it exists and 2018-12-17 19:19:15 +00:00
Headers [OpenCL] Add support of cl_intel_device_side_avc_motion_estimation extension 2018-11-08 11:25:41 +00:00
Import [AST] Store "UsesADL" information in CallExpr. 2018-12-12 21:50:55 +00:00
Index [Index] Index paremeters in lambda expressions. 2018-12-19 13:44:41 +00:00
Integration
Layout
Lexer [c++20] Implement P0482R6: enable -fchar8_t by default in C++20 mode. 2018-11-14 21:04:34 +00:00
Misc [Unroll/UnrollAndJam/Vectorizer/Distribute] Add followup loop attributes. 2018-12-12 17:32:52 +00:00
Modules Reapply "Avoid emitting redundant or unusable directories in DIFile metadata entries."" 2018-12-06 18:44:50 +00:00
OpenMP Pass a concrete triple for two OpenMP tests that depend on TLS 2018-12-26 16:06:26 +00:00
PCH Reuse code from CGDebugInfo::getOrCreateFile() when creating the file 2018-12-11 16:58:43 +00:00
Parser Add support for namespaces on #pragma clang attribute 2018-12-20 22:32:04 +00:00
Preprocessor [Clang] Add __builtin_launder 2018-12-14 21:11:28 +00:00
Profile
Refactor
Rewriter
Sema Add support for namespaces on #pragma clang attribute 2018-12-20 22:32:04 +00:00
SemaCUDA [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors 2018-10-09 15:53:14 +00:00
SemaCXX [Sema] Produce diagnostics when C++17 aligned allocation/deallocation 2018-12-21 07:05:36 +00:00
SemaObjC [ObjC] Messages to 'self' in class methods that return 'instancetype' should 2018-12-20 22:11:11 +00:00
SemaObjCXX Distinguish `__block` variables that are captured by escaping blocks 2018-10-01 21:51:28 +00:00
SemaOpenCL OpenCL: Improve vector printf warnings 2018-12-01 22:16:27 +00:00
SemaOpenCLCXX [OpenCL] Add generic AS to 'this' pointer 2018-12-13 10:15:27 +00:00
SemaTemplate Fix crash if an in-class explicit function specialization has explicit 2018-12-04 22:26:32 +00:00
TableGen
Templight
Tooling Move detection of libc++ include dirs to Driver on MacOS 2018-12-05 14:24:14 +00:00
Unit
VFS [VFS] Implement `RedirectingFileSystem::getRealPath`. 2018-11-16 01:18:04 +00:00
clang-rename
.clang-format
CMakeLists.txt [analyzer] Fix bots by removing new check-clang-analyzer commands from CHECK-ALL 2018-08-14 18:55:34 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [Driver] Disable -faddrsig on Gentoo by default 2018-12-23 15:07:26 +00:00
lit.site.cfg.py.in Import lit.llvm after rC341132 2018-08-31 00:24:36 +00:00
make_test_dirs.pl