]> granicus.if.org Git - clang/commit
If a comma operator is followed by a token which unambiguously indicates the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 18 Sep 2012 00:52:05 +0000 (00:52 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 18 Sep 2012 00:52:05 +0000 (00:52 +0000)
commit4b0824229b96d024a96f3c7dd75ab70652c05c5b
treec82ecc61d62f02db1d9f57ef74724d87b3ba5238
parent43f8c40b05482894d94a8779a5ccd0f9a35420f3
If a comma operator is followed by a token which unambiguously indicates the
start of a statement or the end of a compound-statement, diagnose the comma as
a typo for a semicolon. Patch by Ahmed Bougacha! Additional test cases and
minor refactoring by me.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164085 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseExpr.cpp
lib/Parse/Parser.cpp
test/FixIt/fixit.c
test/Parser/cxx-stmt.cpp
test/Parser/cxx11-brace-initializers.cpp [new file with mode: 0644]
test/Parser/statements.c