[PATCH] D21507: Changes after running check modernize-use-emplace (D20964)
Piotr Padlewski via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 19 12:49:32 PDT 2016
Prazek created this revision.
Prazek added reviewers: alexfh, rsmith.
Prazek added subscribers: cfe-commits, llvm-commits.
Prazek set the repository for this revision to rL LLVM.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: jfb, mzolotukhin, dsanders, jyknight, arsenm, sanjoy, qcolombet, MatzeB, jholewinski, klimek.
Many changes after running my new check. I coudn't generate diff with full files because it was too heavy.
NOTE before you comment:
- there are some places where .push_back(std::make_pair(a, b)) is changed to .emplace_back(std::make_pair(a, b)). This is because
the type that make_pair returns is different than it is inside vector. I plan to write matcher that would match places when
.emplace_back(std::make_pair(a, b)) or .push_back(std::make_pair(a, b)) could be changed to .emplace_back(a, b). I don't want to change it by hand right now,
and I want to keep this diff like this, because I will have some code that I can try next check later.
Repository:
rL LLVM
http://reviews.llvm.org/D21507
Files:
lib/ARCMigrate/TransGCAttrs.cpp
lib/ARCMigrate/TransProperties.cpp
lib/AST/ASTContext.cpp
lib/AST/ASTDiagnostic.cpp
lib/AST/CommentParser.cpp
lib/AST/DeclObjC.cpp
lib/AST/ExprConstant.cpp
lib/AST/VTTBuilder.cpp
lib/AST/VTableBuilder.cpp
lib/Analysis/BlockFrequencyInfoImpl.cpp
lib/Analysis/CFG.cpp
lib/Analysis/EHPersonalities.cpp
lib/Analysis/LazyCallGraph.cpp
lib/Analysis/LoopAccessAnalysis.cpp
lib/Analysis/MemoryDependenceAnalysis.cpp
lib/Basic/Diagnostic.cpp
lib/Basic/Module.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/CodeGen/Analysis.cpp
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/BranchFolding.cpp
lib/CodeGen/CGBlocks.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGExprConstant.cpp
lib/CodeGen/CGExprScalar.cpp
lib/CodeGen/CGLoopInfo.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGObjCMac.cpp
lib/CodeGen/CGObjCRuntime.cpp
lib/CodeGen/CGRecordLayoutBuilder.cpp
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CGVTables.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenPGO.cpp
lib/CodeGen/CodeGenPrepare.cpp
lib/CodeGen/CoverageMappingGen.cpp
lib/CodeGen/EarlyIfConversion.cpp
lib/CodeGen/IfConversion.cpp
lib/CodeGen/LocalStackSlotAllocation.cpp
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MachineFunction.cpp
lib/CodeGen/MachineScheduler.cpp
lib/CodeGen/MachineTraceMetrics.cpp
lib/CodeGen/PeepholeOptimizer.cpp
lib/CodeGen/PrologEpilogInserter.cpp
lib/CodeGen/RegAllocGreedy.cpp
lib/CodeGen/RegisterCoalescer.cpp
lib/CodeGen/ScheduleDAGInstrs.cpp
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/CodeGen/SelectionDAG/StatepointLowering.cpp
lib/CodeGen/SlotIndexes.cpp
lib/CodeGen/WinEHPrepare.cpp
lib/DebugInfo/CodeView/MemoryTypeTableBuilder.cpp
lib/DebugInfo/CodeView/TypeStreamMerger.cpp
lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp
lib/Driver/Driver.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
lib/ExecutionEngine/SectionMemoryManager.cpp
lib/Format/ContinuationIndenter.cpp
lib/Format/TokenAnnotator.cpp
lib/Frontend/ASTUnit.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/PrintPreprocessedOutput.cpp
lib/IR/AsmWriter.cpp
lib/Lex/MacroArgs.cpp
lib/Lex/ModuleMap.cpp
lib/Lex/PPCaching.cpp
lib/Lex/PPConditionalDirectiveRecord.cpp
lib/Lex/PPDirectives.cpp
lib/Lex/PPLexerChange.cpp
lib/Lex/PPMacroExpansion.cpp
lib/LibDriver/LibDriver.cpp
lib/MC/ConstantPools.cpp
lib/MC/MCParser/AsmParser.cpp
lib/MC/MCStreamer.cpp
lib/Object/SymbolSize.cpp
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseObjc.cpp
lib/Parse/ParseStmtAsm.cpp
lib/ProfileData/Coverage/CoverageMappingReader.cpp
lib/Sema/AnalysisBasedWarnings.cpp
lib/Sema/CodeCompleteConsumer.cpp
lib/Sema/JumpDiagnostics.cpp
lib/Sema/ScopeInfo.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaAttr.cpp
lib/Sema/SemaCast.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaDeclObjC.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaLambda.cpp
lib/Sema/SemaLookup.cpp
lib/Sema/SemaOpenMP.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateDeduction.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriter.cpp
lib/Serialization/ASTWriterDecl.cpp
lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
lib/StaticAnalyzer/Core/BugReporter.cpp
lib/StaticAnalyzer/Core/CheckerRegistry.cpp
lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
lib/Support/CommandLine.cpp
lib/Support/SourceMgr.cpp
lib/Support/TargetRegistry.cpp
lib/TableGen/TGParser.cpp
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/AMDGPU/R600EmitClauseMarkers.cpp
lib/Target/AMDGPU/R600InstrInfo.cpp
lib/Target/AMDGPU/R600OptimizeVectorRegisters.cpp
lib/Target/AMDGPU/SIFoldOperands.cpp
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIWholeQuadMode.cpp
lib/Target/ARM/ARMConstantIslandPass.cpp
lib/Target/ARM/ARMISelDAGToDAG.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/Hexagon/HexagonBitSimplify.cpp
lib/Target/Hexagon/HexagonFrameLowering.cpp
lib/Target/Hexagon/HexagonGenMux.cpp
lib/Target/Hexagon/HexagonOptAddrMode.cpp
lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp
lib/Target/Hexagon/RDFDeadCode.cpp
lib/Target/Hexagon/RDFGraph.cpp
lib/Target/Hexagon/RDFLiveness.cpp
lib/Target/Mips/MipsConstantIslandPass.cpp
lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
lib/Target/NVPTX/NVPTXISelLowering.cpp
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
lib/Target/Sparc/SparcISelLowering.cpp
lib/Target/X86/AsmParser/X86AsmParser.cpp
lib/Target/X86/X86ISelDAGToDAG.cpp
lib/Target/X86/X86InstrInfo.cpp
lib/Target/XCore/XCoreISelLowering.cpp
lib/Tooling/Core/Replacement.cpp
lib/Tooling/FileMatchTrie.cpp
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/IPO/MergeFunctions.cpp
lib/Transforms/IPO/SampleProfile.cpp
lib/Transforms/IPO/WholeProgramDevirt.cpp
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
lib/Transforms/InstCombine/InstCombinePHI.cpp
lib/Transforms/Instrumentation/GCOVProfiling.cpp
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
lib/Transforms/Instrumentation/MemorySanitizer.cpp
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
lib/Transforms/Scalar/ConstantHoisting.cpp
lib/Transforms/Scalar/JumpThreading.cpp
lib/Transforms/Scalar/LoadCombine.cpp
lib/Transforms/Scalar/LoopInstSimplify.cpp
lib/Transforms/Scalar/LoopStrengthReduce.cpp
lib/Transforms/Scalar/LoopUnrollPass.cpp
lib/Transforms/Scalar/PlaceSafepoints.cpp
lib/Transforms/Scalar/SROA.cpp
lib/Transforms/Scalar/Scalarizer.cpp
lib/Transforms/Utils/LowerSwitch.cpp
lib/Transforms/Utils/MemorySSA.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
lib/Transforms/Utils/SplitModule.cpp
lib/Transforms/Utils/ValueMapper.cpp
lib/Transforms/Vectorize/BBVectorize.cpp
lib/Transforms/Vectorize/SLPVectorizer.cpp
tools/clang-format/ClangFormat.cpp
tools/diagtool/ShowEnabledWarnings.cpp
tools/libclang/CIndex.cpp
tools/libclang/CXIndexDataConsumer.cpp
tools/llvm-ar/llvm-ar.cpp
tools/llvm-config/llvm-config.cpp
tools/llvm-diff/DiffLog.cpp
tools/llvm-pdbdump/llvm-pdbdump.cpp
tools/llvm-readobj/ELFDumper.cpp
tools/obj2yaml/macho2yaml.cpp
tools/yaml2obj/yaml2macho.cpp
unittests/ADT/DAGDeltaAlgorithmTest.cpp
unittests/ADT/SmallVectorTest.cpp
unittests/ADT/StringRefTest.cpp
unittests/Format/CleanupTest.cpp
unittests/IR/ValueMapTest.cpp
unittests/ProfileData/InstrProfTest.cpp
unittests/Support/Path.cpp
unittests/Support/YAMLIOTest.cpp
utils/FileCheck/FileCheck.cpp
utils/TableGen/AsmMatcherEmitter.cpp
utils/TableGen/CTagsEmitter.cpp
utils/TableGen/ClangAttrEmitter.cpp
utils/TableGen/CodeGenInstruction.cpp
utils/TableGen/CodeGenRegisters.cpp
utils/TableGen/CodeGenSchedule.cpp
utils/TableGen/FixedLenDecoderEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21507.61218.patch
Type: text/x-patch
Size: 242455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160619/d76866dc/attachment-0001.bin>
More information about the cfe-commits
mailing list