Style: adds Cpp11BracedListStyle: Block

This commit is contained in:
李通洲
2026-03-30 10:27:23 +08:00
committed by Carter Li
parent 5f261702a9
commit 831659966f
189 changed files with 1724 additions and 1733 deletions
+2 -2
View File
@@ -413,8 +413,8 @@ static uint32_t getPacmanPackages(FFstrbuf* baseDir) {
ffStrbufAppendS(baseDir, "/etc/pacman.conf");
bool confFound = ffParsePropFileValues(baseDir->chars, 2, (FFpropquery[]) {
{"DBPath =", &dbPath},
{"RootDir =", &rootDir},
{ "DBPath =", &dbPath },
{ "RootDir =", &rootDir },
});
ffStrbufSubstrBefore(baseDir, baseDirLen);
+2 -2
View File
@@ -101,7 +101,7 @@ static uint32_t getNixPackagesImpl(char* path) {
FF_STRBUF_AUTO_DESTROY cacheHash = ffStrbufCreateA(64);
uint32_t count = 0;
ffProcessAppendStdOut(&hash, (char* const[]) {"nix-store", "--query", "--hash", path, NULL});
ffProcessAppendStdOut(&hash, (char* const[]) { "nix-store", "--query", "--hash", path, NULL });
if (checkNixCache(&cacheDir, &cacheHash, &count) && ffStrbufEqual(&hash, &cacheHash)) {
return count;
@@ -115,7 +115,7 @@ static uint32_t getNixPackagesImpl(char* path) {
FF_STRBUF_AUTO_DESTROY output = ffStrbufCreateA(1024);
ffProcessAppendStdOut(&output, (char* const[]) {"nix-store", "--query", "--requisites", path, NULL});
ffProcessAppendStdOut(&output, (char* const[]) { "nix-store", "--query", "--requisites", path, NULL });
uint32_t lineLength = 0;
for (uint32_t i = 0; i < output.length; i++) {