]> granicus.if.org Git - clang/commit
Enforce restrictions that 'main' is not allowed to be deleted, or to be used by
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 22 Jan 2014 01:43:19 +0000 (01:43 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 22 Jan 2014 01:43:19 +0000 (01:43 +0000)
commit0d779704f90b773e2c079447ac0e2ee784b56423
tree30e3256422040588859281475843dfa7de18b304
parent69da841e85785ea625467e23804f6a9dd376528b
Enforce restrictions that 'main' is not allowed to be deleted, or to be used by
the program, in C++. (We allow the latter as an extension, since we've always
permitted it, and GCC does the same, and our supported C++ ABIs don't do
anything special in main.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199782 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp