[Lldb-commits] [PATCH] D103483: [lldb] Convert the default constructor’s member initializers into default member initializers

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 1 12:16:05 PDT 2021


JDevlieghere created this revision.
JDevlieghere added a reviewer: LLDB.
Herald added subscribers: arphaman, emaste.
JDevlieghere requested review of this revision.
Herald added subscribers: sstefan1, MaskRay, aheejin.
Herald added a reviewer: jdoerfert.

Converts a default constructor’s member initializers into the new default member initializers in C++11. Other member initializers that match the default member initializer are removed.

This was automatically generated with `modernize-use-default-member-init` and our `.clang-tidy` file was updated accordingly.

  run-clang-tidy.py -header-filter='lldb' -checks='-*,modernize-use-default-member-init' -fix

This is a mass-refactoring patch and the resulting commit should be added to `.git-blame-ignore-revs`.


https://reviews.llvm.org/D103483

Files:
  lldb/.clang-tidy
  lldb/include/lldb/API/SBBlock.h
  lldb/include/lldb/API/SBBroadcaster.h
  lldb/include/lldb/API/SBCommunication.h
  lldb/include/lldb/API/SBCompileUnit.h
  lldb/include/lldb/API/SBEvent.h
  lldb/include/lldb/API/SBFunction.h
  lldb/include/lldb/API/SBListener.h
  lldb/include/lldb/API/SBStream.h
  lldb/include/lldb/API/SBSymbol.h
  lldb/include/lldb/Breakpoint/BreakpointOptions.h
  lldb/include/lldb/Breakpoint/Stoppoint.h
  lldb/include/lldb/Breakpoint/StoppointCallbackContext.h
  lldb/include/lldb/Breakpoint/WatchpointList.h
  lldb/include/lldb/Breakpoint/WatchpointOptions.h
  lldb/include/lldb/Core/Address.h
  lldb/include/lldb/Core/AddressRange.h
  lldb/include/lldb/Core/Declaration.h
  lldb/include/lldb/Core/Disassembler.h
  lldb/include/lldb/Core/EmulateInstruction.h
  lldb/include/lldb/Core/FileLineResolver.h
  lldb/include/lldb/Core/FormatEntity.h
  lldb/include/lldb/Core/LoadedModuleInfoList.h
  lldb/include/lldb/Core/MappedHash.h
  lldb/include/lldb/Core/Module.h
  lldb/include/lldb/Core/ModuleList.h
  lldb/include/lldb/Core/ModuleSpec.h
  lldb/include/lldb/Core/Opcode.h
  lldb/include/lldb/Core/RichManglingContext.h
  lldb/include/lldb/Core/Value.h
  lldb/include/lldb/Core/ValueObject.h
  lldb/include/lldb/DataFormatters/DumpValueObjectOptions.h
  lldb/include/lldb/DataFormatters/FormatClasses.h
  lldb/include/lldb/DataFormatters/TypeFormat.h
  lldb/include/lldb/DataFormatters/TypeSummary.h
  lldb/include/lldb/DataFormatters/TypeSynthetic.h
  lldb/include/lldb/Expression/DWARFExpression.h
  lldb/include/lldb/Expression/Materializer.h
  lldb/include/lldb/Host/File.h
  lldb/include/lldb/Host/FileAction.h
  lldb/include/lldb/Host/FileSystem.h
  lldb/include/lldb/Host/HostNativeThreadBase.h
  lldb/include/lldb/Host/ProcessLaunchInfo.h
  lldb/include/lldb/Host/ProcessRunLock.h
  lldb/include/lldb/Host/PseudoTerminal.h
  lldb/include/lldb/Host/Terminal.h
  lldb/include/lldb/Host/XML.h
  lldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h
  lldb/include/lldb/Initialization/SystemLifetimeManager.h
  lldb/include/lldb/Interpreter/CommandInterpreter.h
  lldb/include/lldb/Interpreter/OptionValue.h
  lldb/include/lldb/Interpreter/OptionValueFileColonLine.h
  lldb/include/lldb/Interpreter/OptionValueFileSpec.h
  lldb/include/lldb/Interpreter/Options.h
  lldb/include/lldb/Interpreter/ScriptInterpreter.h
  lldb/include/lldb/Symbol/CompactUnwindInfo.h
  lldb/include/lldb/Symbol/LineEntry.h
  lldb/include/lldb/Symbol/LineTable.h
  lldb/include/lldb/Symbol/Symbol.h
  lldb/include/lldb/Symbol/SymbolContext.h
  lldb/include/lldb/Symbol/Type.h
  lldb/include/lldb/Symbol/TypeSystem.h
  lldb/include/lldb/Symbol/UnwindPlan.h
  lldb/include/lldb/Target/ExecutionContext.h
  lldb/include/lldb/Target/PathMappingList.h
  lldb/include/lldb/Target/Process.h
  lldb/include/lldb/Target/RegisterNumber.h
  lldb/include/lldb/Target/StackID.h
  lldb/include/lldb/Target/ThreadSpec.h
  lldb/include/lldb/Target/UnwindLLDB.h
  lldb/include/lldb/Utility/DataEncoder.h
  lldb/include/lldb/Utility/DataExtractor.h
  lldb/include/lldb/Utility/GDBRemote.h
  lldb/include/lldb/Utility/ProcessInfo.h
  lldb/include/lldb/Utility/RegisterValue.h
  lldb/include/lldb/Utility/ReproducerInstrumentation.h
  lldb/include/lldb/Utility/Scalar.h
  lldb/include/lldb/Utility/Status.h
  lldb/include/lldb/Utility/Stream.h
  lldb/include/lldb/Utility/StringExtractor.h
  lldb/include/lldb/Utility/StringExtractorGDBRemote.h
  lldb/include/lldb/Utility/VMRange.h
  lldb/source/API/SBBlock.cpp
  lldb/source/API/SBBroadcaster.cpp
  lldb/source/API/SBCommandReturnObject.cpp
  lldb/source/API/SBCommunication.cpp
  lldb/source/API/SBCompileUnit.cpp
  lldb/source/API/SBEvent.cpp
  lldb/source/API/SBFunction.cpp
  lldb/source/API/SBListener.cpp
  lldb/source/API/SBPlatform.cpp
  lldb/source/API/SBQueue.cpp
  lldb/source/API/SBStream.cpp
  lldb/source/API/SBSymbol.cpp
  lldb/source/API/SBVariablesOptions.cpp
  lldb/source/Breakpoint/Stoppoint.cpp
  lldb/source/Breakpoint/StoppointCallbackContext.cpp
  lldb/source/Breakpoint/WatchpointList.cpp
  lldb/source/Breakpoint/WatchpointOptions.cpp
  lldb/source/Commands/CommandObjectBreakpoint.cpp
  lldb/source/Commands/CommandObjectBreakpointCommand.cpp
  lldb/source/Commands/CommandObjectCommands.cpp
  lldb/source/Commands/CommandObjectDisassemble.cpp
  lldb/source/Commands/CommandObjectDisassemble.h
  lldb/source/Commands/CommandObjectLog.cpp
  lldb/source/Commands/CommandObjectMemory.cpp
  lldb/source/Commands/CommandObjectPlatform.cpp
  lldb/source/Commands/CommandObjectProcess.cpp
  lldb/source/Commands/CommandObjectSettings.cpp
  lldb/source/Commands/CommandObjectTarget.cpp
  lldb/source/Commands/CommandObjectThread.cpp
  lldb/source/Commands/CommandObjectType.cpp
  lldb/source/Commands/CommandObjectWatchpoint.cpp
  lldb/source/Commands/CommandObjectWatchpointCommand.cpp
  lldb/source/Core/AddressRange.cpp
  lldb/source/Core/IOHandlerCursesGUI.cpp
  lldb/source/Core/Module.cpp
  lldb/source/Core/ModuleList.cpp
  lldb/source/Core/PluginManager.cpp
  lldb/source/Core/Value.cpp
  lldb/source/Core/ValueObject.cpp
  lldb/source/DataFormatters/TypeFormat.cpp
  lldb/source/DataFormatters/TypeSummary.cpp
  lldb/source/Expression/DWARFExpression.cpp
  lldb/source/Host/common/FileAction.cpp
  lldb/source/Host/common/Host.cpp
  lldb/source/Host/common/HostNativeThreadBase.cpp
  lldb/source/Host/common/ProcessLaunchInfo.cpp
  lldb/source/Host/common/ProcessRunLock.cpp
  lldb/source/Host/common/PseudoTerminal.cpp
  lldb/source/Host/common/Terminal.cpp
  lldb/source/Host/common/XML.cpp
  lldb/source/Host/macosx/objcxx/HostThreadMacOSX.mm
  lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp
  lldb/source/Initialization/SystemLifetimeManager.cpp
  lldb/source/Interpreter/OptionValueFileColonLine.cpp
  lldb/source/Interpreter/OptionValueFileSpec.cpp
  lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h
  lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/HexagonDYLDRendezvous.h
  lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.h
  lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h
  lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.h
  lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.h
  lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h
  lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.h
  lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.h
  lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp
  lldb/source/Plugins/Instruction/ARM/EmulationStateARM.h
  lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h
  lldb/source/Plugins/Language/ObjC/NSIndexPath.cpp
  lldb/source/Plugins/Language/ObjC/ObjCLanguage.h
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.h
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.h
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.h
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.h
  lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h
  lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
  lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
  lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
  lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.h
  lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
  lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp
  lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h
  lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.h
  lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.h
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.h
  lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
  lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
  lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
  lldb/source/Plugins/SymbolFile/DWARF/DWARFAbbreviationDeclaration.cpp
  lldb/source/Plugins/SymbolFile/DWARF/DWARFAbbreviationDeclaration.h
  lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.h
  lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAbbrev.h
  lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.h
  lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.h
  lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.h
  lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.cpp
  lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h
  lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h
  lldb/source/Plugins/SymbolFile/DWARF/UniqueDWARFASTType.h
  lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.h
  lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.h
  lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.h
  lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.h
  lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h
  lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.h
  lldb/source/Symbol/LineEntry.cpp
  lldb/source/Symbol/Symbol.cpp
  lldb/source/Symbol/SymbolContext.cpp
  lldb/source/Symbol/Type.cpp
  lldb/source/Symbol/TypeSystem.cpp
  lldb/source/Symbol/UnwindPlan.cpp
  lldb/source/Target/ExecutionContext.cpp
  lldb/source/Target/PathMappingList.cpp
  lldb/source/Target/Process.cpp
  lldb/source/Target/RegisterNumber.cpp
  lldb/source/Target/ThreadSpec.cpp
  lldb/source/Utility/DataEncoder.cpp
  lldb/source/Utility/DataExtractor.cpp
  lldb/source/Utility/ProcessInfo.cpp
  lldb/source/Utility/ReproducerInstrumentation.cpp
  lldb/source/Utility/Status.cpp
  lldb/source/Utility/Stream.cpp
  lldb/source/Utility/StringExtractor.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103483.349048.patch
Type: text/x-patch
Size: 198043 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210601/cb9eafab/attachment-0001.bin>


More information about the lldb-commits mailing list