diff options
Diffstat (limited to 'lib/AST/CommentSema.cpp')
-rw-r--r-- | lib/AST/CommentSema.cpp | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/lib/AST/CommentSema.cpp b/lib/AST/CommentSema.cpp index 923081dda6..ffb6e86788 100644 --- a/lib/AST/CommentSema.cpp +++ b/lib/AST/CommentSema.cpp @@ -18,6 +18,10 @@ namespace clang { namespace comments { +namespace { +#include "clang/AST/CommentHTMLTagsProperties.inc" +} // unnamed namespace + Sema::Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr, DiagnosticsEngine &Diags, const CommandTraits &Traits) : Allocator(Allocator), SourceMgr(SourceMgr), Diags(Diags), Traits(Traits), @@ -745,31 +749,6 @@ Sema::getInlineCommandRenderKind(StringRef Name) const { .Default(InlineCommandComment::RenderNormal); } -bool Sema::isHTMLEndTagOptional(StringRef Name) { - return llvm::StringSwitch<bool>(Name) - .Case("p", true) - .Case("li", true) - .Case("dt", true) - .Case("dd", true) - .Case("tr", true) - .Case("th", true) - .Case("td", true) - .Case("thead", true) - .Case("tfoot", true) - .Case("tbody", true) - .Case("colgroup", true) - .Default(false); -} - -bool Sema::isHTMLEndTagForbidden(StringRef Name) { - return llvm::StringSwitch<bool>(Name) - .Case("br", true) - .Case("hr", true) - .Case("img", true) - .Case("col", true) - .Default(false); -} - } // end namespace comments } // end namespace clang |