hanchenye-llvm-project/clang/lib
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
..
AST Tweak comment as suggested by Sebastian. 2010-09-15 20:59:13 +00:00
Analysis Introduce new CFGElement hierarchy to support C++ CFG, based on Marcin's patch 2010-09-16 01:25:47 +00:00
Basic Fix Windows64 target info so pointer arithmetic is done correctly, and no sign extension code is emitted: PtrDiffType needs to be a signed long long. Add a corresponding test case. 2010-09-15 00:28:12 +00:00
Checker Introduce new CFGElement hierarchy to support C++ CFG, based on Marcin's patch 2010-09-16 01:25:47 +00:00
CodeGen Patch to move RequiresGCollection bit to 2010-09-16 00:20:07 +00:00
Driver Make the new -fobjc-nonfragile-abi2 the default 2010-09-15 16:00:51 +00:00
Frontend Introduce a new code-completion context for a parenthesized 2010-09-14 23:59:36 +00:00
FrontendTool Revert "CMake: Update to use standard CMake dependency tracking facilities instead" 2010-09-13 23:54:41 +00:00
Headers fix PR7192 by defining wchar_t in a more conventional way. The 2010-09-05 23:29:49 +00:00
Index Revert "CMake: Update to use standard CMake dependency tracking facilities instead" 2010-09-13 23:54:41 +00:00
Lex Revert "CMake: Update to use standard CMake dependency tracking facilities instead" 2010-09-13 23:54:41 +00:00
Parse Implement automatic bracket insertion for Objective-C class message 2010-09-16 01:51:54 +00:00
Rewrite Revert "CMake: Update to use standard CMake dependency tracking facilities instead" 2010-09-13 23:54:41 +00:00
Sema Implement automatic bracket insertion for Objective-C class message 2010-09-16 01:51:54 +00:00
Serialization Macro definitions in AST files have their own IDs. 2010-09-15 19:54:06 +00:00
CMakeLists.txt Move ExecuteCompilerInvocation to a new library FrontendTool 2010-08-24 00:31:22 +00:00
Makefile Move ExecuteCompilerInvocation to a new library FrontendTool 2010-08-24 00:31:22 +00:00