mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
ide: clang-format fix
This commit is contained in:
parent
2e77d71f12
commit
e3ca03b4b3
1 changed files with 4 additions and 2 deletions
|
|
@ -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" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue