refactor: tests and format the world (#314)

This commit is contained in:
ykiko
2025-11-30 15:21:27 +08:00
committed by GitHub
parent 2214d53ea5
commit cec13ec29b
201 changed files with 8302 additions and 8277 deletions

View File

@@ -1,10 +1,10 @@
#pragma once
#include "Lock.h"
#include "Event.h"
#include "Sleep.h"
#include "Gather.h"
#include "Network.h"
#include "FileSystem.h"
#include "Gather.h"
#include "Lock.h"
#include "Network.h"
#include "Sleep.h"
#include "ThreadPool.h"
#include "libuv.h"

View File

@@ -1,6 +1,7 @@
#pragma once
#include "Task.h"
#include "llvm/ADT/ArrayRef.h"
namespace clice::async {

View File

@@ -3,15 +3,14 @@
#include <chrono>
#include <cstddef>
#include "libuv.h"
#include "Task.h"
#include "Awaiter.h"
#include "Support/JSON.h"
#include "Task.h"
#include "libuv.h"
#include "Support/Enum.h"
#include "Support/JSON.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/FunctionExtras.h"
#include "llvm/ADT/StringRef.h"
namespace clice::async {
@@ -56,9 +55,9 @@ public:
~handle();
handle& operator= (const handle&) = delete;
handle& operator=(const handle&) = delete;
handle& operator= (handle&& other) noexcept = delete;
handle& operator=(handle&& other) noexcept = delete;
int value() const {
return file;

View File

@@ -1,10 +1,10 @@
#pragma once
#include <tuple>
#include <thread>
#include <tuple>
#include "Task.h"
#include "Event.h"
#include "Task.h"
namespace clice::async {

View File

@@ -1,12 +1,11 @@
#pragma once
#include "libuv.h"
#include "Task.h"
#include "libuv.h"
#include "Support/JSON.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/FunctionExtras.h"
#include "llvm/ADT/StringRef.h"
namespace clice::async::net {

View File

@@ -1,6 +1,7 @@
#pragma once
#include <chrono>
#include "Awaiter.h"
namespace clice::async {

View File

@@ -1,10 +1,10 @@
#pragma once
#include <cassert>
#include <coroutine>
#include <cstdint>
#include <cstdlib>
#include <optional>
#include <coroutine>
#include <source_location>
#include "Support/Format.h"
@@ -247,9 +247,9 @@ public:
other.core = nullptr;
}
Task& operator= (const Task&) = delete;
Task& operator=(const Task&) = delete;
Task& operator= (Task&& other) noexcept {
Task& operator=(Task&& other) noexcept {
if(core) {
core.destroy();
}

View File

@@ -12,11 +12,11 @@
#include <cassert>
#include <expected>
#include <type_traits>
#include <system_error>
#include <type_traits>
#include "Support/TypeTraits.h"
#include "Support/Logging.h"
#include "Support/TypeTraits.h"
namespace clice::async {