Skip to content

Commit

Permalink
Fix cpplint errors for new project structure (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexu33 committed Aug 11, 2022
1 parent ffa07c8 commit 9096bb9
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
if: runner.os == 'Linux'
run: |
source $VENV
cpplint --recursive --quiet --repository=src/lava/magma/runtime/message_infrastructure/ --filter=-build/include_subdir --root=src/lava/magma/runtime/message_infrastructure/src/*.cc src/lava/magma/runtime/message_infrastructure/include/*.h
cpplint --recursive --quiet --repository=src/lava/magma/runtime/message_infrastructure/csrc --filter=-build/include_subdir --root=src/lava/magma/runtime/message_infrastructure/csrc/*.cc src/lava/magma/runtime/message_infrastructure/csrc/*.h
security-lint:
name: Security Lint Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: BSD-3-Clause
// See: https://spdx.org/licenses/

#ifndef INCLUDE_ABSTRACT_ACTOR_H_
#define INCLUDE_ABSTRACT_ACTOR_H_
#ifndef ABSTRACT_ACTOR_H_
#define ABSTRACT_ACTOR_H_

namespace message_infrastructure {

Expand Down Expand Up @@ -37,4 +37,4 @@ using PosixActorPtr = PosixActor *;

} // namespace message_infrastructure

#endif // INCLUDE_ABSTRACT_ACTOR_H_
#endif // ABSTRACT_ACTOR_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: BSD-3-Clause
// See: https://spdx.org/licenses/

#ifndef INCLUDE_ABSTRACT_CHANNEL_H_
#define INCLUDE_ABSTRACT_CHANNEL_H_
#ifndef ABSTRACT_CHANNEL_H_
#define ABSTRACT_CHANNEL_H_

#include <memory>

Expand All @@ -20,4 +20,4 @@ class AbstractChannel {

} // namespace message_infrastructure

#endif // INCLUDE_ABSTRACT_CHANNEL_H_
#endif // ABSTRACT_CHANNEL_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: BSD-3-Clause
// See: https://spdx.org/licenses/

#ifndef INCLUDE_ABSTRACT_PORT_H_
#define INCLUDE_ABSTRACT_PORT_H_
#ifndef ABSTRACT_PORT_H_
#define ABSTRACT_PORT_H_

#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
Expand Down Expand Up @@ -43,4 +43,4 @@ using RecvPortPtr = AbstractRecvPort *;

} // namespace message_infrastructure

#endif // INCLUDE_ABSTRACT_PORT_H_
#endif // ABSTRACT_PORT_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: BSD-3-Clause
// See: https://spdx.org/licenses/

#ifndef INCLUDE_ABSTRACT_PORT_IMPLEMENTATION_H_
#define INCLUDE_ABSTRACT_PORT_IMPLEMENTATION_H_
#ifndef ABSTRACT_PORT_IMPLEMENTATION_H_
#define ABSTRACT_PORT_IMPLEMENTATION_H_

#include <vector>

Expand All @@ -28,4 +28,4 @@ class AbstractPortImplementation {

} // namespace message_infrastructure

#endif // INCLUDE_ABSTRACT_PORT_IMPLEMENTATION_H_
#endif // ABSTRACT_PORT_IMPLEMENTATION_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: BSD-3-Clause
// See: https://spdx.org/licenses/

#ifndef INCLUDE_MULTIPROCESSING_H_
#define INCLUDE_MULTIPROCESSING_H_
#ifndef MULTIPROCESSING_H_
#define MULTIPROCESSING_H_

#include <vector>
#include <functional>
Expand All @@ -26,4 +26,4 @@ class MultiProcessing {

} // namespace message_infrastructure

#endif // INCLUDE_MULTIPROCESSING_H_
#endif // MULTIPROCESSING_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: BSD-3-Clause
// See: https://spdx.org/licenses/

#ifndef INCLUDE_PROCESS_MODEL_H_
#define INCLUDE_PROCESS_MODEL_H_
#ifndef PROCESS_MODEL_H_
#define PROCESS_MODEL_H_

namespace message_infrastructure {

Expand All @@ -12,4 +12,4 @@ class ProcessModel {

} // namespace message_infrastructure

#endif // INCLUDE_PROCESS_MODEL_H_
#endif // PROCESS_MODEL_H_
6 changes: 3 additions & 3 deletions src/lava/magma/runtime/message_infrastructure/csrc/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: BSD-3-Clause
// See: https://spdx.org/licenses/

#ifndef INCLUDE_RUNTIME_H_
#define INCLUDE_RUNTIME_H_
#ifndef RUNTIME_H_
#define RUNTIME_H_

namespace message_infrastructure {

Expand All @@ -12,4 +12,4 @@ class Runtime {

} // namespace message_infrastructure

#endif // INCLUDE_RUNTIME_H_
#endif // RUNTIME_H_
6 changes: 3 additions & 3 deletions src/lava/magma/runtime/message_infrastructure/csrc/shm.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: BSD-3-Clause
// See: https://spdx.org/licenses/

#ifndef INCLUDE_SHM_H_
#define INCLUDE_SHM_H_
#ifndef SHM_H_
#define SHM_H_

#include <sys/mman.h>
#include <sys/stat.h>
Expand All @@ -20,4 +20,4 @@ class SharedMemory {

} // namespace message_infrastructure

#endif // INCLUDE_SHM_H_
#endif // SHM_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: BSD-3-Clause
// See: https://spdx.org/licenses/

#ifndef INCLUDE_SHMEM_CHANNEL_H_
#define INCLUDE_SHMEM_CHANNEL_H_
#ifndef SHMEM_CHANNEL_H_
#define SHMEM_CHANNEL_H_

#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
Expand Down Expand Up @@ -47,5 +47,5 @@ ShmemChannel* GetShmemChannel(SharedMemory *shm,

} // namespace message_infrastructure

#endif // INCLUDE_SHMEM_CHANNEL_H_
#endif // SHMEM_CHANNEL_H_

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: BSD-3-Clause
// See: https://spdx.org/licenses/

#ifndef INCLUDE_SHMEM_PORT_H_
#define INCLUDE_SHMEM_PORT_H_
#ifndef SHMEM_PORT_H_
#define SHMEM_PORT_H_

#include <thread> // NOLINT [build/c++11]
#include <queue>
Expand Down Expand Up @@ -76,4 +76,4 @@ class ShmemRecvPort : public AbstractRecvPort {

} // namespace message_infrastructure

#endif // INCLUDE_SHMEM_PORT_H_
#endif // SHMEM_PORT_H_
6 changes: 3 additions & 3 deletions src/lava/magma/runtime/message_infrastructure/csrc/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: BSD-3-Clause
// See: https://spdx.org/licenses/

#ifndef INCLUDE_UTILS_H_
#define INCLUDE_UTILS_H_
#ifndef UTILS_H_
#define UTILS_H_

#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
Expand All @@ -24,4 +24,4 @@ struct Proto {

} // namespace message_infrastructure

#endif // INCLUDE_UTILS_H_
#endif // UTILS_H_

0 comments on commit 9096bb9

Please sign in to comment.