Skip to content

Commit 6d8b9bb

Browse files
eivindj-nordicanangl
authored andcommitted
treewide: align headers c++ guards fixes
* Make sure all C++ C includes have an end. * Correct order of ifdefs and doxygen so that they are in the correct order. The order is not aligned from file to file, though it is corrected per file. * Added space after license in some headers and source files. Signed-off-by: Eivind Jølsgard <eivind.jolsgard@nordicsemi.no>
1 parent afcffa7 commit 6d8b9bb

File tree

133 files changed

+271
-180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+271
-180
lines changed

applications/asset_tracker_v2/src/cloud/cloud_codec/cloud_codec.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -535,10 +535,10 @@ void cloud_codec_populate_modem_dynamic_buffer(
535535
int *head_modem_buf,
536536
size_t buffer_count);
537537

538-
/**
539-
* @}
540-
*/
541538
#ifdef __cplusplus
542539
}
543540
#endif
541+
/**
542+
* @}
543+
*/
544544
#endif

applications/asset_tracker_v2/src/cloud/cloud_codec/json_common.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
#ifndef JSON_COMMON_H__
1212
#define JSON_COMMON_H__
1313

14-
/**@file
15-
*
14+
/**
1615
* @defgroup JSON common json_common
1716
* @brief Module containing common JSON encoding functions.
1817
* @{

applications/asset_tracker_v2/src/ext_sensors/ext_sensors.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
#ifndef EXT_SENSORS_H__
1212
#define EXT_SENSORS_H__
1313

14-
/**@file
15-
*
14+
/**
1615
* @defgroup External sensors ext_sensors
1716
* @brief Module that manages external sensors.
1817
* @{

applications/asset_tracker_v2/src/modules/modules_common.h

+4
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ int module_start(struct module_data *module);
137137
*/
138138
uint32_t module_active_count_get(void);
139139

140+
#ifdef __cplusplus
141+
}
142+
#endif
143+
140144
/**
141145
*@}
142146
*/

applications/nrf_desktop/configuration/common/motion_sensor.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
#ifndef _MOTION_SENSOR_H_
78
#define _MOTION_SENSOR_H_
89

applications/nrf_desktop/src/util/chmap_filter/include/chmap_filter.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
#ifndef _CHMAP_FILTER_H_
78
#define _CHMAP_FILTER_H_
89

applications/serial_lte_modem/src/ftp_c/slm_at_ftp.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @brief Vendor-specific AT command for FTP and TFTP services.
1313
* @{
1414
*/
15+
1516
/**
1617
* @brief Initialize FTP AT command parser.
1718
*

applications/serial_lte_modem/src/http_c/slm_at_httpc.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @brief Vendor-specific AT command for HTTP service.
1313
* @{
1414
*/
15+
1516
/**
1617
* @brief HTTPC raw data send.
1718
*

applications/serial_lte_modem/src/mqtt_c/slm_at_mqtt.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @brief Vendor-specific AT command for MQTT service.
1313
* @{
1414
*/
15+
1516
/**
1617
* @brief Initialize MQTT AT command parser.
1718
*

applications/serial_lte_modem/src/slm_at_cmng.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @brief Vendor-specific AT command for CMNG service.
1313
* @{
1414
*/
15+
1516
/**
1617
* @brief Initialize CMNG AT command parser.
1718
*

applications/serial_lte_modem/src/slm_at_icmp.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @brief Vendor-specific AT command for ICMP service.
1313
* @{
1414
*/
15+
1516
/**
1617
* @brief Initialize ICMP AT command parser.
1718
*

applications/serial_lte_modem/src/slm_at_sms.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @brief Vendor-specific AT command for SMS service.
1313
* @{
1414
*/
15+
1516
/**
1617
* @brief Initialize SMS AT command parser.
1718
*

applications/serial_lte_modem/src/slm_at_tcp_proxy.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @brief Vendor-specific AT command for TCP proxy service.
1313
* @{
1414
*/
15+
1516
/**
1617
* @brief Initialize TCP proxy AT command parser.
1718
*

applications/serial_lte_modem/src/slm_at_udp_proxy.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @brief Vendor-specific AT command for UDP proxy service.
1313
* @{
1414
*/
15+
1516
/**
1617
* @brief Initialize UDP proxy AT command parser.
1718
*

applications/serial_lte_modem/src/slm_settings.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
#ifndef SLM_SETTINGS_
78
#define SLM_SETTINGS_
89

ext/iperf3/iperf_api.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ enum {
453453
/* Stream errors */
454454
IECREATESTREAM = 200, // Unable to create a new stream (check herror/perror)
455455
IEINITSTREAM = 201, // Unable to initialize stream (check herror/perror)
456-
IESTREAMLISTEN = 202, // Unable to start stream listener (check perror)
456+
IESTREAMLISTEN = 202, // Unable to start stream listener (check perror)
457457
IESTREAMCONNECT = 203, // Unable to connect stream (check herror/perror)
458458
IESTREAMACCEPT = 204, // Unable to accepte stream connection (check perror)
459459
IESTREAMWRITE = 205, // Unable to write to stream socket (check perror)

include/bluetooth/conn_ctx.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#ifndef BT_CONN_CTX_H_
8+
#define BT_CONN_CTX_H_
9+
710
/**
811
* @file
912
* @defgroup bt_conn_ctx Bluetooth connection context library API
1013
* @{
1114
* @brief API for the Bluetooth connection context library.
1215
*/
1316

14-
#ifndef BT_CONN_CTX_H_
15-
#define BT_CONN_CTX_H_
16-
1717
#include <zephyr/kernel.h>
1818
#include <zephyr/sys/__assert.h>
1919
#include <zephyr/bluetooth/conn.h>

include/bluetooth/enocean.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
7+
#ifndef BT_ENOCEAN_H__
8+
#define BT_ENOCEAN_H__
9+
610
/**
711
* @file
812
* @defgroup bt_enocean Bluetooth EnOcean library API
913
* @{
1014
* @brief API for interacting with EnOcean Bluetooth wall switches and sensors
1115
*/
1216

13-
#ifndef BT_ENOCEAN_H__
14-
#define BT_ENOCEAN_H__
15-
1617
#include <zephyr/bluetooth/bluetooth.h>
1718

1819
#ifdef __cplusplus

include/bluetooth/mesh/dk_prov.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @brief Bluetooth mesh provisioning handler for Nordic DKs.

include/bluetooth/mesh/gen_lvl_cli.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @defgroup bt_mesh_lvl_cli Generic Level Client model

include/bluetooth/mesh/gen_plvl.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @defgroup bt_mesh_plvl Generic Power Level Models

include/bluetooth/mesh/gen_ponoff.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @defgroup bt_mesh_ponoff Generic Power OnOff Models

include/bluetooth/mesh/gen_ponoff_srv.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @defgroup bt_mesh_ponoff_srv Generic Power OnOff Server model

include/bluetooth/mesh/gen_prop_cli.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @defgroup bt_mesh_prop_cli Generic Property Client model

include/bluetooth/mesh/light_ctl.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @defgroup bt_mesh_light_ctl Light CTL models

include/bluetooth/mesh/light_hsl.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @defgroup bt_mesh_light_hsl Light HSL models

include/bluetooth/mesh/light_xyl.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @defgroup bt_mesh_light_xyl Light xyL models

include/bluetooth/mesh/model_types.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @defgroup bt_mesh_model_types Common model types

include/bluetooth/mesh/properties.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @defgroup bt_mesh_properties Bluetooth mesh properties

include/bluetooth/mesh/sensor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,6 @@ const char *bt_mesh_sensor_ch_str(const struct sensor_value *ch);
586586
}
587587
#endif
588588

