clang-1/lib/Parse
Douglas Gregor 06b7080b04 When we're performing tentative parsing to determine whether the
parser is looking at a declaration or an expression, use a '=' to
conclude that we are parsing a declaration.

This is wrong. However, our previous approach of finding a comma after
the '=' is also wrong, because the ',' could be part of a
template-argument-list. So, for now we're going to use the same wrong
heuristic as GCC and Visual C++, because less real-world code is
likely to be broken this way. I've opened PR7655 to keep track of our
wrongness; note also the XFAIL'd test.

Fixes <rdar://problem/8193163>.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108459 91177308-0d34-0410-b5e6-96231b3b80d8
2010-07-15 21:05:01 +00:00
..
AttributeList.cpp Implements Sema part of init_priority(priority) attribute 2010-06-18 21:44:06 +00:00
CMakeLists.txt Update CMake build for new attribute changes. 2010-06-17 00:37:02 +00:00
DeclSpec.cpp Add parentheses suggested by gcc. 2010-06-23 19:34:52 +00:00
Makefile Makefiles: Set Clang CPP compiler flags in a single location, instead of scattered throughout the project Makefiles. 2010-06-08 20:44:43 +00:00
MinimalAction.cpp Improve parser recovery when we encounter a dependent template name 2010-05-21 23:18:07 +00:00
ParseCXXInlineMethods.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseDecl.cpp Fix PR7617 by not entering ParseFunctionDefinition when 2010-07-11 22:42:07 +00:00
ParseDeclCXX.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseExpr.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseExprCXX.cpp Downgrade the "when type is in parentheses, array cannot have dynamic 2010-07-13 15:54:32 +00:00
ParseInit.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseObjc.cpp Support code completion for parameter names in Objective-C method 2010-07-08 23:37:41 +00:00
ParsePragma.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParsePragma.h Modify the pragma handlers to accept and use StringRefs instead of IdentifierInfos. 2010-07-13 09:07:17 +00:00
ParseStmt.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseTemplate.cpp Fix PR7617 by not entering ParseFunctionDefinition when 2010-07-11 22:42:07 +00:00
ParseTentative.cpp When we're performing tentative parsing to determine whether the 2010-07-15 21:05:01 +00:00
Parser.cpp Modify the pragma handlers to accept and use StringRefs instead of IdentifierInfos. 2010-07-13 09:07:17 +00:00
RAIIObjectsForParser.h Make sure parens/braces/brackets are correctly balanced. 2010-06-17 10:52:18 +00:00