Merge branch 'clang_tidy' of https://github.com/ultimatepp/ultimatepp into clang_tidy

This commit is contained in:
Mirek Fidler 2026-07-19 11:31:36 +02:00
commit 9099ac2d0b
2 changed files with 5 additions and 1 deletions

View file

@ -89,6 +89,7 @@ bool ClangTidyDlg::HasClangTidy()
String p = "clang-tidy";
#endif
String s = Sys(p + " -checks=* --list-checks");
DDUMP(s);
if(s.GetCount()) {
path = p;
for(String l : Split(s, '\n')) {
@ -106,13 +107,14 @@ bool ClangTidyDlg::HasClangTidy()
groups.FindAdd(s);
}
Load(ClangTidyConfigPath());
break;
goto exit; // break not compatible with POSIX
}
#ifdef PLATFORM_WIN32
}
#endif
}
exit:
return path.GetCount() && options.GetCount();
}

View file

@ -435,6 +435,8 @@ void AppMain___()
clset=true;
}
ide.HasClangTidy(); _DBG_
ide.LoadAbbr();
DelTemps();