summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-09-16 15:49:58 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-16 15:49:58 (GMT)
commitf117423336a91f4f50f031d0acc892d4c10316c3 (patch)
treec9a9c684da2b79afc7667ffe9922f44db09551bf /Source/cmMakefile.cxx
parente49a935c20550482e9f92ceb05d1f2a0bc519c91 (diff)
downloadCMake-f117423336a91f4f50f031d0acc892d4c10316c3.zip
CMake-f117423336a91f4f50f031d0acc892d4c10316c3.tar.gz
CMake-f117423336a91f4f50f031d0acc892d4c10316c3.tar.bz2
Fix line lengths to be no more than 78
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 9d5c59e..592e05e 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1649,7 +1649,8 @@ void cmMakefile::AddDefinition(const char* name, const char* value)
#endif
this->Internal->VarStack.top().Set(name, value);
- if ((this->Internal->VarUsageStack.size() > 1) && this->VariableInitialized(name))
+ if ((this->Internal->VarUsageStack.size() > 1) &&
+ this->VariableInitialized(name))
{
this->CheckForUnused("changing definition", name);
this->Internal->VarUsageStack.top().erase(name);
@@ -1719,7 +1720,8 @@ void cmMakefile::AddCacheDefinition(const char* name, const char* value,
void cmMakefile::AddDefinition(const char* name, bool value)
{
this->Internal->VarStack.top().Set(name, value? "ON" : "OFF");
- if ((this->Internal->VarUsageStack.size() > 1) && this->VariableInitialized(name))
+ if ((this->Internal->VarUsageStack.size() > 1) &&
+ this->VariableInitialized(name))
{
this->CheckForUnused("changing definition", name);
this->Internal->VarUsageStack.top().erase(name);
@@ -1742,7 +1744,8 @@ void cmMakefile::MarkVariableAsUsed(const char* var)
bool cmMakefile::VariableInitialized(const char* var) const
{
- if(this->Internal->VarInitStack.top().find(var) != this->Internal->VarInitStack.top().end())
+ if(this->Internal->VarInitStack.top().find(var) !=
+ this->Internal->VarInitStack.top().end())
{
return true;
}
@@ -1751,7 +1754,8 @@ bool cmMakefile::VariableInitialized(const char* var) const
bool cmMakefile::VariableUsed(const char* var) const
{
- if(this->Internal->VarUsageStack.top().find(var) != this->Internal->VarUsageStack.top().end())
+ if(this->Internal->VarUsageStack.top().find(var) !=
+ this->Internal->VarUsageStack.top().end())
{
return true;
}
@@ -1773,8 +1777,10 @@ bool cmMakefile::CheckForUnused(const char* reason, const char* name)
{
const cmListFileContext* file = this->CallStack.back().Context;
if (this->CheckSystemVars ||
- cmSystemTools::IsSubDirectory(file->FilePath.c_str(), this->GetHomeDirectory()) ||
- cmSystemTools::IsSubDirectory(file->FilePath.c_str(), this->GetHomeOutputDirectory()))
+ cmSystemTools::IsSubDirectory(file->FilePath.c_str(),
+ this->GetHomeDirectory()) ||
+ cmSystemTools::IsSubDirectory(file->FilePath.c_str(),
+ this->GetHomeOutputDirectory()))
{
cmOStringStream msg;
msg << file->FilePath << ":" << file->Line << ":" <<