llvm-project/clang/lib
Elizabeth Andrews d8b8f544d9 [Reland] "Do not apply calling conventions to MSVC entry points"
This patch is a second attempt at fixing a link error for MSVC
entry points when calling conventions are specified using a flag.

Calling conventions specified using flags should not be applied to MSVC
entry points. The default calling convention is set in this case. The
default calling convention for MSVC entry points main and wmain is cdecl.
For WinMain, wWinMain and DllMain, the default calling convention is
stdcall on 32 bit Windows.

Explicitly specified calling conventions are applied to MSVC entry points.

For MinGW, the default calling convention for all MSVC entry points is
cdecl.

First attempt: 4cff1b40da
Revert of first attempt: bebfc3b92d

Differential Revision: https://reviews.llvm.org/D97941
2021-03-18 04:26:47 -07:00
..
APINotes [clang][APINotes] Fix gcc Wunused-function warning (NFC) 2021-03-10 11:47:00 +08:00
ARCMigrate Make iteration over the DeclContext::lookup_result safe. 2021-03-17 08:59:04 +00:00
AST PR49619: Remove delayed call to noteFailed. 2021-03-17 17:25:18 -07:00
ASTMatchers [ASTMatchers][Dynamic] Add missing matchers from Registry 2021-03-15 13:07:39 +00:00
Analysis [-Wcalled-once-parameter] Fix false positives for cleanup attr 2021-03-18 12:32:16 +03:00
Basic [AMDGPU] Split dot2-insts feature 2021-03-17 09:42:21 +00:00
CodeGen Revert "[CodeGenModule] Set dso_local for Mach-O GlobalValue" 2021-03-17 17:27:41 -07:00
CrossTU [analyzer][CTU] API for CTU macro expansions 2021-02-22 11:12:22 +01:00
DirectoryWatcher Revert "ADT: Migrate users of AlignedCharArrayUnion to std::aligned_union_t, NFC" 2020-12-14 17:04:06 -08:00
Driver Revert "[NFC] Minor cleanup to use default setting of getLastArg()" 2021-03-18 08:07:02 +00:00
Edit [clang] Use SourceLocation as key in hash maps, NFCI 2020-10-20 16:24:09 +01:00
Format clang-format: use `pb` as a canonical raw string delimiter for google style 2021-03-09 09:07:14 +01:00
Frontend [SYCL] Rework the SYCL driver options 2021-03-17 08:27:19 -04:00
FrontendTool [NFC] Refactor Registry loops to range for 2020-06-19 00:40:10 +01:00
Headers [X86][AMX] Rename amx-bf16 intrinsic according to correct naming convention 2021-03-17 11:22:52 +08:00
Index [Clang][RISCV] Define RISC-V V builtin types 2021-02-18 10:17:31 +08:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Lex [CodeCompletion] Avoid spurious signature help for init-list args 2021-03-16 12:46:40 +01:00
Parse PR49585: Emit the jump destination for a for loop 'continue' from within the scope of the condition variable. 2021-03-17 16:24:04 -07:00
Rewrite [clang] DeltaTree::AddDelta - fix "initialization is never read" clang-tidy warning. NFCI. 2021-03-02 15:01:34 +00:00
Sema [Reland] "Do not apply calling conventions to MSVC entry points" 2021-03-18 04:26:47 -07:00
Serialization [OPENMP51]Initial support for the use clause. 2021-03-17 15:46:14 -07:00
StaticAnalyzer [analyzer] Introduce common bug category "Unused code". 2021-03-17 20:58:27 -07:00
Testing Fix MSVC "not all control paths return a value" warning. NFC. 2020-06-05 10:45:59 +01:00
Tooling [AST] Suppress diagnostic output when generating code 2021-03-17 01:30:22 +00:00
CMakeLists.txt APINotes: add APINotesYAMLCompiler 2020-11-05 18:55:13 +00:00