[PATCH] [-cxx-abi microsoft] Correctly identify Win32 entry points
David Majnemer
david.majnemer at gmail.com
Fri Sep 13 16:03:05 PDT 2013
Hi rnk, rsmith, whunt, timurrrr,
This fixes several issues with the original implementation:
- Win32 entry points cannot be in namespaces
- A Win32 entry point cannot be a function template, diagnose if we it.
- Win32 entry points cannot be overloaded.
- Win32 entry points implicitly return, similar to main.
http://llvm-reviews.chandlerc.com/D1683
Files:
include/clang/AST/Decl.h
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/AST/Decl.cpp
lib/AST/MicrosoftMangle.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaOverload.cpp
test/SemaCXX/ms-overload-entry-point.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1683.1.patch
Type: text/x-patch
Size: 8977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130913/7b05ef9e/attachment.bin>
More information about the cfe-commits
mailing list