summaryrefslogtreecommitdiff
path: root/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
commit77bfb8b43ec3f7dee3a71f6e854b03ad29dab84f (patch)
tree3f8f072cf0145794270c21859a13d633bbaa4981 /lib/Serialization/ASTWriterDecl.cpp
parentfd819783aafa39b3bfdfcc095270352074ef4734 (diff)
downloadclang-77bfb8b43ec3f7dee3a71f6e854b03ad29dab84f.tar.gz
clang-77bfb8b43ec3f7dee3a71f6e854b03ad29dab84f.tar.bz2
clang-77bfb8b43ec3f7dee3a71f6e854b03ad29dab84f.tar.xz
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r--lib/Serialization/ASTWriterDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp
index 26ee8b5f2a..1b576aa4d8 100644
--- a/lib/Serialization/ASTWriterDecl.cpp
+++ b/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());