[all-commits] [llvm/llvm-project] 749aee: [clang][ExtractAPI] Fix -Wpessimizing-move in Decl...
Jie Fu via All-commits
all-commits at lists.llvm.org
Tue May 30 16:21:39 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 749aeeaf66a483345e12f69cc1f55dad4e997297
https://github.com/llvm/llvm-project/commit/749aeeaf66a483345e12f69cc1f55dad4e997297
Author: Jie Fu <jiefu at tencent.com>
Date: 2023-05-31 (Wed, 31 May 2023)
Changed paths:
M clang/include/clang/ExtractAPI/DeclarationFragments.h
Log Message:
-----------
[clang][ExtractAPI] Fix -Wpessimizing-move in DeclarationFragments.h (NFC)
/Users/jiefu/llvm-project/clang/include/clang/ExtractAPI/DeclarationFragments.h:118:26: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
Fragments.insert(It, std::move(Fragment(Spelling, Kind, PreciseIdentifier,
^
/Users/jiefu/llvm-project/clang/include/clang/ExtractAPI/DeclarationFragments.h:118:26: note: remove std::move call here
Fragments.insert(It, std::move(Fragment(Spelling, Kind, PreciseIdentifier,
^~~~~~~~~~
1 error generated.
More information about the All-commits
mailing list