Skip to content

Commit a98f5d7

Browse files
yperessMaureenHelm
authored andcommitted
samples: Normalize .cc extensions to .cpp
Rename all .cc files to .cpp (note that no .hh files were found). Addresses #44196 Signed-off-by: Yuval Peress <[email protected]>
1 parent 215efc0 commit a98f5d7

19 files changed

+16
-16
lines changed

samples/modules/tflite-micro/hello_world/src/main_functions.cc renamed to samples/modules/tflite-micro/hello_world/src/main_functions.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
#include <tensorflow/lite/micro/all_ops_resolver.h>
2020
#include "constants.h"
21-
#include "model.h"
22-
#include "output_handler.h"
21+
#include "model.hpp"
22+
#include "output_handler.hpp"
2323
#include <tensorflow/lite/micro/micro_error_reporter.h>
2424
#include <tensorflow/lite/micro/micro_interpreter.h>
2525
#include <tensorflow/lite/micro/system_setup.h>

samples/modules/tflite-micro/hello_world/src/model.cc renamed to samples/modules/tflite-micro/hello_world/src/model.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* See train/README.md for a full description of the creation process.
2525
*/
2626

27-
#include "model.h"
27+
#include "model.hpp"
2828

2929
/* Keep model aligned to 8 bytes to guarantee aligned 64-bit accesses. */
3030
alignas(8) const unsigned char g_model[] = {

samples/modules/tflite-micro/hello_world/src/output_handler.cc renamed to samples/modules/tflite-micro/hello_world/src/output_handler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "output_handler.h"
17+
#include "output_handler.hpp"
1818

1919
void HandleOutput(tflite::ErrorReporter *error_reporter, float x_value,
2020
float y_value)

samples/modules/tflite-micro/magic_wand/src/accelerometer_handler.cc renamed to samples/modules/tflite-micro/magic_wand/src/accelerometer_handler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "accelerometer_handler.h"
17+
#include "accelerometer_handler.hpp"
1818

1919
#include <device.h>
2020
#include <drivers/sensor.h>

samples/modules/tflite-micro/magic_wand/src/gesture_predictor.cc renamed to samples/modules/tflite-micro/magic_wand/src/gesture_predictor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "gesture_predictor.h"
17+
#include "gesture_predictor.hpp"
1818

19-
#include "constants.h"
19+
#include "constants.hpp"
2020

2121
namespace {
2222
/* State for the averaging algorithm we're using. */

samples/modules/tflite-micro/magic_wand/src/magic_wand_model_data.cc renamed to samples/modules/tflite-micro/magic_wand/src/magic_wand_model_data.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* See the README for a full description of the creation process.
2020
*/
2121

22-
#include "magic_wand_model_data.h"
22+
#include "magic_wand_model_data.hpp"
2323

2424
/* Keep model aligned to 8 bytes to guarantee aligned 64-bit accesses. */
2525
alignas(8) const unsigned char g_magic_wand_model_data[] = {

samples/modules/tflite-micro/magic_wand/src/main.cc renamed to samples/modules/tflite-micro/magic_wand/src/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "main_functions.h"
17+
#include "main_functions.hpp"
1818

1919
/* This is the default main used on systems that have the standard C entry
2020
* point. Other devices (for example FreeRTOS or ESP32) that have different

samples/modules/tflite-micro/magic_wand/src/main_functions.cc renamed to samples/modules/tflite-micro/magic_wand/src/main_functions.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "main_functions.h"
17+
#include "main_functions.hpp"
1818

19-
#include "accelerometer_handler.h"
20-
#include "constants.h"
21-
#include "gesture_predictor.h"
22-
#include "magic_wand_model_data.h"
23-
#include "output_handler.h"
19+
#include "accelerometer_handler.hpp"
20+
#include "constants.hpp"
21+
#include "gesture_predictor.hpp"
22+
#include "magic_wand_model_data.hpp"
23+
#include "output_handler.hpp"
2424
#include <tensorflow/lite/micro/micro_error_reporter.h>
2525
#include <tensorflow/lite/micro/micro_interpreter.h>
2626
#include <tensorflow/lite/micro/micro_mutable_op_resolver.h>

samples/modules/tflite-micro/magic_wand/src/output_handler.cc renamed to samples/modules/tflite-micro/magic_wand/src/output_handler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "output_handler.h"
17+
#include "output_handler.hpp"
1818

1919
void HandleOutput(tflite::ErrorReporter *error_reporter, int kind)
2020
{

0 commit comments

Comments
 (0)