Odd semicolon ';' after 'while' operator.

Dec 29, 2010 at 11:27 AM

I've tested the PVS-Studio 4.0 analyzer with some of the projects from Codeplex.

While analyzing this project I've found some mistake:

V529 Odd semicolon ';' after 'while' operator. CputAddin9 testgrouphandler.cpp 25

while ((FALSE == IsNameUsedInProject(
  m_bstrGroupName, m_spTestProject, m_spTestGroupElement))
  && (nAttempt < 100));  // <<-- here
{
 //after creation it seems there is a need in pause to allow DTE parse new item in code model
 //it would be wonderful to know event or statuc property that could be used as a signal
 Sleep(100);
 ++nAttempt;
}

Coordinator
Jan 5, 2011 at 8:30 PM

Спасибо, действительно пропустил

From: AndreyKarpov [email removed]
Sent: Wednesday, December 29, 2010 2:28 PM
To: generalov.sergey@gmail.com
Subject: Odd semicolon ';' after 'while' operator. [cput:239878]

From: AndreyKarpov

I've tested the PVS-Studio 4.0 analyzer with some of the projects from Codeplex.

While analyzing this project I've found some mistake:

V529 Odd semicolon ';' after 'while' operator. CputAddin9 testgrouphandler.cpp 25

while ((FALSE == IsNameUsedInProject(
  m_bstrGroupName, m_spTestProject, m_spTestGroupElement))
  && (nAttempt < 100));  // <<-- here
{
 //after creation it seems there is a need in pause to allow DTE parse new item in code model
 //it would be wonderful to know event or statuc property that could be used as a signal
 Sleep(100);
 ++nAttempt;
}