Skip to content

Commit f39f53e

Browse files
authored
[Clang][NFC] Move HeadingAndSpellings to avoid copying (llvm#143611)
Static analysis flagged that we could move HeadingAndSpellings and avoid a copy of a large object.
1 parent c0c0f60 commit f39f53e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/utils/TableGen/ClangAttrEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5405,7 +5405,7 @@ void EmitClangAttrDocs(const RecordKeeper &Records, raw_ostream &OS) {
54055405
// Handle Undocumented category separately - no content merging
54065406
if (Cat == "Undocumented" && UndocumentedCategory) {
54075407
UndocumentedDocs.push_back(
5408-
DocumentationData(Doc, Attr, HeadingAndSpellings));
5408+
DocumentationData(Doc, Attr, std::move(HeadingAndSpellings)));
54095409
continue;
54105410
}
54115411

0 commit comments

Comments
 (0)