]> granicus.if.org Git - clang/commit
Add a warning for 'main' returning 'true' or 'false'.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 29 Nov 2016 01:35:17 +0000 (01:35 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 29 Nov 2016 01:35:17 +0000 (01:35 +0000)
commitdeb1922abcea42e03c55bd84144974913edce74b
treeb3800464f122927afa2f2700105b54679acf1179
parent36a98dcd87e70877f747af2d510a270fca715cf3
Add a warning for 'main' returning 'true' or 'false'.

Patch by Joshua Hurwitz!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288097 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaStmt.cpp
test/Sema/warn-main-returns-bool-literal.cpp [new file with mode: 0644]