Skip to content

Commit

Permalink
Merge pull request grpc#900 from nicolasnoble/headers
Browse files Browse the repository at this point in the history
Guard headers tool.
  • Loading branch information
ctiller committed Mar 1, 2015
2 parents 0c84e3c + 1ff52d5 commit fe3c37c
Show file tree
Hide file tree
Showing 186 changed files with 645 additions and 556 deletions.
6 changes: 3 additions & 3 deletions examples/pubsub/publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_EXAMPLES_PUBSUB_PUBLISHER_H_
#define __GRPCPP_EXAMPLES_PUBSUB_PUBLISHER_H_
#ifndef GRPC_EXAMPLES_PUBSUB_PUBLISHER_H
#define GRPC_EXAMPLES_PUBSUB_PUBLISHER_H

#include <grpc++/channel_interface.h>
#include <grpc++/status.h>
Expand Down Expand Up @@ -64,4 +64,4 @@ class Publisher {
} // namespace examples
} // namespace grpc

#endif // __GRPCPP_EXAMPLES_PUBSUB_PUBLISHER_H_
#endif // GRPC_EXAMPLES_PUBSUB_PUBLISHER_H
6 changes: 3 additions & 3 deletions examples/pubsub/subscriber.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_EXAMPLES_PUBSUB_SUBSCRIBER_H_
#define __GRPCPP_EXAMPLES_PUBSUB_SUBSCRIBER_H_
#ifndef GRPC_EXAMPLES_PUBSUB_SUBSCRIBER_H
#define GRPC_EXAMPLES_PUBSUB_SUBSCRIBER_H

#include <grpc++/channel_interface.h>
#include <grpc++/status.h>
Expand Down Expand Up @@ -65,4 +65,4 @@ class Subscriber {
} // namespace examples
} // namespace grpc

#endif // __GRPCPP_EXAMPLES_PUBSUB_SUBSCRIBER_H_
#endif // GRPC_EXAMPLES_PUBSUB_SUBSCRIBER_H
6 changes: 3 additions & 3 deletions include/grpc++/async_unary_call.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_ASYNC_UNARY_CALL_H__
#define __GRPCPP_ASYNC_UNARY_CALL_H__
#ifndef GRPCXX_ASYNC_UNARY_CALL_H
#define GRPCXX_ASYNC_UNARY_CALL_H

#include <grpc++/channel_interface.h>
#include <grpc++/client_context.h>
Expand Down Expand Up @@ -138,4 +138,4 @@ class ServerAsyncResponseWriter GRPC_FINAL

} // namespace grpc

#endif // __GRPCPP_ASYNC_UNARY_CALL_H__
#endif // GRPCXX_ASYNC_UNARY_CALL_H
6 changes: 3 additions & 3 deletions include/grpc++/channel_arguments.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_CHANNEL_ARGUMENTS_H_
#define __GRPCPP_CHANNEL_ARGUMENTS_H_
#ifndef GRPCXX_CHANNEL_ARGUMENTS_H
#define GRPCXX_CHANNEL_ARGUMENTS_H

#include <vector>
#include <list>
Expand Down Expand Up @@ -82,4 +82,4 @@ class ChannelArguments {

} // namespace grpc

#endif // __GRPCPP_CHANNEL_ARGUMENTS_H_
#endif // GRPCXX_CHANNEL_ARGUMENTS_H
6 changes: 3 additions & 3 deletions include/grpc++/channel_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_CHANNEL_INTERFACE_H__
#define __GRPCPP_CHANNEL_INTERFACE_H__
#ifndef GRPCXX_CHANNEL_INTERFACE_H
#define GRPCXX_CHANNEL_INTERFACE_H

#include <grpc++/status.h>
#include <grpc++/impl/call.h>
Expand Down Expand Up @@ -63,4 +63,4 @@ class ChannelInterface : public CallHook {

} // namespace grpc

#endif // __GRPCPP_CHANNEL_INTERFACE_H__
#endif // GRPCXX_CHANNEL_INTERFACE_H
6 changes: 3 additions & 3 deletions include/grpc++/client_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_CLIENT_CONTEXT_H__
#define __GRPCPP_CLIENT_CONTEXT_H__
#ifndef GRPCXX_CLIENT_CONTEXT_H
#define GRPCXX_CLIENT_CONTEXT_H

#include <chrono>
#include <map>
Expand Down Expand Up @@ -151,4 +151,4 @@ class ClientContext {

} // namespace grpc

#endif // __GRPCPP_CLIENT_CONTEXT_H__
#endif // GRPCXX_CLIENT_CONTEXT_H
6 changes: 3 additions & 3 deletions include/grpc++/completion_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_COMPLETION_QUEUE_H__
#define __GRPCPP_COMPLETION_QUEUE_H__
#ifndef GRPCXX_COMPLETION_QUEUE_H
#define GRPCXX_COMPLETION_QUEUE_H

