Skip to content

Commit

Permalink
fuchsia: Add missing EOF newlines
Browse files Browse the repository at this point in the history
The Fuchsia build errors processing files that don't end with a newline.
This adds missing newlines. In the future this check and process can be
automated.

Bug: b/282227316
Change-Id: I969f605b955d320ab6064463387a2ebe91511940
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/146970
Pigweed-Auto-Submit: Ian McKellar <[email protected]>
Commit-Queue: Rob Mohr <[email protected]>
Reviewed-by: Rob Mohr <[email protected]>
Commit-Queue: Ian McKellar <[email protected]>
  • Loading branch information
ianloic authored and CQ Bot Account committed May 12, 2023
1 parent 43b1a1e commit cd5038d
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pw_bluetooth/api_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ namespace {
TEST(ApiTest, ApiCompiles) {}

} // namespace
} // namespace pw::bluetooth
} // namespace pw::bluetooth
2 changes: 1 addition & 1 deletion pw_bluetooth/public/pw_bluetooth/gatt/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ struct Characteristic {
span<const Descriptor> descriptors;
};

} // namespace pw::bluetooth::gatt
} // namespace pw::bluetooth::gatt
2 changes: 1 addition & 1 deletion pw_build/bazel_internal/test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

// This file is intentionally very simple and is used only to test that the
// linker script generator works as expected.
int main() { return 0; }
int main() { return 0; }
2 changes: 1 addition & 1 deletion pw_cpu_exception/start_exception_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ extern "C" void pw_cpu_exception_HandleException(void* cpu_state) {
exception_handler(reinterpret_cast<pw_cpu_exception_State*>(cpu_state));
}

} // namespace pw::cpu_exception
} // namespace pw::cpu_exception
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

#pragma once

#include "pw_crypto/sha256_mbedtls.h"
#include "pw_crypto/sha256_mbedtls.h"
2 changes: 1 addition & 1 deletion pw_i2c_mcuxpresso/public/pw_i2c_mcuxpresso/initiator.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ class McuxpressoInitiator final : public Initiator {
// inclusive-language: enable
};

} // namespace pw::i2c
} // namespace pw::i2c
2 changes: 1 addition & 1 deletion pw_rpc/packet_meta.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ Result<PacketMeta> PacketMeta::FromBuffer(ConstByteSpan data) {
return PacketMeta(packet);
}

} // namespace pw::rpc
} // namespace pw::rpc
2 changes: 1 addition & 1 deletion pw_thread/public/pw_thread/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
// The max number of threads to bundle by default for thread snapshot service.
#ifndef PW_THREAD_NUM_BUNDLED_THREADS
#define PW_THREAD_NUM_BUNDLED_THREADS 3
#endif // PW_THREAD_MAXIMUM_THREADS
#endif // PW_THREAD_MAXIMUM_THREADS
2 changes: 1 addition & 1 deletion pw_thread/test_thread_context_facade_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ TEST(Thread, TestThreadContext) {
}

} // namespace
} // namespace pw::thread
} // namespace pw::thread
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ class TestThreadContextNative {
stl::Options options_;
};

} // namespace pw::thread::test::backend
} // namespace pw::thread::test::backend
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
// the License.
#pragma once

#include "pw_thread_stl/test_thread_context_native.h"
#include "pw_thread_stl/test_thread_context_native.h"
2 changes: 1 addition & 1 deletion pw_tls_client_boringssl/tls_client_boringssl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ TEST(TLSClientBoringSSL, SessionCreationSucceeds) {
ASSERT_EQ(res.status(), PW_STATUS_UNIMPLEMENTED);
}

} // namespace pw::tls_client
} // namespace pw::tls_client
2 changes: 1 addition & 1 deletion pw_tls_client_mbedtls/tls_client_mbedtls_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ TEST(TLSClientMbedTLS, EntropySourceFail) {
ASSERT_NE(res.status(), OkStatus());
}

} // namespace pw::tls_client
} // namespace pw::tls_client
2 changes: 1 addition & 1 deletion pw_trace/example/basic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ int main() {
PW_LOG_ERROR("Running basic trace example...\n");
RunTraceSampleApp();
return 0;
}
}
2 changes: 1 addition & 1 deletion pw_trace/example/public/pw_trace/example/sample_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
#pragma once

// Run the trace sample app code, this will not return.
void RunTraceSampleApp();
void RunTraceSampleApp();
2 changes: 1 addition & 1 deletion third_party/stm32cube/public/stm32cube/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ PW_EXTERN_C_START

void pw_stm32cube_Init(void);

PW_EXTERN_C_END
PW_EXTERN_C_END

0 comments on commit cd5038d

Please sign in to comment.