0

Fix header guards in native_client_sdk/ [1/2]

Consider native_client_sdk/src as root.
Generated mechanically as follows:

git ls-files '*.h' | grep -E '^native_client_sdk/' |\
grep -v third_party |\
parallel --xargs cpplint.py --filter=-,+build/header_guard -- 2>&1 |\
grep build/header | head -151 |\
tools/apply_cpplint_header_guard.py native_client_sdk/src/

Bug: 1200694
Change-Id: Ifc1e1a3c79745e71ef7f092a6cd77eb538e0b0ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3023704
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Reviewed-by: Henrique Ferreiro <hferreiro@igalia.com>
Reviewed-by: Sam Clegg <sbc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#904682}
This commit is contained in:
Sumaid Syed
2021-07-23 09:19:46 +00:00
committed by Chromium LUCI CQ
parent 100d926112
commit fdc8f46b56
40 changed files with 86 additions and 86 deletions

@ -1,5 +1,5 @@
#ifndef EXAMPLES_HELLO_WORLD_GLES_MATRIX_H
#define EXAMPLES_HELLO_WORLD_GLES_MATRIX_H
#ifndef EXAMPLES_API_GRAPHICS_3D_MATRIX_H_
#define EXAMPLES_API_GRAPHICS_3D_MATRIX_H_
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
@ -40,4 +40,4 @@ void multiply_matrix(const Matrix_t a, const Matrix_t b, Matrix_t mat);
void rotate_matrix(GLfloat x_deg, GLfloat y_deg, GLfloat z_deg, Matrix_t mat);
void translate_matrix(GLfloat x, GLfloat y, GLfloat z, Matrix_t mat);
#endif // EXAMPLES_HELLO_WORLD_GLES_MATRIX_H
#endif // EXAMPLES_API_GRAPHICS_3D_MATRIX_H_

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SOCKET_ECHO_SERVER_H_
#define SOCKET_ECHO_SERVER_H_
#ifndef EXAMPLES_API_SOCKET_ECHO_SERVER_H_
#define EXAMPLES_API_SOCKET_ECHO_SERVER_H_
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/tcp_socket.h"
@ -43,4 +43,4 @@ class EchoServer {
char receive_buffer_[kBufferSize];
};
#endif // SOCKET_ECHO_SERVER_H_
#endif // EXAMPLES_API_SOCKET_ECHO_SERVER_H_

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef URL_LOADER_HANDLER_H_
#define URL_LOADER_HANDLER_H_
#ifndef EXAMPLES_API_URL_LOADER_URL_LOADER_HANDLER_H_
#define EXAMPLES_API_URL_LOADER_URL_LOADER_HANDLER_H_
#include <string>
#include "ppapi/cpp/completion_callback.h"
@ -85,4 +85,4 @@ class URLLoaderHandler {
void operator=(const URLLoaderHandler&);
};
#endif // URL_LOADER_HANDLER_H_
#endif // EXAMPLES_API_URL_LOADER_URL_LOADER_HANDLER_H_

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXAMPLES_VIDEO_DECODE_TESTDATA_H_
#define EXAMPLES_VIDEO_DECODE_TESTDATA_H_
#ifndef EXAMPLES_API_VIDEO_DECODE_TESTDATA_H_
#define EXAMPLES_API_VIDEO_DECODE_TESTDATA_H_
namespace {
@ -32903,4 +32903,4 @@ const unsigned char kData[] = {
#endif // USE_VP8_TESTDATA_INSTEAD_OF_H264
} // namespace
#endif // EXAMPLES_VIDEO_DECODE_TESTDATA_H_
#endif // EXAMPLES_API_VIDEO_DECODE_TESTDATA_H_

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VPN_PROVIDER_HELPER_H_
#define VPN_PROVIDER_HELPER_H_
#ifndef EXAMPLES_API_VPN_PROVIDER_VPN_PROVIDER_HELPER_H_
#define EXAMPLES_API_VPN_PROVIDER_VPN_PROVIDER_HELPER_H_
#include <stdint.h>
@ -49,4 +49,4 @@ class VpnProviderHelper {
std::string config_id_;
};
#endif
#endif // EXAMPLES_API_VPN_PROVIDER_VPN_PROVIDER_HELPER_H_

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FRAME_COUNTER_H_
#define FRAME_COUNTER_H_
#ifndef EXAMPLES_DEMO_FLOCK_FRAME_COUNTER_H_
#define EXAMPLES_DEMO_FLOCK_FRAME_COUNTER_H_
class FrameCounter {
public:
@ -43,4 +43,4 @@ class FrameCounter {
double frames_per_second_;
};
#endif // FRAME_COUNTER_H_
#endif // EXAMPLES_DEMO_FLOCK_FRAME_COUNTER_H_

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GOOSE_H_
#define GOOSE_H_
#ifndef EXAMPLES_DEMO_FLOCK_GOOSE_H_
#define EXAMPLES_DEMO_FLOCK_GOOSE_H_
#include <vector>
#include "ppapi/cpp/rect.h"
@ -126,4 +126,4 @@ class Goose {
Vector2 velocity_;
};
#endif // GOOSE_H_
#endif // EXAMPLES_DEMO_FLOCK_GOOSE_H_

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SPRITE_H_
#define SPRITE_H_
#ifndef EXAMPLES_DEMO_FLOCK_SPRITE_H_
#define EXAMPLES_DEMO_FLOCK_SPRITE_H_
#include <vector>
#include "ppapi/cpp/point.h"
@ -54,4 +54,4 @@ class Sprite {
int32_t row_bytes_;
};
#endif // SPRITE_H_
#endif // EXAMPLES_DEMO_FLOCK_SPRITE_H_

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VECTOR2_H_
#define VECTOR2_H_
#ifndef EXAMPLES_DEMO_FLOCK_VECTOR2_H_
#define EXAMPLES_DEMO_FLOCK_VECTOR2_H_
#include <stdlib.h>
#include <cmath>
@ -78,4 +78,4 @@ class Vector2 {
double y_;
};
#endif // VECTOR2_H_
#endif // EXAMPLES_DEMO_FLOCK_VECTOR2_H_

@ -2,8 +2,8 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
#ifndef HANDLERS_H_
#define HANDLERS_H_
#ifndef EXAMPLES_DEMO_NACL_IO_DEMO_HANDLERS_H_
#define EXAMPLES_DEMO_NACL_IO_DEMO_HANDLERS_H_
#include "ppapi/c/pp_var.h"
@ -38,4 +38,4 @@ int HandleSend(struct PP_Var params, struct PP_Var* out, const char** error);
int HandleRecv(struct PP_Var params, struct PP_Var* out, const char** error);
int HandleClose(struct PP_Var params, struct PP_Var* out, const char** error);
#endif /* HANDLERS_H_ */
#endif // EXAMPLES_DEMO_NACL_IO_DEMO_HANDLERS_H_

@ -2,8 +2,8 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
#ifndef NACL_IO_DEMO_H_
#define NACL_IO_DEMO_H_
#ifndef EXAMPLES_DEMO_NACL_IO_DEMO_NACL_IO_DEMO_H_
#define EXAMPLES_DEMO_NACL_IO_DEMO_NACL_IO_DEMO_H_
#include <stdarg.h>
#include "ppapi/c/pp_instance.h"
@ -22,4 +22,4 @@ extern PPB_Var* g_ppb_var;
extern PPB_VarArray* g_ppb_var_array;
extern PPB_VarDictionary* g_ppb_var_dictionary;
#endif /* NACL_IO_DEMO_H_ */
#endif // EXAMPLES_DEMO_NACL_IO_DEMO_NACL_IO_DEMO_H_

@ -2,8 +2,8 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
#ifndef QUEUE_H_
#define QUEUE_H_
#ifndef EXAMPLES_DEMO_NACL_IO_DEMO_QUEUE_H_
#define EXAMPLES_DEMO_NACL_IO_DEMO_QUEUE_H_
#include "ppapi/c/pp_var.h"
@ -28,4 +28,4 @@ void InitializeMessageQueue();
int EnqueueMessage(struct PP_Var message);
struct PP_Var DequeueMessage();
#endif /* QUEUE_H_ */
#endif // EXAMPLES_DEMO_NACL_IO_DEMO_QUEUE_H_

@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EIGHTBALL_H_
#define EIGHTBALL_H_
#ifndef EXAMPLES_TUTORIAL_DLOPEN_EIGHTBALL_H_
#define EXAMPLES_TUTORIAL_DLOPEN_EIGHTBALL_H_
/* Return an answer. Question not required */
typedef char* (*TYPE_eightball)(void);
extern "C" const char* Magic8Ball();
#endif /* EIGHTBALL_H_ */
#endif // EXAMPLES_TUTORIAL_DLOPEN_EIGHTBALL_H_

@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REVERSE_H_
#define REVERSE_H_
#ifndef EXAMPLES_TUTORIAL_DLOPEN_REVERSE_H_
#define EXAMPLES_TUTORIAL_DLOPEN_REVERSE_H_
/* Allocate a new string that is the reverse of the given string. */
typedef char* (*TYPE_reverse)(const char*);
extern "C" char* Reverse(const char*);
#endif /* REVERSE_H_ */
#endif // EXAMPLES_TUTORIAL_DLOPEN_REVERSE_H_

@ -1,5 +1,5 @@
#ifndef CUBE_MATRIX_H
#define CUBE_MATRIX_H
#ifndef GONACL_APPENGINE_SRC_CUBE_MATRIX_H_
#define GONACL_APPENGINE_SRC_CUBE_MATRIX_H_
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
@ -40,4 +40,4 @@ void multiply_matrix(const Matrix_t a, const Matrix_t b, Matrix_t mat);
void rotate_matrix(GLfloat x_deg, GLfloat y_deg, GLfloat z_deg, Matrix_t mat);
void translate_matrix(GLfloat x, GLfloat y, GLfloat z, Matrix_t mat);
#endif // CUBE_MATRIX_H
#endif // GONACL_APPENGINE_SRC_CUBE_MATRIX_H_

@ -4,8 +4,8 @@
* found in the LICENSE file.
*/
#ifndef ERROR_HANDLING_ERROR_HANDLING_H_
#define ERROR_HANDLING_ERROR_HANDLING_H_
#ifndef LIBRARIES_ERROR_HANDLING_ERROR_HANDLING_H_
#define LIBRARIES_ERROR_HANDLING_ERROR_HANDLING_H_
#include "error_handling/string_stream.h"
#include "sdk_util/macros.h"
@ -82,5 +82,5 @@ int EHUnwindFrame(EHFrame* frame);
EXTERN_C_END
#endif // ERROR_HANDLING_ERROR_HANDLING_H_
#endif // LIBRARIES_ERROR_HANDLING_ERROR_HANDLING_H_

@ -4,8 +4,8 @@
* found in the LICENSE file.
*/
#ifndef ERROR_HANDLING_STRING_STREAM_H
#define ERROR_HANDLING_STRING_STREAM_H
#ifndef LIBRARIES_ERROR_HANDLING_STRING_STREAM_H_
#define LIBRARIES_ERROR_HANDLING_STRING_STREAM_H_
/*
* Support for a stream stream in 'C', which is appended to via an sprintf-like
@ -27,4 +27,4 @@ void ssfree(sstream_t* stream);
int ssvprintf(sstream_t* sstream, const char* format, va_list args);
int ssprintf(sstream_t* sstream, const char* format, ...);
#endif /* ERROR_HANDLING_STRING_STREAM_H */
#endif // LIBRARIES_ERROR_HANDLING_STRING_STREAM_H_

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_
#define LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_
#ifndef LIBRARIES_NACL_IO_GOOGLEDRIVEFS_GOOGLEDRIVEFS_H_
#define LIBRARIES_NACL_IO_GOOGLEDRIVEFS_GOOGLEDRIVEFS_H_
#include "nacl_io/filesystem.h"
#include "nacl_io/node.h"
@ -39,4 +39,4 @@ class GoogleDriveFs : public Filesystem {
} // namespace nacl_io
#endif // LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_
#endif // LIBRARIES_NACL_IO_GOOGLEDRIVEFS_GOOGLEDRIVEFS_H_

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIBRARIES_NACL_IO_GOOGLEDRIVEFS_NODE_H_
#define LIBRARIES_NACL_IO_GOOGLEDRIVEFS_NODE_H_
#ifndef LIBRARIES_NACL_IO_GOOGLEDRIVEFS_GOOGLEDRIVEFS_NODE_H_
#define LIBRARIES_NACL_IO_GOOGLEDRIVEFS_GOOGLEDRIVEFS_NODE_H_
#include <sys/stat.h>
@ -36,4 +36,4 @@ class GoogleDriveFsNode : public Node {
} // namespace nacl_io
#endif // LIBRARIES_NACL_IO_GOOGLEDRIVEFS_NODE_H_
#endif // LIBRARIES_NACL_IO_GOOGLEDRIVEFS_GOOGLEDRIVEFS_NODE_H_

@ -7,4 +7,4 @@
#include <string.h>
#endif
#endif // LIBRARIES_NACL_IO_INCLUDE_MEMORY_H_

@ -7,4 +7,4 @@
#include <sys/poll.h>
#endif
#endif // LIBRARIES_NACL_IO_INCLUDE_POLL_H_

@ -23,4 +23,4 @@ int ioctl(int fd, unsigned long request, ...);
__END_DECLS
#endif /* LIBRARIES_NACL_IO_INCLUDE_SYS_IOCTL_H_ */
#endif // LIBRARIES_NACL_IO_INCLUDE_SYS_IOCTL_H_

@ -2,8 +2,8 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
#ifndef LIBRARIES_NACL_IO_INCLUDE_SYS_MOUNT_H
#define LIBRARIES_NACL_IO_INCLUDE_SYS_MOUNT_H
#ifndef LIBRARIES_NACL_IO_INCLUDE_SYS_MOUNT_H_
#define LIBRARIES_NACL_IO_INCLUDE_SYS_MOUNT_H_
#include <sys/cdefs.h>
@ -19,4 +19,4 @@ int umount(const char* target);
__END_DECLS
#endif /* LIBRARIES_NACL_IO_INCLUDE_SYS_MOUNT_H */
#endif // LIBRARIES_NACL_IO_INCLUDE_SYS_MOUNT_H_

@ -34,4 +34,4 @@ int poll(struct pollfd* __fds, nfds_t __nfds, int __timeout);
__END_DECLS
#endif /* LIBRARIES_NACL_IO_INCLUDE_SYS_POLL_H_ */
#endif // LIBRARIES_NACL_IO_INCLUDE_SYS_POLL_H_

@ -139,4 +139,4 @@ int tcsetattr(int fd, int optional_actions, const struct termios* termios_p);
__END_DECLS
#endif /* LIBRARIES_NACL_IO_INCLUDE_SYS_TERMIOS_H_ */
#endif // LIBRARIES_NACL_IO_INCLUDE_SYS_TERMIOS_H_

@ -4,8 +4,8 @@
#include_next <sys/time.h>
#ifndef LIBRARIES_NACL_IO_INCLUDE_SYS_TIME_H
#define LIBRARIES_NACL_IO_INCLUDE_SYS_TIME_H
#ifndef LIBRARIES_NACL_IO_INCLUDE_SYS_TIME_H_
#define LIBRARIES_NACL_IO_INCLUDE_SYS_TIME_H_
#include <sys/cdefs.h>
#include <stdint.h>
@ -19,4 +19,4 @@ int futimes(int fd, const struct timeval times[2]);
__END_DECLS
#endif /* LIBRARIES_NACL_IO_INCLUDE_SYS_TIME_H */
#endif // LIBRARIES_NACL_IO_INCLUDE_SYS_TIME_H_

@ -23,4 +23,4 @@ int uname(struct utsname* buf);
__END_DECLS
#endif /* LIBRARIES_NACL_IO_INCLUDE_SYS_UTSNAME_H_ */
#endif // LIBRARIES_NACL_IO_INCLUDE_SYS_UTSNAME_H_

@ -17,4 +17,4 @@ int utime(const char* filename, const struct utimbuf* times);
__END_DECLS
#endif /* LIBRARIES_NACL_IO_INCLUDE_UTIME_H_ */
#endif // LIBRARIES_NACL_IO_INCLUDE_UTIME_H_

@ -54,4 +54,4 @@ struct tioc_nacl_output {
};
#endif /* LIBRARIES_NACL_IO_NACL_IO_H_ */
#endif // LIBRARIES_NACL_IO_IOCTL_H_

@ -65,4 +65,4 @@ class JsFsNode : public Node {
} // namespace nacl_io
#endif // LIBRARIES_NACL_IO_JSFS_JS_FS_H_
#endif // LIBRARIES_NACL_IO_JSFS_JS_FS_NODE_H_

@ -195,4 +195,4 @@ int ki_socketpair(int domain, int type, int protocl, int* sv);
EXTERN_C_END
#endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */
#endif // LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_

@ -55,4 +55,4 @@ void nacl_io_log(const char* format, ...) PRINTF_LIKE(1, 2);
EXTERN_C_END
#endif /* LIBRARIES_NACL_IO_LOG_H_ */
#endif // LIBRARIES_NACL_IO_LOG_H_

@ -129,4 +129,4 @@ struct nacl_abi_dirent {
char nacl_abi_d_name[MAXNAMLEN + 1];
};
#endif /* LIBRARIES_NACL_IO_NACL_ABI_TYPES_H_ */
#endif // LIBRARIES_NACL_IO_NACL_ABI_TYPES_H_

@ -223,4 +223,4 @@ void nacl_io_set_mount_callback(nacl_io_mount_callback_t callback,
EXTERN_C_END
#endif /* LIBRARIES_NACL_IO_NACL_IO_H_ */
#endif // LIBRARIES_NACL_IO_NACL_IO_H_

@ -24,4 +24,4 @@ struct dirent {
#endif
#endif /* LIBRARIES_NACL_IO_OSDIRENT_H_ */
#endif // LIBRARIES_NACL_IO_OSDIRENT_H_

@ -2,8 +2,8 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
#ifndef NACL_IO_OSINTTYPES_H_
#define NACL_IO_OSINTTYPES_H_
#ifndef LIBRARIES_NACL_IO_OSINTTYPES_H_
#define LIBRARIES_NACL_IO_OSINTTYPES_H_
/* Define printf/scanf format strings for size_t. */
@ -40,4 +40,4 @@
#define PRIoff "lld"
#endif
#endif /* NACL_IO_OSINTTYPES_H_ */
#endif // LIBRARIES_NACL_IO_OSINTTYPES_H_

@ -2,8 +2,8 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
#ifndef LIBRARIES_NACL_IO_OSMMAN_H
#define LIBRARIES_NACL_IO_OSMMAN_H
#ifndef LIBRARIES_NACL_IO_OSMMAN_H_
#define LIBRARIES_NACL_IO_OSMMAN_H_
#if defined(WIN32)
@ -28,4 +28,4 @@
#endif
#endif /* LIBRARIES_NACL_IO_OSMMAN_H */
#endif // LIBRARIES_NACL_IO_OSMMAN_H_

@ -17,4 +17,4 @@ typedef _sig_func_ptr sighandler_t;
#endif
#endif /* !WIN23 */
#endif /* LIBRARIES_NACL_IO_OSSIGNAL_H_ */
#endif // LIBRARIES_NACL_IO_OSSIGNAL_H_

@ -26,4 +26,4 @@ struct iovec {
#define PROVIDES_SOCKET_API
#endif
#endif /* LIBRARIES_NACL_IO_OSSOCKET_H_ */
#endif // LIBRARIES_NACL_IO_OSSOCKET_H_

@ -20,4 +20,4 @@
#define S_IEXEC _S_IEXEC
#endif
#endif /* LIBRARIES_NACL_IO_OSSTAT_H_ */
#endif // LIBRARIES_NACL_IO_OSSTAT_H_