#include <grpc++/impl/client_unary_call.h>

Expand Down Expand Up @@ -121,4 +121,4 @@ class CompletionQueue {

} // namespace grpc

#endif // __GRPCPP_COMPLETION_QUEUE_H__
#endif // GRPCXX_COMPLETION_QUEUE_H
6 changes: 3 additions & 3 deletions include/grpc++/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_CONFIG_H__
#define __GRPCPP_CONFIG_H__
#ifndef GRPCXX_CONFIG_H
#define GRPCXX_CONFIG_H

#include <string>

Expand All @@ -50,4 +50,4 @@ typedef std::string string;

} // namespace grpc

#endif // __GRPCPP_CONFIG_H__
#endif // GRPCXX_CONFIG_H
6 changes: 3 additions & 3 deletions include/grpc++/create_channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_CREATE_CHANNEL_H__
#define __GRPCPP_CREATE_CHANNEL_H__
#ifndef GRPCXX_CREATE_CHANNEL_H
#define GRPCXX_CREATE_CHANNEL_H

#include <memory>

Expand All @@ -55,4 +55,4 @@ std::shared_ptr<ChannelInterface> CreateChannel(

} // namespace grpc

#endif // __GRPCPP_CREATE_CHANNEL_H__
#endif // GRPCXX_CREATE_CHANNEL_H
6 changes: 3 additions & 3 deletions include/grpc++/credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_CREDENTIALS_H_
#define __GRPCPP_CREDENTIALS_H_
#ifndef GRPCXX_CREDENTIALS_H
#define GRPCXX_CREDENTIALS_H

#include <chrono>
#include <memory>
Expand Down Expand Up @@ -133,4 +133,4 @@ class CredentialsFactory {

} // namespace grpc

#endif // __GRPCPP_CREDENTIALS_H_
#endif // GRPCXX_CREDENTIALS_H
6 changes: 3 additions & 3 deletions include/grpc++/impl/call.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_CALL_H__
#define __GRPCPP_CALL_H__
#ifndef GRPCXX_IMPL_CALL_H
#define GRPCXX_IMPL_CALL_H

#include <grpc/grpc.h>
#include <grpc++/config.h>
Expand Down Expand Up @@ -143,4 +143,4 @@ class Call GRPC_FINAL {

} // namespace grpc

#endif // __GRPCPP_CALL_INTERFACE_H__
#endif // GRPCXX_IMPL_CALL_H
6 changes: 3 additions & 3 deletions include/grpc++/impl/client_unary_call.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_CLIENT_UNARY_CALL_H__
#define __GRPCPP_CLIENT_UNARY_CALL_H__
#ifndef GRPCXX_IMPL_CLIENT_UNARY_CALL_H
#define GRPCXX_IMPL_CLIENT_UNARY_CALL_H

