Skip to content

Commit

Permalink
[quality] fix C/C++ header file include guards
Browse files Browse the repository at this point in the history
This fixes the C/C++ header file include guards to pass the lint check.

Signed-off-by: Tim Trippel <[email protected]>
  • Loading branch information
timothytrippel committed Oct 16, 2024
1 parent 34f919b commit d280989
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/ate/ate_api.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OT_PROVISIONING_SRC_ATE_ATE_API_H
#define OT_PROVISIONING_SRC_ATE_ATE_API_H
#ifndef OPENTITAN_PROVISIONING_SRC_ATE_ATE_API_H_
#define OPENTITAN_PROVISIONING_SRC_ATE_ATE_API_H_
#include <stddef.h>
#include <stdint.h>

Expand Down Expand Up @@ -192,4 +192,4 @@ DLLEXPORT int CreateKeyAndCertificate(ate_client_ptr client, const char* sku,
#ifdef __cplusplus
}
#endif
#endif // OT_PROVISIONING_SRC_ATE_ATE_API_H
#endif // OPENTITAN_PROVISIONING_SRC_ATE_ATE_API_H_
6 changes: 3 additions & 3 deletions src/ate/ate_client.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OT_PROVISIONING_SRC_ATE_ATE_CLIENT_H
#define OT_PROVISIONING_SRC_ATE_ATE_CLIENT_H
#ifndef OPENTITAN_PROVISIONING_SRC_ATE_ATE_CLIENT_H_
#define OPENTITAN_PROVISIONING_SRC_ATE_ATE_CLIENT_H_

#include <grpcpp/grpcpp.h>

Expand Down Expand Up @@ -88,4 +88,4 @@ std::ostream& operator<<(std::ostream& os, const AteClient::Options& options);

} // namespace ate
} // namespace provisioning
#endif // OT_PROVISIONING_SRC_ATE_ATE_CLIENT_H
#endif // OPENTITAN_PROVISIONING_SRC_ATE_ATE_CLIENT_H_
6 changes: 3 additions & 3 deletions src/testing/test_helpers.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OT_PROVISIONING_SRC_TESTING_TEST_HELPERS_H
#define OT_PROVISIONING_SRC_TESTING_TEST_HELPERS_H
#ifndef OPENTITAN_PROVISIONING_SRC_TESTING_TEST_HELPERS_H_
#define OPENTITAN_PROVISIONING_SRC_TESTING_TEST_HELPERS_H_

#include <cstdlib>

Expand Down Expand Up @@ -31,4 +31,4 @@ using ::protobuf_matchers::proto::Partially;
using ::protobuf_matchers::proto::WhenDeserialized;

} // namespace testing
#endif // OT_PROVISIONING_SRC_TESTING_TEST_HELPERS_H
#endif // OPENTITAN_PROVISIONING_SRC_TESTING_TEST_HELPERS_H_
6 changes: 3 additions & 3 deletions src/transport/service_credentials.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OT_PROVISIONING_SRC_UTILS_SERVICE_CREDENTIALS_H
#define OT_PROVISIONING_SRC_UTILS_SERVICE_CREDENTIALS_H
#ifndef OPENTITAN_PROVISIONING_SRC_TRANSPORT_SERVICE_CREDENTIALS_H_
#define OPENTITAN_PROVISIONING_SRC_TRANSPORT_SERVICE_CREDENTIALS_H_

#include <grpcpp/grpcpp.h>
#include <grpcpp/security/credentials.h>
Expand Down Expand Up @@ -42,4 +42,4 @@ class ServiceCredentials : public grpc::MetadataCredentialsPlugin {
} // namespace transport
} // namespace provisioning

#endif // OT_PROVISIONING_SRC_UTILS_SERVICE_CREDENTIALS_H
#endif // OPENTITAN_PROVISIONING_SRC_TRANSPORT_SERVICE_CREDENTIALS_H_
6 changes: 3 additions & 3 deletions src/version/version.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OT_PROVISIONING_SRC_VERSION_VERSION_H
#define OT_PROVISIONING_SRC_VERSION_VERSION_H
#ifndef OPENTITAN_PROVISIONING_SRC_VERSION_VERSION_H_
#define OPENTITAN_PROVISIONING_SRC_VERSION_VERSION_H_

#include <string>

Expand Down Expand Up @@ -41,4 +41,4 @@ std::string VersionFormatted();

} // namespace provisioning

#endif // OT_PROVISIONING_SRC_VERSION_VERSION_H
#endif // OPENTITAN_PROVISIONING_SRC_VERSION_VERSION_H_

0 comments on commit d280989

Please sign in to comment.