Convert include guard to pragma once (#8957)

This commit is contained in:
Siyuan (Ryans) Zhuang
2020-06-16 01:29:43 -07:00
committed by GitHub
parent cb6f337372
commit b68fede30b
163 changed files with 177 additions and 620 deletions
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef RAY_CHANNEL_H
#define RAY_CHANNEL_H
#pragma once
#include "config/streaming_config.h"
#include "queue/queue_handler.h"
@@ -198,5 +197,3 @@ class MockConsumer : public ConsumerChannel {
} // namespace streaming
} // namespace ray
#endif // RAY_CHANNEL_H
+1 -3
View File
@@ -1,5 +1,4 @@
#ifndef RAY_STREAMING_CONFIG_H
#define RAY_STREAMING_CONFIG_H
#pragma once
#include <cstdint>
#include <string>
@@ -67,4 +66,3 @@ class StreamingConfig {
};
} // namespace streaming
} // namespace ray
#endif // RAY_STREAMING_CONFIG_H
+1 -3
View File
@@ -1,5 +1,4 @@
#ifndef RAY_DATA_READER_H
#define RAY_DATA_READER_H
#pragma once
#include <cstdlib>
#include <functional>
@@ -128,4 +127,3 @@ class DataReader {
};
} // namespace streaming
} // namespace ray
#endif // RAY_DATA_READER_H
+1 -3
View File
@@ -1,5 +1,4 @@
#ifndef RAY_DATA_WRITER_H
#define RAY_DATA_WRITER_H
#pragma once
#include <cstring>
#include <mutex>
@@ -135,4 +134,3 @@ class DataWriter {
};
} // namespace streaming
} // namespace ray
#endif // RAY_DATA_WRITER_H
+2 -3
View File
@@ -1,5 +1,5 @@
#ifndef RAY_STREAMING_EVENT_SERVER_H
#define RAY_STREAMING_EVENT_SERVER_H
#pragma once
#include <condition_variable>
#include <mutex>
#include <queue>
@@ -139,4 +139,3 @@ class EventService {
};
} // namespace streaming
} // namespace ray
#endif // RAY_STREAMING_EVENT_SERVER_H
+2 -3
View File
@@ -1,5 +1,5 @@
#ifndef RAY_STREAMING_FLOW_CONTROL_H
#define RAY_STREAMING_FLOW_CONTROL_H
#pragma once
#include "channel.h"
namespace ray {
@@ -42,4 +42,3 @@ class UnconsumedSeqFlowControl : public FlowControl {
};
} // namespace streaming
} // namespace ray
#endif // RAY_STREAMING_FLOW_CONTROL_H
@@ -1,5 +1,4 @@
#ifndef RAY_STREAMING_JNI_COMMON_H
#define RAY_STREAMING_JNI_COMMON_H
#pragma once
#include <jni.h>
#include <string>
@@ -104,4 +103,3 @@ std::shared_ptr<ray::RayFunction> FunctionDescriptorToRayFunction(
void ParseChannelInitParameters(
JNIEnv *env, jobject param_obj,
std::vector<ray::streaming::ChannelCreationParameter> &parameter_vec);
#endif // RAY_STREAMING_JNI_COMMON_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef RAY_MESSAGE_H
#define RAY_MESSAGE_H
#pragma once
#include <memory>
@@ -89,5 +88,3 @@ class StreamingMessage {
} // namespace streaming
} // namespace ray
#endif // RAY_MESSAGE_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef RAY_MESSAGE_BUNDLE_H
#define RAY_MESSAGE_BUNDLE_H
#pragma once
#include <ctime>
#include <list>
@@ -178,5 +177,3 @@ class StreamingMessageBundle : public StreamingMessageBundleMeta {
};
} // namespace streaming
} // namespace ray
#endif // RAY_MESSAGE_BUNDLE_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef RAY_PRIORITY_QUEUE_H
#define RAY_PRIORITY_QUEUE_H
#pragma once
#include <algorithm>
#include <memory>
@@ -49,5 +48,3 @@ class PriorityQueue {
};
} // namespace streaming
} // namespace ray
#endif // RAY_PRIORITY_QUEUE_H
+1 -3
View File
@@ -1,5 +1,4 @@
#ifndef _STREAMING_QUEUE_MESSAGE_H_
#define _STREAMING_QUEUE_MESSAGE_H_
#pragma once
#include "protobuf/streaming_queue.pb.h"
#include "ray/common/buffer.h"
@@ -232,4 +231,3 @@ class TestCheckStatusRspMsg : public Message {
} // namespace streaming
} // namespace ray
#endif
+2 -3
View File
@@ -1,5 +1,5 @@
#ifndef _STREAMING_QUEUE_H_
#define _STREAMING_QUEUE_H_
#pragma once
#include <iterator>
#include <list>
#include <vector>
@@ -210,4 +210,3 @@ class ReaderQueue : public Queue {
} // namespace streaming
} // namespace ray
#endif
+2 -3
View File
@@ -1,5 +1,5 @@
#ifndef _STREAMING_QUEUE_CLIENT_H_
#define _STREAMING_QUEUE_CLIENT_H_
#pragma once
#include "queue_handler.h"
#include "transport.h"
@@ -50,4 +50,3 @@ class WriterClient {
};
} // namespace streaming
} // namespace ray
#endif
+1 -3
View File
@@ -1,5 +1,4 @@
#ifndef _QUEUE_SERVICE_H_
#define _QUEUE_SERVICE_H_
#pragma once
#include <boost/asio.hpp>
#include <boost/bind.hpp>
@@ -177,4 +176,3 @@ class DownstreamQueueMessageHandler : public QueueMessageHandler {
} // namespace streaming
} // namespace ray
#endif
+2 -3
View File
@@ -1,5 +1,5 @@
#ifndef _STREAMING_QUEUE_ITEM_H_
#define _STREAMING_QUEUE_ITEM_H_
#pragma once
#include <iterator>
#include <list>
#include <thread>
@@ -106,4 +106,3 @@ typedef std::shared_ptr<QueueItem> QueueItemPtr;
} // namespace streaming
} // namespace ray
#endif
+1 -3
View File
@@ -1,5 +1,4 @@
#ifndef _STREAMING_QUEUE_TRANSPORT_H_
#define _STREAMING_QUEUE_TRANSPORT_H_
#pragma once
#include "ray/common/id.h"
#include "ray/core_worker/core_worker.h"
@@ -66,4 +65,3 @@ class Transport {
};
} // namespace streaming
} // namespace ray
#endif
+2 -3
View File
@@ -1,5 +1,5 @@
#ifndef _STREAMING_QUEUE_UTILS_H_
#define _STREAMING_QUEUE_UTILS_H_
#pragma once
#include <chrono>
#include <future>
#include <thread>
@@ -47,4 +47,3 @@ class PromiseWrapper {
} // namespace streaming
} // namespace ray
#endif
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef RAY_RING_BUFFER_H
#define RAY_RING_BUFFER_H
#pragma once
#include <atomic>
#include <boost/circular_buffer.hpp>
@@ -216,5 +215,3 @@ class StreamingRingBuffer {
typedef std::shared_ptr<StreamingRingBuffer> StreamingRingBufferPtr;
} // namespace streaming
} // namespace ray
#endif // RAY_RING_BUFFER_H
+2 -4
View File
@@ -1,5 +1,5 @@
#ifndef RAY_STREAMING_H
#define RAY_STREAMING_H
#pragma once
#include <string>
#include "config/streaming_config.h"
@@ -38,5 +38,3 @@ class RuntimeContext {
} // namespace streaming
} // namespace ray
#endif // RAY_STREAMING_H
+2 -4
View File
@@ -1,5 +1,5 @@
#ifndef RAY_STREAMING_STATUS_H
#define RAY_STREAMING_STATUS_H
#pragma once
#include <ostream>
#include <sstream>
#include <string>
@@ -43,5 +43,3 @@ static inline std::ostream &operator<<(std::ostream &os, const StreamingStatus &
} // namespace streaming
} // namespace ray
#endif // RAY_STREAMING_STATUS_H
+2
View File
@@ -1,3 +1,5 @@
#pragma once
#include "ray/common/test_util.h"
#include "ray/util/filesystem.h"
+2 -4
View File
@@ -1,5 +1,5 @@
#ifndef RAY_STREAMING_LOGGING_H
#define RAY_STREAMING_LOGGING_H
#pragma once
#include "ray/util/logging.h"
#define STREAMING_LOG RAY_LOG
@@ -7,5 +7,3 @@
namespace ray {
namespace streaming {} // namespace streaming
} // namespace ray
#endif // RAY_STREAMING_LOGGING_H
+2 -4
View File
@@ -1,5 +1,5 @@
#ifndef RAY_STREAMING_UTIL_H
#define RAY_STREAMING_UTIL_H
#pragma once
#include <boost/any.hpp>
#include <string>
#include <unordered_map>
@@ -95,5 +95,3 @@ class Util {
};
} // namespace streaming
} // namespace ray
#endif // RAY_STREAMING_UTIL_H