Merge topic 'Wcomma'
5ff7fb592e
Fixed all but one clang -Wcomma warning
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2828
This commit is contained in:
commit
4b017d579d
@ -111,8 +111,8 @@ public:
|
||||
, Revisions(revs)
|
||||
, Section(SectionHeader)
|
||||
{
|
||||
this->SetLog(&cvs->Log, prefix),
|
||||
this->RegexRevision.compile("^revision +([^ ]*) *$");
|
||||
this->SetLog(&cvs->Log, prefix);
|
||||
this->RegexRevision.compile("^revision +([^ ]*) *$");
|
||||
this->RegexBranches.compile("^branches: .*$");
|
||||
this->RegexPerson.compile("^date: +([^;]+); +author: +([^;]+);");
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ bool cmExecProgramCommand::RunCommand(const char* command, std::string& output,
|
||||
int p;
|
||||
cmProcessOutput processOutput(encoding);
|
||||
std::string strdata;
|
||||
while ((p = cmsysProcess_WaitForData(cp, &data, &length, nullptr), p)) {
|
||||
while ((p = cmsysProcess_WaitForData(cp, &data, &length, nullptr))) {
|
||||
if (p == cmsysProcess_Pipe_STDOUT || p == cmsysProcess_Pipe_STDERR) {
|
||||
if (verbose) {
|
||||
processOutput.DecodeText(data, length, strdata);
|
||||
|
@ -244,7 +244,7 @@ bool cmExecuteProcessCommand::InitialPass(std::vector<std::string> const& args,
|
||||
int p;
|
||||
cmProcessOutput processOutput(encoding);
|
||||
std::string strdata;
|
||||
while ((p = cmsysProcess_WaitForData(cp, &data, &length, nullptr), p)) {
|
||||
while ((p = cmsysProcess_WaitForData(cp, &data, &length, nullptr))) {
|
||||
// Put the output in the right place.
|
||||
if (p == cmsysProcess_Pipe_STDOUT && !output_quiet) {
|
||||
if (output_variable.empty()) {
|
||||
|
@ -191,12 +191,14 @@ cmGlobalGenerator* cmGlobalXCodeGenerator::Factory::CreateGlobalGenerator(
|
||||
std::string versionFile;
|
||||
{
|
||||
std::string out;
|
||||
std::string::size_type pos = 0;
|
||||
if (cmSystemTools::RunSingleCommand("xcode-select --print-path", &out,
|
||||
nullptr, nullptr, nullptr,
|
||||
cmSystemTools::OUTPUT_NONE) &&
|
||||
(pos = out.find(".app/"), pos != std::string::npos)) {
|
||||
versionFile = out.substr(0, pos + 5) + "Contents/version.plist";
|
||||
bool commandResult = cmSystemTools::RunSingleCommand(
|
||||
"xcode-select --print-path", &out, nullptr, nullptr, nullptr,
|
||||
cmSystemTools::OUTPUT_NONE);
|
||||
if (commandResult) {
|
||||
std::string::size_type pos = out.find(".app/");
|
||||
if (pos != std::string::npos) {
|
||||
versionFile = out.substr(0, pos + 5) + "Contents/version.plist";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!versionFile.empty() && cmSystemTools::FileExists(versionFile.c_str())) {
|
||||
|
@ -16,7 +16,7 @@ void cmProcessTools::RunProcess(struct cmsysProcess_s* cp, OutputParser* out,
|
||||
cmProcessOutput processOutput(encoding);
|
||||
std::string strdata;
|
||||
while ((out || err) &&
|
||||
(p = cmsysProcess_WaitForData(cp, &data, &length, nullptr), p)) {
|
||||
(p = cmsysProcess_WaitForData(cp, &data, &length, nullptr))) {
|
||||
if (out && p == cmsysProcess_Pipe_STDOUT) {
|
||||
processOutput.DecodeText(data, length, strdata, 1);
|
||||
if (!out->Process(strdata.c_str(), int(strdata.size()))) {
|
||||
|
Loading…
Reference in New Issue
Block a user