mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 12:19:54 -05:00
Revise C++ coding style using clang-format-6.0
Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
This commit is contained in:
@@ -371,8 +371,9 @@ void cmCursesMainForm::PrintKeys(int process /* = 0 */)
|
||||
sprintf(thirdLine, toggleKeyInstruction,
|
||||
this->AdvancedMode ? "On" : "Off");
|
||||
}
|
||||
sprintf(secondLine, "Press [h] for help "
|
||||
"Press [q] to quit without generating");
|
||||
sprintf(secondLine,
|
||||
"Press [h] for help "
|
||||
"Press [q] to quit without generating");
|
||||
}
|
||||
|
||||
curses_move(y - 4, 0);
|
||||
@@ -412,9 +413,10 @@ void cmCursesMainForm::UpdateStatusBar(const char* message)
|
||||
curses_clear();
|
||||
curses_move(0, 0);
|
||||
char fmt[] = "Window is too small. A size of at least %dx%d is required.";
|
||||
printw(fmt, (cmCursesMainForm::MIN_WIDTH < this->InitialWidth
|
||||
? this->InitialWidth
|
||||
: cmCursesMainForm::MIN_WIDTH),
|
||||
printw(fmt,
|
||||
(cmCursesMainForm::MIN_WIDTH < this->InitialWidth
|
||||
? this->InitialWidth
|
||||
: cmCursesMainForm::MIN_WIDTH),
|
||||
cmCursesMainForm::MIN_HEIGHT);
|
||||
touchwin(stdscr);
|
||||
wrefresh(stdscr);
|
||||
@@ -568,10 +570,11 @@ int cmCursesMainForm::Configure(int noconfigure)
|
||||
}
|
||||
int xx, yy;
|
||||
getmaxyx(stdscr, yy, xx);
|
||||
cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(
|
||||
this->Errors, cmSystemTools::GetErrorOccuredFlag()
|
||||
? "Errors occurred during the last pass."
|
||||
: "CMake produced the following output.");
|
||||
cmCursesLongMessageForm* msgs =
|
||||
new cmCursesLongMessageForm(this->Errors,
|
||||
cmSystemTools::GetErrorOccuredFlag()
|
||||
? "Errors occurred during the last pass."
|
||||
: "CMake produced the following output.");
|
||||
// reset error condition
|
||||
cmSystemTools::ResetErrorOccuredFlag();
|
||||
CurrentForm = msgs;
|
||||
|
||||
Reference in New Issue
Block a user