[cmake-commits] martink committed cmPolicies.cxx 1.1 1.2 cmPolicies.h
1.1 1.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Sat Mar 1 15:26:17 EST 2008
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv31530
Modified Files:
cmPolicies.cxx cmPolicies.h
Log Message:
STYLE: fix some line lengths
Index: cmPolicies.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmPolicies.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cmPolicies.h 29 Feb 2008 20:28:46 -0000 1.1
+++ cmPolicies.h 1 Mar 2008 20:26:15 -0000 1.2
@@ -26,7 +26,8 @@
/** \class cmPolicies
* \brief Handles changes in CMake behavior and policies
*
- * See the cmake wiki section on policies for an overview of this class's purpose
+ * See the cmake wiki section on policies for an overview of this class's
+ * purpose
*/
class cmPolicies
{
Index: cmPolicies.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmPolicies.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cmPolicies.cxx 29 Feb 2008 20:28:46 -0000 1.1
+++ cmPolicies.cxx 1 Mar 2008 20:26:15 -0000 1.2
@@ -186,7 +186,8 @@
}
// now loop over all the policies and set them as appropriate
- std::map<cmPolicies::PolicyID,cmPolicy *>::iterator i = this->Policies.begin();
+ std::map<cmPolicies::PolicyID,cmPolicy *>::iterator i
+ = this->Policies.begin();
for (;i != this->Policies.end(); ++i)
{
if (i->second->IsPolicyNewerThan(majorVer,minorVer,patchVer))
@@ -211,8 +212,8 @@
bool cmPolicies::IsValidPolicyStatus(cmPolicies::PolicyID id,
cmPolicies::PolicyStatus status)
{
- // if they are setting a feature to anything other than OLD or WARN and the feature is not known about
- // then that is an error
+ // if they are setting a feature to anything other than OLD or WARN and the
+ // feature is not known about then that is an error
if (this->Policies.find(id) == this->Policies.end())
{
if (status == cmPolicies::WARN ||
@@ -230,8 +231,8 @@
return false;
}
- // now we know the feature is defined, so the only issue is if someone is setting it to
- // WARN or OLD when the feature is REQUIRED_ALWAYS
+ // now we know the feature is defined, so the only issue is if someone is
+ // setting it to WARN or OLD when the feature is REQUIRED_ALWAYS
if ((status == cmPolicies::WARN ||
status == cmPolicies::OLD) &&
this->Policies[id]->Status == cmPolicies::REQUIRED_ALWAYS)
@@ -260,8 +261,8 @@
bool cmPolicies::IsValidUsedPolicyStatus(cmPolicies::PolicyID id,
cmPolicies::PolicyStatus status)
{
- // if they are setting a feature to anything other than OLD or WARN and the feature is not known about
- // then that is an error
+ // if they are setting a feature to anything other than OLD or WARN and the
+ // feature is not known about then that is an error
if (this->Policies.find(id) == this->Policies.end())
{
if (status == cmPolicies::WARN ||
@@ -279,8 +280,8 @@
return false;
}
- // now we know the feature is defined, so the only issue is if someone is setting it to
- // WARN or OLD when the feature is REQUIRED_ALWAYS
+ // now we know the feature is defined, so the only issue is if someone is
+ // setting it to WARN or OLD when the feature is REQUIRED_ALWAYS
if ((status == cmPolicies::WARN ||
status == cmPolicies::OLD) &&
(this->Policies[id]->Status == cmPolicies::REQUIRED_ALWAYS ||
More information about the Cmake-commits
mailing list