diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-10-17 21:58:03 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-10-17 21:58:03 +0000 |
commit | a7d76d267264ec8335a8fe472082aa2e32dd326b (patch) | |
tree | 7d69820cc9aa88b3731e481220f94d331bffa1e4 /clang/lib/AST/Comment.cpp | |
parent | 639b40484e6fea68dbbd01b518877b408e7e6fd2 (diff) | |
download | bcm5719-llvm-a7d76d267264ec8335a8fe472082aa2e32dd326b.tar.gz bcm5719-llvm-a7d76d267264ec8335a8fe472082aa2e32dd326b.zip |
[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.
llvm-svn: 166130
Diffstat (limited to 'clang/lib/AST/Comment.cpp')
-rw-r--r-- | clang/lib/AST/Comment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp index e51efd9e115..03b58a7aa3c 100644 --- a/clang/lib/AST/Comment.cpp +++ b/clang/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) { |