Skip to content

Commit 4927f07

Browse files
author
Davide Italiano
committed
[gardening] Remove assorted differences between github and llvm.
Nothing glamorous to see here. <rdar://problem/36377967> apple-llvm-split-commit: c260905e3e36ca5453e7481d21b7105afc5c98d7 apple-llvm-split-dir: lldb/
1 parent d72700a commit 4927f07

File tree

20 files changed

+21
-24
lines changed

20 files changed

+21
-24
lines changed

lldb/source/Host/common/File.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ void File::CalculateInteractiveAndTerminal() {
680680
if (fd >= 0) {
681681
m_is_interactive = eLazyBoolNo;
682682
m_is_real_terminal = eLazyBoolNo;
683-
m_supports_colors = eLazyBoolNo;
684683
#if defined(_WIN32)
685684
if (_isatty(fd)) {
686685
m_is_interactive = eLazyBoolYes;

lldb/source/Host/posix/HostProcessPosix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "lldb/Host/posix/HostProcessPosix.h"
10-
#include "lldb/Host/FileSystem.h"
119
#include "lldb/Host/Host.h"
10+
#include "lldb/Host/FileSystem.h"
11+
#include "lldb/Host/posix/HostProcessPosix.h"
1212

1313
#include "llvm/ADT/STLExtras.h"
1414

lldb/source/Host/windows/HostInfoWindows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ bool HostInfoWindows::GetHostname(std::string &s) {
8585
}
8686

8787
FileSpec HostInfoWindows::GetProgramFileSpec() {
88-
static std::once_flag g_once_flag;
88+
static llvm::once_flag g_once_flag;
8989
llvm::call_once(g_once_flag, []() {
9090
std::vector<wchar_t> buffer(PATH_MAX);
9191
::GetModuleFileNameW(NULL, buffer.data(), buffer.size());

lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ ModuleSP DynamicLoaderDarwin::FindTargetModuleForImageInfo(
109109
const ModuleList &target_images = target.GetImages();
110110
ModuleSpec module_spec(image_info.file_spec);
111111
module_spec.GetUUID() = image_info.uuid;
112-
113112
ModuleSP module_sp(target_images.FindFirstModule(module_spec));
114113

115114
if (module_sp && !module_spec.GetUUID().IsValid() &&

lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ ClangModulesDeclVendor::Create(Target &target) {
655655
source_buffer.release());
656656

657657
std::unique_ptr<clang::CompilerInstance> instance(
658-
new clang::CompilerInstance());
658+
new clang::CompilerInstance);
659659

660660
// When capturing a reproducer, hook up the file collector with clang to
661661
// collector modules and headers.

lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ FileSpec PlatformAppleSimulator::GetCoreSimulatorPath() {
237237

238238
void PlatformAppleSimulator::LoadCoreSimulator() {
239239
#if defined(__APPLE__)
240-
static std::once_flag g_load_core_sim_flag;
240+
static llvm::once_flag g_load_core_sim_flag;
241241
llvm::call_once(g_load_core_sim_flag, [this] {
242242
const std::string core_sim_path(GetCoreSimulatorPath().GetPath());
243243
if (core_sim_path.size())

lldb/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ ProcessFreeBSD::CreateInstance(lldb::TargetSP target_sp,
7979
}
8080

8181
void ProcessFreeBSD::Initialize() {
82-
static std::once_flag g_once_flag;
82+
static llvm::once_flag g_once_flag;
8383

8484
llvm::call_once(g_once_flag, []() {
8585
PluginManager::RegisterPlugin(GetPluginNameStatic(),

lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ using namespace llvm;
6868

6969
static bool ProcessVmReadvSupported() {
7070
static bool is_supported;
71-
static std::once_flag flag;
71+
static llvm::once_flag flag;
7272

7373
llvm::call_once(flag, [] {
7474
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_PROCESS));

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
#if defined(__arm64__) || defined(__aarch64__)
1010

11-
#include "NativeRegisterContextLinux_arm64.h"
1211
#include "NativeRegisterContextLinux_arm.h"
12+
#include "NativeRegisterContextLinux_arm64.h"
1313

1414

1515
#include "lldb/Host/common/NativeProcessProtocol.h"

lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ Status ProcessKDP::DoSignal(int signo) {
717717
}
718718

719719
void ProcessKDP::Initialize() {
720-
static std::once_flag g_once_flag;
720+
static llvm::once_flag g_once_flag;
721721

722722
llvm::call_once(g_once_flag, []() {
723723
PluginManager::RegisterPlugin(GetPluginNameStatic(),

lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ ProcessSP ProcessWindows::CreateInstance(lldb::TargetSP target_sp,
117117
}
118118

119119
void ProcessWindows::Initialize() {
120-
static std::once_flag g_once_flag;
120+
static llvm::once_flag g_once_flag;
121121

122122
llvm::call_once(g_once_flag, []() {
123123
PluginManager::RegisterPlugin(GetPluginNameStatic(),

lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ void ProcessElfCore::Clear() {
398398
}
399399

400400
void ProcessElfCore::Initialize() {
401-
static std::once_flag g_once_flag;
401+
static llvm::once_flag g_once_flag;
402402

403403
llvm::call_once(g_once_flag, []() {
404404
PluginManager::RegisterPlugin(GetPluginNameStatic(),

lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ bool GDBRemoteCommunicationServerPlatform::FreePortForProcess(lldb::pid_t pid) {
517517

518518
const FileSpec &GDBRemoteCommunicationServerPlatform::GetDomainSocketDir() {
519519
static FileSpec g_domainsocket_dir;
520-
static std::once_flag g_once_flag;
520+
static llvm::once_flag g_once_flag;
521521

522522
llvm::call_once(g_once_flag, []() {
523523
const char *domainsocket_dir_env =

lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ Status ProcessMachCore::GetMemoryRegionInfo(addr_t load_addr,
661661
void ProcessMachCore::Clear() { m_thread_list.Clear(); }
662662

663663
void ProcessMachCore::Initialize() {
664-
static std::once_flag g_once_flag;
664+
static llvm::once_flag g_once_flag;
665665

666666
llvm::call_once(g_once_flag, []() {
667667
PluginManager::RegisterPlugin(GetPluginNameStatic(),

lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ ProcessMinidump::~ProcessMinidump() {
154154
}
155155

156156
void ProcessMinidump::Initialize() {
157-
static std::once_flag g_once_flag;
157+
static llvm::once_flag g_once_flag;
158158

159159
llvm::call_once(g_once_flag, []() {
160160
PluginManager::RegisterPlugin(GetPluginNameStatic(),

lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ bool SymbolFilePDB::ParseSupportFiles(
379379

380380
bool SymbolFilePDB::ParseImportedModules(
381381
const lldb_private::SymbolContext &sc,
382-
std::vector<lldb_private::SourceModule> &imported_modules) {
382+
std::vector<SourceModule> &imported_modules) {
383383
// PDB does not yet support module debug info
384384
return false;
385385
}

lldb/source/Symbol/Variable.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,7 @@ static void PrivateAutoComplete(
730730
continue;
731731

732732
const char *variable_name = variable->GetName().AsCString();
733-
if (variable_name &&
734-
strstr(variable_name, token.c_str()) == variable_name) {
733+
if (strstr(variable_name, token.c_str()) == variable_name) {
735734
if (strcmp(variable_name, token.c_str()) == 0) {
736735
Type *variable_type = variable->GetType();
737736
if (variable_type) {

lldb/source/Target/QueueItem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "lldb/Target/QueueItem.h"
10-
#include "lldb/Target/Process.h"
119
#include "lldb/Target/Queue.h"
10+
#include "lldb/Target/Process.h"
11+
#include "lldb/Target/QueueItem.h"
1212
#include "lldb/Target/SystemRuntime.h"
1313

1414
using namespace lldb;

lldb/source/Target/QueueList.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "lldb/Target/QueueList.h"
10-
#include "lldb/Target/Process.h"
119
#include "lldb/Target/Queue.h"
10+
#include "lldb/Target/Process.h"
11+
#include "lldb/Target/QueueList.h"
1212

1313
using namespace lldb;
1414
using namespace lldb_private;

lldb/source/Utility/ConstString.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class Pool {
188188
// ConstStrings is difficult. So we leak the pool instead.
189189
//----------------------------------------------------------------------
190190
static Pool &StringPool() {
191-
static std::once_flag g_pool_initialization_flag;
191+
static llvm::once_flag g_pool_initialization_flag;
192192
static Pool *g_string_pool = nullptr;
193193

194194
llvm::call_once(g_pool_initialization_flag,

0 commit comments

Comments
 (0)