[PATCH] D74672: Fix various occurences of redundant std::move [gcc 9 -Wredundant-move]

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 15 11:33:46 PST 2020


nhaehnle created this revision.
Herald added subscribers: cfe-commits, hiraditya.
Herald added projects: clang, LLVM.

There are hundreds (thousands?) of instances of this warning left.

A blog post on the new warning in gcc 9 is in
https://developers.redhat.com/blog/2019/04/12/understanding-when-not-to-stdmove-in-c/


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74672

Files:
  clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
  llvm/include/llvm/Bitstream/BitstreamReader.h
  llvm/include/llvm/DebugInfo/CodeView/CVRecord.h
  llvm/include/llvm/DebugInfo/CodeView/SymbolDeserializer.h
  llvm/include/llvm/Object/ELF.h
  llvm/include/llvm/Object/ELFObjectFile.h
  llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
  llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp
  llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp
  llvm/lib/Support/APFloat.cpp
  llvm/lib/Support/JSON.cpp
  llvm/lib/Support/MemoryBuffer.cpp
  llvm/lib/Support/Path.cpp
  llvm/lib/Support/YAMLTraits.cpp
  llvm/lib/TableGen/JSONBackend.cpp
  llvm/lib/XRay/Profile.cpp
  llvm/tools/obj2yaml/elf2yaml.cpp
  llvm/utils/TableGen/GlobalISelEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74672.244833.patch
Type: text/x-patch
Size: 18384 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200215/d7ab6256/attachment.bin>


More information about the llvm-commits mailing list