aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-06-09 19:08:19 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-06-09 19:08:19 +0000
commit798321d8eb5630cd4a8f490a4f25e32ef195fb07 (patch)
treea59f5569ef36d00388c0428426abef26aa9105b6 /utils/TableGen/ClangCommentHTMLTagsEmitter.cpp
parent5e20cdd81c44a443562a09007668ffdf76c455af (diff)
downloadsrc-798321d8eb5630cd4a8f490a4f25e32ef195fb07.tar.gz
src-798321d8eb5630cd4a8f490a4f25e32ef195fb07.zip
Vendor import of clang trunk r239412:vendor/clang/clang-trunk-r239412
Notes
Notes: svn path=/vendor/clang/dist/; revision=284186 svn path=/vendor/clang/clang-trunk-r239412/; revision=284187; tag=vendor/clang/clang-trunk-r239412
Diffstat (limited to 'utils/TableGen/ClangCommentHTMLTagsEmitter.cpp')
-rw-r--r--utils/TableGen/ClangCommentHTMLTagsEmitter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp b/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp
index 22c6226cfeb3..477bbc8aaa56 100644
--- a/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp
+++ b/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp
@@ -24,8 +24,7 @@ void clang::EmitClangCommentHTMLTags(RecordKeeper &Records, raw_ostream &OS) {
std::vector<Record *> Tags = Records.getAllDerivedDefinitions("Tag");
std::vector<StringMatcher::StringPair> Matches;
for (Record *Tag : Tags) {
- std::string Spelling = Tag->getValueAsString("Spelling");
- Matches.push_back(StringMatcher::StringPair(Spelling, "return true;"));
+ Matches.emplace_back(Tag->getValueAsString("Spelling"), "return true;");
}
emitSourceFileHeader("HTML tag name matcher", OS);