aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/CommentLexer.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-03-01 22:51:30 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-03-01 22:51:30 +0000
commitd49963609d58ceaf85de6ad90170a359258a3a2c (patch)
tree7b995443c861e4f0a59b5ced57007c4f502ace81 /clang/lib/AST/CommentLexer.cpp
parentdb4443f7af005588d4fd0df5669a2a2ee21fac11 (diff)
downloadllvm-d49963609d58ceaf85de6ad90170a359258a3a2c.zip
llvm-d49963609d58ceaf85de6ad90170a359258a3a2c.tar.gz
llvm-d49963609d58ceaf85de6ad90170a359258a3a2c.tar.bz2
comment parsing. Keep the original command format
in AST for source fidelity and use it in diagnostics to refer to the original format. // rdar://13066276 llvm-svn: 176387
Diffstat (limited to 'clang/lib/AST/CommentLexer.cpp')
-rw-r--r--clang/lib/AST/CommentLexer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/CommentLexer.cpp b/clang/lib/AST/CommentLexer.cpp
index cee086e..da865d2 100644
--- a/clang/lib/AST/CommentLexer.cpp
+++ b/clang/lib/AST/CommentLexer.cpp
@@ -298,6 +298,7 @@ void Lexer::lexCommentText(Token &T) {
switch(*TokenPtr) {
case '\\':
case '@': {
+ T.HDCommand = (*TokenPtr == '@');
TokenPtr++;
if (TokenPtr == CommentEnd) {
formTextToken(T, TokenPtr);