Skip to content

Commit

Permalink
Apply clang-tidy suggestions on regular files
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZhihao-723 committed Apr 29, 2024
1 parent bc6fca9 commit 3d06c36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/src/ffi_go/api_decoration.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
* ensure C linkage.
*/
#ifdef __cplusplus
#define _CLP_FFI_GO_EXTERN_C extern "C"
#define CLP_FFI_GO_EXTERN_C extern "C"
#else
#define _CLP_FFI_GO_EXTERN_C
#define CLP_FFI_GO_EXTERN_C
#endif

/**
* `CLP_FFI_GO_METHOD` should be added at the beginning of a function's
* declaration/implementation to decorate any APIs that are exposed to the
* Golang layer.
*/
#define CLP_FFI_GO_METHOD _CLP_FFI_GO_EXTERN_C
#define CLP_FFI_GO_METHOD CLP_FFI_GO_EXTERN_C

#endif
1 change: 1 addition & 0 deletions cpp/src/ffi_go/types.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef FFI_GO_LOG_TYPES_HPP
#define FFI_GO_LOG_TYPES_HPP

#include <cstddef>
#include <string>

namespace ffi_go {
Expand Down

0 comments on commit 3d06c36

Please sign in to comment.