clang-format the world.

This used to be done by CI but we ripped that out since there wasn't any
good way to ensure that CI and and local workflows were using the same
clang-format. Back when it was in CI, the pointer alignment was
configured incorrectly (we used the Google style presets, but those are
alignment preserving rather than actually style enforcing). Reformat
everything since the .clang-format file has changed since then so I stop
including so many unrelated edits in my commits.
This commit is contained in:
Dan Albert
2025-08-26 15:47:21 -07:00
committed by Dan Albert
parent 25757933bb
commit 5c283e26bc
63 changed files with 564 additions and 563 deletions

View File

@@ -8,12 +8,12 @@
const char kLogTag[] = "orderfiledemo";
#ifdef GENERATE_PROFILES
extern "C" int __llvm_profile_set_filename(const char *);
extern "C" int __llvm_profile_set_filename(const char*);
extern "C" int __llvm_profile_initialize_file(void);
extern "C" int __llvm_orderfile_dump(void);
#endif
void DumpProfileDataIfNeeded(const char *temp_dir) {
void DumpProfileDataIfNeeded(const char* temp_dir) {
#ifdef GENERATE_PROFILES
char profile_location[PATH_MAX] = {};
snprintf(profile_location, sizeof(profile_location), "%s/demo.output",
@@ -47,7 +47,7 @@ void DumpProfileDataIfNeeded(const char *temp_dir) {
}
extern "C" JNIEXPORT void JNICALL
Java_com_example_orderfiledemo_MainActivity_runWorkload(JNIEnv *env,
Java_com_example_orderfiledemo_MainActivity_runWorkload(JNIEnv* env,
jobject /* this */,
jstring temp_dir) {
DumpProfileDataIfNeeded(env->GetStringUTFChars(temp_dir, 0));