llvm-project/clang/tools
Argyrios Kyrtzidis ab468b0381 Add info to ObjCPropertyRefExpr to indicate whether the dot syntax property
reference is going to message the setter, the getter, or both.

Having this info on the ObjCPropertyRefExpr node makes it easier for AST
clients (like libclang) to reason about the meaning of the property reference.

[AST/Sema]
-Use 2 bits (with a PointerIntPair) in ObjCPropertyRefExpr to record the above info
-Have ObjCPropertyOpBuilder set the info appropriately.

[libclang]
-When there is an implicit property reference (property syntax using methods)
have clang_getCursorReferenced return a cursor for the method. If the property
reference is going to result in messaging both the getter and the setter choose
to return a cursor for the setter because it is less obvious from source inspection
that the setter is getting called.

The general idea has the seal of approval by John.

rdar://11151621

llvm-svn: 153709
2012-03-30 00:19:18 +00:00
..
arcmt-test Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
c-arcmt-test Update library dependencies to add clangEdit on c-index-test and c-arcmt-test. 2012-03-11 08:04:40 +00:00
c-index-test [libclang] Have c-index-test output more information about a cursor with -cursor-at: 2012-03-30 00:19:05 +00:00
diagtool Provide common include for all diagnostic headers. 2012-02-15 21:58:34 +00:00
driver [driver] Parse diagnostic args in the driver. 2012-03-13 20:09:56 +00:00
libclang Add info to ObjCPropertyRefExpr to indicate whether the dot syntax property 2012-03-30 00:19:18 +00:00
scan-build Add static analyzer support for new NSArray/NSDictionary/NSNumber literals. 2012-03-06 20:06:12 +00:00
scan-view Fix call to send_error() in scan-view. An int error code is expected but a string was being sent. Patch by Andrew Price! 2011-02-21 19:26:48 +00:00
CMakeLists.txt Place back previous order of add_subdirectory()'s to reflect build depedencies. 2011-08-09 14:55:12 +00:00
Makefile Misc Minix-specific changes to clang: 2011-12-08 23:54:21 +00:00