]> granicus.if.org Git - clang/commit
Handle ambiguities between expressions and type-ids that occur inside parentheses...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 5 Oct 2008 19:56:22 +0000 (19:56 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 5 Oct 2008 19:56:22 +0000 (19:56 +0000)
commit78c8d80f19cb0bccd4f3d590e71a230e727cfab5
tree33e90db48d74ecb686e1f5c93e4a970c9354e149
parent9b533164570a67c81ad49f3691f02608530a042e
Handle ambiguities between expressions and type-ids that occur inside parentheses, e.g.:

sizeof(int()) -> "int()" is type-id
sizeof(int()+1) -> "int()+1" is expression.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57131 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseTentative.cpp
test/SemaCXX/decl-expr-ambiguity.cpp