diff options
Diffstat (limited to 'lib/AST')
-rw-r--r-- | lib/AST/CMakeLists.txt | 1 | ||||
-rw-r--r-- | lib/AST/CommentLexer.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/AST/CMakeLists.txt b/lib/AST/CMakeLists.txt index 923c519d49..328f385153 100644 --- a/lib/AST/CMakeLists.txt +++ b/lib/AST/CMakeLists.txt @@ -68,6 +68,7 @@ add_dependencies(clangAST ClangCommentNodes ClangCommentHTMLTags ClangCommentHTMLTagsProperties + ClangCommentHTMLNamedCharacterReferences ClangDeclNodes ClangDiagnosticAST ClangDiagnosticComment diff --git a/lib/AST/CommentLexer.cpp b/lib/AST/CommentLexer.cpp index 464771340d..b92b1fb33d 100644 --- a/lib/AST/CommentLexer.cpp +++ b/lib/AST/CommentLexer.cpp @@ -1,8 +1,8 @@ #include "clang/AST/CommentLexer.h" #include "clang/AST/CommentCommandTraits.h" -#include "clang/Basic/ConvertUTF.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringSwitch.h" +#include "llvm/Support/ConvertUTF.h" #include "llvm/Support/ErrorHandling.h" namespace clang { @@ -48,7 +48,7 @@ static unsigned getCodePoint(StringRef Name) { StringRef Lexer::helperResolveHTMLHexCharacterReference(unsigned CodePoint) const { char *Resolved = Allocator.Allocate<char>(UNI_MAX_UTF8_BYTES_PER_CODE_POINT); char *ResolvedPtr = Resolved; - if (ConvertCodePointToUTF8(CodePoint, ResolvedPtr)) + if (llvm::ConvertCodePointToUTF8(CodePoint, ResolvedPtr)) return StringRef(Resolved, ResolvedPtr - Resolved); else return StringRef(); @@ -223,7 +223,7 @@ StringRef Lexer::resolveHTMLDecimalCharacterReference(StringRef Name) const { char *Resolved = Allocator.Allocate<char>(UNI_MAX_UTF8_BYTES_PER_CODE_POINT); char *ResolvedPtr = Resolved; - if (ConvertCodePointToUTF8(CodePoint, ResolvedPtr)) + if (llvm::ConvertCodePointToUTF8(CodePoint, ResolvedPtr)) return StringRef(Resolved, ResolvedPtr - Resolved); else return StringRef(); |