diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-01 22:51:30 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-01 22:51:30 +0000 |
commit | d49963609d58ceaf85de6ad90170a359258a3a2c (patch) | |
tree | 7b995443c861e4f0a59b5ced57007c4f502ace81 /clang/lib/AST/CommentLexer.cpp | |
parent | db4443f7af005588d4fd0df5669a2a2ee21fac11 (diff) | |
download | llvm-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.cpp | 1 |
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); |