-
- Downloads
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
Showing
- bindings/xml/comment-xml-schema.rng 6 additions, 0 deletionsbindings/xml/comment-xml-schema.rng
- include/clang/AST/Comment.h 24 additions, 4 deletionsinclude/clang/AST/Comment.h
- include/clang/AST/CommentHTMLTags.td 80 additions, 0 deletionsinclude/clang/AST/CommentHTMLTags.td
- include/clang/Basic/DiagnosticCommentKinds.td 4 additions, 0 deletionsinclude/clang/Basic/DiagnosticCommentKinds.td
- lib/AST/CommentSema.cpp 29 additions, 4 deletionslib/AST/CommentSema.cpp
- lib/Index/CommentToXML.cpp 8 additions, 2 deletionslib/Index/CommentToXML.cpp
- test/Index/Inputs/CommentXML/valid-function-02.xml 10 additions, 1 deletiontest/Index/Inputs/CommentXML/valid-function-02.xml
- test/Index/comment-to-html-xml-conversion.cpp 30 additions, 2 deletionstest/Index/comment-to-html-xml-conversion.cpp
- test/Sema/warn-documentation.cpp 13 additions, 0 deletionstest/Sema/warn-documentation.cpp
- utils/TableGen/ClangCommentHTMLTagsEmitter.cpp 26 additions, 15 deletionsutils/TableGen/ClangCommentHTMLTagsEmitter.cpp
Loading
Please register or sign in to comment