]> granicus.if.org Git - clang/commit
Comment parsing: resolve more named character references
authorDmitri Gribenko <gribozavr@gmail.com>
Wed, 30 Jan 2013 14:29:28 +0000 (14:29 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Wed, 30 Jan 2013 14:29:28 +0000 (14:29 +0000)
commit5bd1e5ba000023910ad986a16dd16d7ca914750a
tree78f232852c9d0ed2ad99c2ecdd8edea5c96fc3ad
parentb1c760ea2a7831100da5a9ed64291b34df0ddbe0
Comment parsing: resolve more named character references

This reimplements r173850 with a better approach:
(1) use a TableGen-generated matcher instead of doing a linear search;
(2) avoid allocations for new strings by converting code points to string
    iterals with TableGen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173931 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/CMakeLists.txt
include/clang/AST/CommentHTMLNamedCharacterReferences.td [new file with mode: 0644]
include/clang/AST/CommentLexer.h
include/clang/AST/Makefile
lib/AST/CMakeLists.txt
lib/AST/CommentLexer.cpp
utils/TableGen/CMakeLists.txt
utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp [new file with mode: 0644]
utils/TableGen/TableGen.cpp
utils/TableGen/TableGenBackends.h