Skip to content

Commit

Permalink
apply clang-format to all files in runtime-light
Browse files Browse the repository at this point in the history
  • Loading branch information
apolyakov committed Feb 4, 2025
1 parent 966711d commit 67530b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion runtime-light/coroutine/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "runtime-light/k2-platform/k2-api.h"

#if __clang_major__ > 7
#define CPPCORO_COMPILER_SUPPORTS_SYMMETRIC_TRANSFER
#define CPPCORO_COMPILER_SUPPORTS_SYMMETRIC_TRANSFER
#endif

struct task_base_t {
Expand Down
14 changes: 7 additions & 7 deletions runtime-light/k2-platform/k2-header.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
#pragma once

#ifndef K2_API_HEADER_H
#error "should not be directly included"
#error "should not be directly included"
#endif // K2_API_HEADER_H

#include <sys/socket.h>
#include <sys/utsname.h>

#ifdef __cplusplus
#include <atomic>
#include <cstdint>
#include <cstring>
#include <atomic>
#include <cstdint>
#include <cstring>
#else
#include <stdatomic.h>
#include <stdint.h>
#include <string.h>
#include <stdatomic.h>
#include <stdint.h>
#include <string.h>
#endif

#define K2_PLATFORM_HEADER_H_VERSION 11
Expand Down
4 changes: 2 additions & 2 deletions runtime-light/stdlib/diagnostics/exception-functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#define CHECK_EXCEPTION(action)

#ifdef __clang__
#define TRY_CALL_RET_(x) x
#define TRY_CALL_RET_(x) x
#else
#define TRY_CALL_RET_(x) std::move(x)
#define TRY_CALL_RET_(x) std::move(x)
#endif

#define TRY_CALL_(CallT, call, action) \
Expand Down

0 comments on commit 67530b0

Please sign in to comment.