]> granicus.if.org Git - clang/commit
Comment parsing: in the generated XML file, mark HTML that is safe to pass
authorDmitri Gribenko <gribozavr@gmail.com>
Tue, 22 Apr 2014 10:59:13 +0000 (10:59 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Tue, 22 Apr 2014 10:59:13 +0000 (10:59 +0000)
commite36bbd1eec01bfb06927de7791ec13135198fa68
tree2a00df55fdd92ced2765d39d9cd44ff7cd2ca60d
parent059bec7acc616e2fd9e39ccbfdb8c363cc5b719c
Comment parsing: in the generated XML file, mark HTML that is safe to pass
through to the output even if the input comment comes from an untrusted source

Attribute filtering is currently based on a blacklist, which right now includes
all event handler attributes (they contain JavaScipt code).  It should be
switched to a whitelist, but going over all of the HTML5 spec requires a
significant amount of time.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206882 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/xml/comment-xml-schema.rng
include/clang/AST/Comment.h
include/clang/AST/CommentHTMLTags.td
include/clang/Basic/DiagnosticCommentKinds.td
lib/AST/CommentSema.cpp
lib/Index/CommentToXML.cpp
test/Index/Inputs/CommentXML/valid-function-02.xml
test/Index/comment-to-html-xml-conversion.cpp
test/Sema/warn-documentation.cpp
utils/TableGen/ClangCommentHTMLTagsEmitter.cpp