[cmake-commits] alex committed cmExtraEclipseCDT4Generator.cxx 1.12 1.13

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Feb 19 16:34:52 EST 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv27344

Modified Files:
	cmExtraEclipseCDT4Generator.cxx 
Log Message:
STYLE: patch part 3 from Miguel: follow naming style for variables

Alex


Index: cmExtraEclipseCDT4Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmExtraEclipseCDT4Generator.cxx,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- cmExtraEclipseCDT4Generator.cxx	19 Feb 2008 21:27:03 -0000	1.12
+++ cmExtraEclipseCDT4Generator.cxx	19 Feb 2008 21:34:49 -0000	1.13
@@ -339,7 +339,7 @@
          it != this->GlobalGenerator->GetProjectMap().end();
          ++it)
       {
-      std::string linkSourceDirectory =this->GetEclipsePath(
+      std::string linkSourceDirectory = this->GetEclipsePath(
                             it->second[0]->GetMakefile()->GetStartDirectory());
       // .project dir can't be subdir of a linked resource dir
       if (!cmSystemTools::IsSubDirectory(this->HomeOutputDirectory.c_str(),
@@ -351,11 +351,11 @@
         }
       }
     // for EXECUTABLE_OUTPUT_PATH when not in binary dir
-    std::string output_path = mf->GetDefinition("EXECUTABLE_OUTPUT_PATH");
-    if (!cmSystemTools::IsSubDirectory(output_path.c_str(),
-                                       this->HomeOutputDirectory.c_str()))
+    std::string outputPath = mf->GetDefinition("EXECUTABLE_OUTPUT_PATH");
+    if (!outputPath.empty() && !cmSystemTools::IsSubDirectory(
+                        outputPath.c_str(), this->HomeOutputDirectory.c_str()))
       {
-      std::string name = this->GetPathBasename(output_path);
+      std::string name = this->GetPathBasename(outputPath);
 
       // make sure linked resource name is unique
       while (this->GlobalGenerator->GetProjectMap().find(name)
@@ -364,17 +364,17 @@
         name += "_";
         }
         this->AppendLinkedResource(fout, name,
-                                   this->GetEclipsePath(output_path));
+                                   this->GetEclipsePath(outputPath));
         this->OutLinkedResources.push_back(name);
       }
     // for LIBRARY_OUTPUT_PATH when not in binary dir
-    if (output_path != mf->GetDefinition("LIBRARY_OUTPUT_PATH"))
+    if (outputPath != mf->GetDefinition("LIBRARY_OUTPUT_PATH"))
       {
-      output_path = mf->GetDefinition("LIBRARY_OUTPUT_PATH");
-      if (!cmSystemTools::IsSubDirectory(output_path.c_str(),
-                                         this->HomeOutputDirectory.c_str()))
+      outputPath = mf->GetDefinition("LIBRARY_OUTPUT_PATH");
+      if (!outputPath.empty() && !cmSystemTools::IsSubDirectory(
+                        outputPath.c_str(), this->HomeOutputDirectory.c_str()))
         {
-        std::string name = this->GetPathBasename(output_path);
+        std::string name = this->GetPathBasename(outputPath);
 
         // make sure linked resource name is unique
         while (this->GlobalGenerator->GetProjectMap().find(name)
@@ -383,7 +383,7 @@
           name += "_";
           }
         this->AppendLinkedResource(fout, name,
-                                   this->GetEclipsePath(output_path));
+                                   this->GetEclipsePath(outputPath));
         this->OutLinkedResources.push_back(name);
         }
       }
@@ -502,7 +502,7 @@
   // for each sub project with a linked resource to the source dir:
   // - make it type 'src'
   // - and exclude it from type 'out'
-  std::string exclude_from_out;
+  std::string excludeFromOut;
   for (std::vector<std::string>::const_iterator
        it = this->SrcLinkedResources.begin();
        it != this->SrcLinkedResources.end();
@@ -515,11 +515,11 @@
     if (!cmSystemTools::FileIsDirectory(
            std::string(this->HomeOutputDirectory + "/" + *it).c_str()))
       {
-      exclude_from_out += *it + "/|";
+      excludeFromOut += *it + "/|";
       }
     }
-  exclude_from_out += "**/CMakeFiles/";
-  fout << "<pathentry excluding=\"" << exclude_from_out
+  excludeFromOut += "**/CMakeFiles/";
+  fout << "<pathentry excluding=\"" << excludeFromOut
        << "\" kind=\"out\" path=\"\"/>\n";
   // add output entry for EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH
   // - if it is a subdir of homeOutputDirectory, there is no need to add it



More information about the Cmake-commits mailing list