[PATCH] D11658: [Sema] main can't be declared as global variable

Davide Italiano via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 12 06:09:11 PDT 2015


davide updated this revision to Diff 31932.
davide added a comment.

- Refactored check
- Added test for -ffreestanding in C
- Changed the diagnostic emitted

Also, thanks for your time and guidance.


http://reviews.llvm.org/D11658

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaDecl.cpp
  test/CXX/basic/basic.start/basic.start.main/p3.cpp
  test/Sema/warn-extern-main.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11658.31932.patch
Type: text/x-patch
Size: 5023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150812/241ee9d7/attachment.bin>


More information about the cfe-commits mailing list