Selaa lähdekoodia

Added and cleaned up some comments.

Morné Chamberlain 13 vuotta sitten
vanhempi
sitoutus
cd76ec3e22
2 muutettua tiedostoa jossa 13 lisäystä ja 3 poistoa
  1. 0 3
      Source/cmExtraSublimeTextGenerator.cxx
  2. 13 0
      Source/cmExtraSublimeTextGenerator.h

+ 0 - 3
Source/cmExtraSublimeTextGenerator.cxx

@@ -86,7 +86,6 @@ void cmExtraSublimeTextGenerator::Generate()
 }
 
 
-/* create the project file */
 void cmExtraSublimeTextGenerator::CreateProjectFile(
                                      const std::vector<cmLocalGenerator*>& lgs)
 {
@@ -206,8 +205,6 @@ void cmExtraSublimeTextGenerator
   fout << "}";
 }
 
-// Get a list of all files and a set of all directories and subdirectories
-// with source files
 void cmExtraSublimeTextGenerator
   ::GetFileList(const std::vector<cmLocalGenerator*>& lgs,
                 std::vector<std::string>& allFiles)

+ 13 - 0
Source/cmExtraSublimeTextGenerator.h

@@ -45,8 +45,15 @@ private:
 
   void CreateNewProjectFile(const std::vector<cmLocalGenerator*>& lgs,
                                 const std::string& filename);
+  /** Populates allFiles with the full paths to all of the source files
+   *  from the local generators in lgs.
+   */
   void GetFileList(const std::vector<cmLocalGenerator*>& lgs,
                    std::vector<std::string>& allFiles);
+  /** Sends comma seperated source files paths to fileIncludePatternsStream
+   *  and builds a set of all directories and subdirectories containing
+   *  source files.
+   */
   void GetFileStringAndFolderSet(const std::vector<cmLocalGenerator*>& lgs,
                                  const cmMakefile* mf,
                                  const std::vector<std::string>& allFiles,
@@ -61,8 +68,14 @@ private:
                         cmGeneratedFileStream& fout,
                         std::set<std::string>& includeDirs,
                         std::set<std::string>& defines);
+  /** Returns the build command that needs to be executed to build the
+   *  specified target.
+   */
   std::string BuildMakeCommand(const std::string& make, const char* makefile,
                                const char* target);
+  /** Appends the specified target to the generated project file as a Sublime
+   *  Text build system.
+   */
   void AppendTarget(cmGeneratedFileStream& fout,
                     const char* targetName,
                     cmTarget* target,