589-
/** @} */
590-
591589
#endif /* BT_MESH_SENSOR_H__ */
590+
591+
/** @} */

include/bluetooth/mesh/sensor_cli.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,6 @@ extern const struct bt_mesh_model_cb _bt_mesh_sensor_cli_cb;
670670
}
671671
#endif
672672

673-
/** @} */
674-
675673
#endif /* BT_MESH_SENSOR_CLI_H__ */
674+
675+
/** @} */

include/bluetooth/mesh/sensor_srv.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,6 @@ extern const struct bt_mesh_model_op _bt_mesh_sensor_setup_srv_op[];
151151
}
152152
#endif
153153

154-
/** @} */
155-
156154
#endif /* BT_MESH_SENSOR_SRV_H__ */
155+
156+
/** @} */

include/bluetooth/mesh/sensor_types.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1340,10 +1340,10 @@ extern const struct bt_mesh_sensor_type
13401340

13411341
/** @} */
13421342

1343-
/** @} */
1344-
13451343
#ifdef __cplusplus
13461344
}
13471345
#endif
13481346

13491347
#endif /* BT_MESH_SENSOR_TYPES_H__ */
1348+
1349+
/** @} */

include/bluetooth/mesh/time.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/**
78
* @file
89
* @defgroup bt_mesh_time Time Models

include/bluetooth/scan.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
/**@file
7+
#ifndef BT_SCAN_H_
8+
#define BT_SCAN_H_
9+
10+
/**
11+
* @file
812
* @defgroup nrf_bt_scan BT Scanning module
913
* @{
1014
* @brief BT Scanning module
@@ -21,10 +25,6 @@
2125
* multicentral link.
2226
*/
2327

24-
25-
#ifndef BT_SCAN_H_
26-
#define BT_SCAN_H_
27-
2828
#include <zephyr/types.h>
2929
#include <zephyr/sys/slist.h>
3030
#include <zephyr/bluetooth/bluetooth.h>
@@ -566,6 +566,6 @@ void bt_scan_blocklist_clear(void);
566566
}
567567
#endif
568568

569-
#endif /* BT_SCAN_H_ */
570-
571569
/** @} */
570+
571+
#endif /* BT_SCAN_H_ */

include/bluetooth/services/bas_client.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
#ifndef __BAS_C_H
78
#define __BAS_C_H
89

include/bluetooth/services/latency.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#ifndef BT_LATENCY_H_
8+
#define BT_LATENCY_H_
9+
710
/**
811
* @file
912
* @defgroup bt_latency Bluetooth LE GATT Latency Service API
1013
* @{
1114
* @brief API for the Bluetooth LE GATT Latency Service.
1215
*/
1316

14-
#ifndef BT_LATENCY_H_
15-
#define BT_LATENCY_H_
16-
1717
#include <zephyr/bluetooth/uuid.h>
1818
#include <zephyr/bluetooth/conn.h>
1919
#include <bluetooth/gatt_dm.h>

include/bluetooth/services/latency_client.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#ifndef BT_LATENCY_CLIENT_H_
8+
#define BT_LATENCY_CLIENT_H_
9+
710
/**
811
* @file
912
* @defgroup bt_latency_c Bluetooth LE GATT Latency Client API
1013
* @{
1114
* @brief API for the Bluetooth LE GATT Latency Client.
1215
*/
1316

14-
#ifndef BT_LATENCY_CLIENT_H_
15-
#define BT_LATENCY_CLIENT_H_
16-
1717
#include <zephyr/bluetooth/uuid.h>
1818
#include <zephyr/bluetooth/conn.h>
1919
#include <bluetooth/gatt_dm.h>

0 commit comments

Comments
 (0)