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

Davide Italiano dccitaliano at gmail.com
Fri Jul 31 18:10:05 PDT 2015


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

Take two. The check looks a little bit ugly, maybe there's a shorter way to handle it. I also enhanced test coverage, and added diagnostic for the undefined behaviour in C as you suggested.


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.31184.patch
Type: text/x-patch
Size: 5006 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150801/a427bbfd/attachment.bin>


More information about the cfe-commits mailing list