namespace google {
namespace protobuf {
Expand All @@ -56,4 +56,4 @@ Status BlockingUnaryCall(ChannelInterface *channel, const RpcMethod &method,

} // namespace grpc

#endif
#endif // GRPCXX_IMPL_CLIENT_UNARY_CALL_H
6 changes: 3 additions & 3 deletions include/grpc++/impl/internal_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_IMPL_INTERNAL_STUB_H__
#define __GRPCPP_IMPL_INTERNAL_STUB_H__
#ifndef GRPCXX_IMPL_INTERNAL_STUB_H
#define GRPCXX_IMPL_INTERNAL_STUB_H

#include <memory>

Expand All @@ -57,4 +57,4 @@ class InternalStub {

} // namespace grpc

#endif // __GRPCPP_IMPL_INTERNAL_STUB_H__
#endif // GRPCXX_IMPL_INTERNAL_STUB_H
6 changes: 3 additions & 3 deletions include/grpc++/impl/rpc_method.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_IMPL_RPC_METHOD_H__
#define __GRPCPP_IMPL_RPC_METHOD_H__
#ifndef GRPCXX_IMPL_RPC_METHOD_H
#define GRPCXX_IMPL_RPC_METHOD_H

namespace google {
namespace protobuf {
Expand Down Expand Up @@ -66,4 +66,4 @@ class RpcMethod {

} // namespace grpc

#endif // __GRPCPP_IMPL_RPC_METHOD_H__
#endif // GRPCXX_IMPL_RPC_METHOD_H
6 changes: 3 additions & 3 deletions include/grpc++/impl/rpc_service_method.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_IMPL_RPC_SERVICE_METHOD_H__
#define __GRPCPP_IMPL_RPC_SERVICE_METHOD_H__
#ifndef GRPCXX_IMPL_RPC_SERVICE_METHOD_H
#define GRPCXX_IMPL_RPC_SERVICE_METHOD_H

#include <functional>
#include <map>
Expand Down Expand Up @@ -203,4 +203,4 @@ class RpcService {

} // namespace grpc

#endif // __GRPCPP_IMPL_RPC_SERVICE_METHOD_H__
#endif // GRPCXX_IMPL_RPC_SERVICE_METHOD_H
6 changes: 3 additions & 3 deletions include/grpc++/impl/service_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_IMPL_SERVICE_TYPE_H__
#define __GRPCPP_IMPL_SERVICE_TYPE_H__
#ifndef GRPCXX_IMPL_SERVICE_TYPE_H
#define GRPCXX_IMPL_SERVICE_TYPE_H

namespace google {
namespace protobuf {
Expand Down Expand Up @@ -128,4 +128,4 @@ class AsynchronousService {

} // namespace grpc

#endif // __GRPCPP_IMPL_SERVICE_TYPE_H__
#endif // GRPCXX_IMPL_SERVICE_TYPE_H
6 changes: 3 additions & 3 deletions include/grpc++/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_SERVER_H__
#define __GRPCPP_SERVER_H__
#ifndef GRPCXX_SERVER_H
#define GRPCXX_SERVER_H

#include <condition_variable>
#include <list>
Expand Down Expand Up @@ -130,4 +130,4 @@ class Server GRPC_FINAL : private CallHook,

} // namespace grpc

#endif // __GRPCPP_SERVER_H__
#endif // GRPCXX_SERVER_H
6 changes: 3 additions & 3 deletions include/grpc++/server_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_SERVER_BUILDER_H__
#define __GRPCPP_SERVER_BUILDER_H__
#ifndef GRPCXX_SERVER_BUILDER_H
#define GRPCXX_SERVER_BUILDER_H

#include <memory>
#include <vector>
Expand Down Expand Up @@ -88,4 +88,4 @@ class ServerBuilder {

} // namespace grpc

#endif // __GRPCPP_SERVER_BUILDER_H__
#endif // GRPCXX_SERVER_BUILDER_H
6 changes: 3 additions & 3 deletions include/grpc++/server_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_SERVER_CONTEXT_H_
#define __GRPCPP_SERVER_CONTEXT_H_
#ifndef GRPCXX_SERVER_CONTEXT_H
#define GRPCXX_SERVER_CONTEXT_H

#include <chrono>
#include <map>
Expand Down Expand Up @@ -121,4 +121,4 @@ class ServerContext GRPC_FINAL {

} // namespace grpc

#endif // __GRPCPP_SERVER_CONTEXT_H_
#endif // GRPCXX_SERVER_CONTEXT_H
6 changes: 3 additions & 3 deletions include/grpc++/server_credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_SERVER_CREDENTIALS_H_
#define __GRPCPP_SERVER_CREDENTIALS_H_
#ifndef GRPCXX_SERVER_CREDENTIALS_H
#define GRPCXX_SERVER_CREDENTIALS_H

#include <memory>
#include <vector>
Expand Down Expand Up @@ -79,4 +79,4 @@ class ServerCredentialsFactory {

} // namespace grpc

#endif // __GRPCPP_SERVER_CREDENTIALS_H_
#endif // GRPCXX_SERVER_CREDENTIALS_H
6 changes: 3 additions & 3 deletions include/grpc++/status.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_STATUS_H__
#define __GRPCPP_STATUS_H__
#ifndef GRPCXX_STATUS_H
#define GRPCXX_STATUS_H

#include <grpc++/status_code_enum.h>
#include <grpc++/config.h>
Expand Down Expand Up @@ -62,4 +62,4 @@ class Status {

} // namespace grpc

#endif // __GRPCPP_STATUS_H__
#endif // GRPCXX_STATUS_H
6 changes: 3 additions & 3 deletions include/grpc++/status_code_enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_STATUS_CODE_ENUM_H__
#define __GRPCPP_STATUS_CODE_ENUM_H__
#ifndef GRPCXX_STATUS_CODE_ENUM_H
#define GRPCXX_STATUS_CODE_ENUM_H

namespace grpc {

Expand Down Expand Up @@ -195,4 +195,4 @@ enum StatusCode {

} // namespace grpc

#endif // __GRPCPP_STATUS_CODE_ENUM_H_
#endif // GRPCXX_STATUS_CODE_ENUM_H
6 changes: 3 additions & 3 deletions include/grpc++/stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*/

#ifndef __GRPCPP_STREAM_H__
#define __GRPCPP_STREAM_H__
#ifndef GRPCXX_STREAM_H
#define GRPCXX_STREAM_H

#include <grpc++/channel_interface.h>
#include <grpc++/client_context.h>
Expand Down Expand Up @@ -710,4 +710,4 @@ class ServerAsyncReaderWriter GRPC_FINAL : public ServerAsyncStreamingInterface,

} // namespace grpc

#endif // __GRPCPP_STREAM_H__
#endif // GRPCXX_STREAM_H
Loading

0 comments on commit fe3c37c

Please sign in to comment.