mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -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;
|
return p;
|
||||||
|
|
||||||
for(String dir : GetUppDirs())
|
for(String dir : GetUppDirs())
|
||||||
if(Check(dir))
|
for(; dir.GetCount() > 3; dir = GetFileFolder(dir))
|
||||||
return p;
|
if(Check(dir))
|
||||||
|
return p;
|
||||||
|
|
||||||
return Null;
|
return Null;
|
||||||
}
|
}
|
||||||
|
|
@ -385,6 +386,7 @@ ReformatDlg::ReformatDlg()
|
||||||
view.SetReadOnly();
|
view.SetReadOnly();
|
||||||
|
|
||||||
String p = TheIde()->FindClangFormatPath();
|
String p = TheIde()->FindClangFormatPath();
|
||||||
|
DDUMP(p);
|
||||||
if(p.GetCount())
|
if(p.GetCount())
|
||||||
base.Add(Null, ".clang-format file " + p);
|
base.Add(Null, ".clang-format file " + p);
|
||||||
for(String id : { "LLVM", "Google", "Chromium", "Mozilla", "WebKit", "Microsoft", "GNU" })
|
for(String id : { "LLVM", "Google", "Chromium", "Mozilla", "WebKit", "Microsoft", "GNU" })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue