summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterDecl.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-02-29 22:18:55 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-02-29 22:18:55 +0000
commit86c2f5cc70cc821e25f00ab8206376b4f1c2677f (patch)
tree89f47ba6543d6966e7adc3f8a21fe3fdfe5c261a /clang/lib/Serialization/ASTWriterDecl.cpp
parent20d6c14c887aba175c66c82793eccb456e29a23a (diff)
downloadbcm5719-llvm-86c2f5cc70cc821e25f00ab8206376b4f1c2677f.tar.gz
bcm5719-llvm-86c2f5cc70cc821e25f00ab8206376b4f1c2677f.zip
objective-c: provide fixit hint when atomic property does not
have matching user defined setter/getter and a warning is issued. In this case, a fixit note is displayed. // rdar://10267155 llvm-svn: 151766
Diffstat (limited to 'clang/lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriterDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp
index 26ee8b5f2af..1b576aa4d8d 100644
--- a/clang/lib/Serialization/ASTWriterDecl.cpp
+++ b/clang/lib/Serialization/ASTWriterDecl.cpp
@@ -565,6 +565,7 @@ void ASTDeclWriter::VisitObjCCompatibleAliasDecl(ObjCCompatibleAliasDecl *D) {
void ASTDeclWriter::VisitObjCPropertyDecl(ObjCPropertyDecl *D) {
VisitNamedDecl(D);
Writer.AddSourceLocation(D->getAtLoc(), Record);
+ Writer.AddSourceLocation(D->getLParenLoc(), Record);
Writer.AddTypeSourceInfo(D->getTypeSourceInfo(), Record);
// FIXME: stable encoding
Record.push_back((unsigned)D->getPropertyAttributes());
OpenPOWER on IntegriCloud