]> granicus.if.org Git - clang/commit
Comment parsing: don't crash while parsing \deprecated in a standalone comment
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 27 Jan 2014 17:55:43 +0000 (17:55 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 27 Jan 2014 17:55:43 +0000 (17:55 +0000)
commit17c6c57014096d68c99b8676db558a451843bb39
tree257f67c824a2266f7646b3ed24b645aab4b63c64
parentc7b54815e743207f2a13ab849d0b3c58896226fd
Comment parsing: don't crash while parsing \deprecated in a standalone comment
(comment without a decl).

I think this can not happen during normal compilation with -Wdocumentation,
only while using Clang APIs to parse comments outside of a source file.

Based on a patch by Olivier Goffart.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200230 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/CommentSema.cpp
unittests/AST/CommentParser.cpp