llvm-project/clang/lib/Serialization
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
..
ASTCommon.cpp Restore r142914 and r142915, now with missing file and apparent 2011-10-25 17:37:35 +00:00
ASTCommon.h When deserializing the definition of a C++ class/ObjC class/ObjC 2012-01-15 18:08:05 +00:00
ASTReader.cpp [PCH] When we are replacing a decl in a chained PCH that is also a DeclContext, 2012-03-22 16:08:04 +00:00
ASTReaderDecl.cpp Instantiating a class template should not instantiate the definition of any 2012-03-14 23:13:10 +00:00
ASTReaderInternals.h Only mark an IdentifierInfo as having changed since deserialization 2012-01-24 15:24:38 +00:00
ASTReaderStmt.cpp Add info to ObjCPropertyRefExpr to indicate whether the dot syntax property 2012-03-30 00:19:18 +00:00
ASTWriter.cpp Canonicalize the declaration we write to a PCH file for an 2012-03-26 15:52:37 +00:00
ASTWriterDecl.cpp [PCH] When we are replacing a decl in a chained PCH that is also a DeclContext, 2012-03-22 16:08:04 +00:00
ASTWriterStmt.cpp Add info to ObjCPropertyRefExpr to indicate whether the dot syntax property 2012-03-30 00:19:18 +00:00
CMakeLists.txt Fix cmake build with -DBUILD_SHARED_LIBS=ON. 2011-12-29 04:31:59 +00:00
GeneratePCH.cpp Revert my patches which removed Diagnostic.h includes by moving some operator overloads out of line. 2012-02-07 22:29:24 +00:00
Makefile Reintroduce the serialization library, with fixed dependencies. 2010-08-17 20:43:28 +00:00
Module.cpp Reimplement (de-)serialization of Objective-C categories to eliminate 2012-01-27 01:47:08 +00:00
ModuleManager.cpp Optimize unqualified/global name lookup in modules by introducing a 2012-01-18 20:56:22 +00:00