hanchenye-llvm-project/clang/lib/Parse
Douglas Gregor abf4a3e4c6 Implement automatic bracket insertion for Objective-C class message
sends. These are far trickier than instance messages, because we
typically have something like

  NSArray alloc]

where it appears to be a declaration of a variable named "alloc" up
until we see the ']' (or a ':'), and at that point we can't backtrace.
So, we use a combination of syntactic and semantic disambiguation to
treat this as a message send only when the type is an Objective-C type
and it has the syntax of a class message send (which would otherwise
be ill-formed).

llvm-svn: 114057
2010-09-16 01:51:54 +00:00
..
CMakeLists.txt Revert "CMake: Update to use standard CMake dependency tracking facilities instead" 2010-09-13 23:54:41 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
ParseAST.cpp Remove Sema.h's dependency on DeclCXX.h. 2010-08-25 07:42:41 +00:00
ParseCXXInlineMethods.cpp When parsing default function arguments, do not mark any declarations 2010-09-11 20:24:53 +00:00
ParseDecl.cpp Implement automatic bracket insertion for Objective-C class message 2010-09-16 01:51:54 +00:00
ParseDeclCXX.cpp Eliminate the comma locations from all of the Sema routines that deal 2010-09-09 16:33:13 +00:00
ParseExpr.cpp Implement automatic bracket insertion for Objective-C class message 2010-09-16 01:51:54 +00:00
ParseExprCXX.cpp Eliminate the comma locations from all of the Sema routines that deal 2010-09-09 16:33:13 +00:00
ParseInit.cpp Implement bracket insertion for Objective-C instance message sends as 2010-09-15 14:51:05 +00:00
ParseObjc.cpp Implement automatic bracket insertion for Objective-C class message 2010-09-16 01:51:54 +00:00
ParsePragma.cpp When we parse a pragma, keep track of how that pragma was originally 2010-09-09 22:45:38 +00:00
ParsePragma.h When we parse a pragma, keep track of how that pragma was originally 2010-09-09 22:45:38 +00:00
ParseStmt.cpp Implement bracket insertion for Objective-C instance message sends as 2010-09-15 14:51:05 +00:00
ParseTemplate.cpp One who seeks knowledge learns something new every day. 2010-08-26 23:41:50 +00:00
ParseTentative.cpp Implement automatic bracket insertion for Objective-C class message 2010-09-16 01:51:54 +00:00
Parser.cpp Implement bracket insertion for Objective-C instance message sends as 2010-09-15 14:51:05 +00:00
RAIIObjectsForParser.h Implement bracket insertion for Objective-C instance message sends as 2010-09-15 14:51:05 +00:00