aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Comment.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-10-17 21:58:03 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-10-17 21:58:03 +0000
commit1bfb00dabf83d8c8b95b7276b4c0ae3fd64832c8 (patch)
tree6da011bab01450d4f467948bdc61b9c55b021ed8 /lib/AST/Comment.cpp
parent20d928164a6263edb558fdccae6e73988cf4ae7d (diff)
[Doc parsing]: This patch adds <Declaration> tag to
XML comment for declarations which pretty-prints declaration. I had to XFAIL one test annotate-comments.cpp. This test is currently unmaintainable as written. Dmitri G., can you see what we can do about this test. We should change this test such that adding a new tag does not wreck havoc to the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Comment.cpp')
-rw-r--r--lib/AST/Comment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Comment.cpp b/lib/AST/Comment.cpp
index e51efd9e11..03b58a7aa3 100644
--- a/lib/AST/Comment.cpp
+++ b/lib/AST/Comment.cpp
@@ -156,7 +156,7 @@ void DeclInfo::fill() {
IsFilled = true;
return;
}
- Loc = CommentDecl->getLocation();
+ CurrentDecl = CommentDecl;
Decl::Kind K = CommentDecl->getKind();
switch (K) {