ide: clang-format fix

This commit is contained in:
Mirek Fidler 2023-02-01 23:48:35 +01:00
parent 2e77d71f12
commit e3ca03b4b3

View file

@ -71,8 +71,9 @@ String Ide::FindClangFormatPath()
return p;
for(String dir : GetUppDirs())
if(Check(dir))
return p;
for(; dir.GetCount() > 3; dir = GetFileFolder(dir))
if(Check(dir))
return p;
return Null;
}
@ -385,6 +386,7 @@ ReformatDlg::ReformatDlg()
view.SetReadOnly();
String p = TheIde()->FindClangFormatPath();
DDUMP(p);
if(p.GetCount())
base.Add(Null, ".clang-format file " + p);
for(String id : { "LLVM", "Google", "Chromium", "Mozilla", "WebKit", "Microsoft", "GNU" })