mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 01:42:33 +00:00
virtual dtor out-of-line
This commit is contained in:
parent
4bdf8c825b
commit
6a72712404
@ -4,6 +4,12 @@
|
||||
|
||||
#include "../third_party/doctest/doctest/doctest.h"
|
||||
|
||||
PlatformMutex::~PlatformMutex() = default;
|
||||
|
||||
PlatformScopedMutexLock::~PlatformScopedMutexLock() = default;
|
||||
|
||||
PlatformSharedMemory::~PlatformSharedMemory() = default;
|
||||
|
||||
TEST_SUITE("Platform");
|
||||
|
||||
TEST_CASE("Mutex lock/unlock (single process)") {
|
||||
|
@ -4,13 +4,13 @@
|
||||
#include <string>
|
||||
|
||||
struct PlatformMutex {
|
||||
virtual ~PlatformMutex() {}
|
||||
virtual ~PlatformMutex();
|
||||
};
|
||||
struct PlatformScopedMutexLock {
|
||||
virtual ~PlatformScopedMutexLock() {}
|
||||
virtual ~PlatformScopedMutexLock();
|
||||
};
|
||||
struct PlatformSharedMemory {
|
||||
virtual ~PlatformSharedMemory() {}
|
||||
virtual ~PlatformSharedMemory();
|
||||
void* data;
|
||||
size_t capacity;
|
||||
std::string name;
|
||||
@ -23,4 +23,4 @@ std::unique_ptr<PlatformSharedMemory> CreatePlatformSharedMemory(
|
||||
const std::string& name,
|
||||
size_t size);
|
||||
|
||||
std::string GetWorkingDirectory();
|
||||
std::string GetWorkingDirectory();
|
||||
|
Loading…
Reference in New Issue
Block a user