mirror of
				https://github.com/android/ndk-samples
				synced 2025-11-04 14:27:06 +08:00 
			
		
		
		
	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:
		@@ -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));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user