diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-08-06 23:29:00 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-08-06 23:29:00 +0000 |
commit | fad2854058b156c1622e85e4e02ea5bfbbb5c1f9 (patch) | |
tree | 0789fc4ad5b2f663d7601ea4bda9fbdf4639db35 /clang/lib/AST/ASTContext.cpp | |
parent | f5a988b35f5ababf5504751c778c4ffe19a9a33b (diff) | |
download | bcm5719-llvm-fad2854058b156c1622e85e4e02ea5bfbbb5c1f9.tar.gz bcm5719-llvm-fad2854058b156c1622e85e4e02ea5bfbbb5c1f9.zip |
Patch to fix doxygen trailing comments for ObjectiveC properties.
// rdar://14258334
llvm-svn: 187835
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 63b1b0ead18..1fcb6aa1c82 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -182,7 +182,8 @@ RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { // First check whether we have a trailing comment. if (Comment != RawComments.end() && (*Comment)->isDocumentation() && (*Comment)->isTrailingComment() && - (isa<FieldDecl>(D) || isa<EnumConstantDecl>(D) || isa<VarDecl>(D))) { + (isa<FieldDecl>(D) || isa<EnumConstantDecl>(D) || isa<VarDecl>(D) || + isa<ObjCPropertyDecl>(D))) { std::pair<FileID, unsigned> CommentBeginDecomp = SourceMgr.getDecomposedLoc((*Comment)->getSourceRange().getBegin()); // Check that Doxygen trailing comment comes after the declaration, starts |