Просмотр исходного кода

cmCommand: remove IsScriptable

Daniel Pfeifer 8 лет назад
Родитель
Сommit
44c0b2b75a
48 измененных файлов с 0 добавлено и 232 удалено
  1. 0 5
      Source/cmBreakCommand.h
  2. 0 1
      Source/cmBuildNameCommand.h
  3. 0 5
      Source/cmCMakeHostSystemInformationCommand.h
  4. 0 5
      Source/cmCMakeMinimumRequired.h
  5. 0 5
      Source/cmCMakePolicyCommand.h
  6. 0 5
      Source/cmCommand.h
  7. 0 5
      Source/cmConfigureFileCommand.h
  8. 0 5
      Source/cmContinueCommand.h
  9. 0 5
      Source/cmDisallowedCommand.h
  10. 0 5
      Source/cmExecProgramCommand.h
  11. 0 5
      Source/cmExecuteProcessCommand.h
  12. 0 5
      Source/cmFileCommand.h
  13. 0 5
      Source/cmFindLibraryCommand.h
  14. 0 5
      Source/cmFindPackageCommand.h
  15. 0 5
      Source/cmFindPathCommand.h
  16. 0 5
      Source/cmFindProgramCommand.h
  17. 0 5
      Source/cmForEachCommand.h
  18. 0 5
      Source/cmFunctionCommand.cxx
  19. 0 5
      Source/cmFunctionCommand.h
  20. 0 5
      Source/cmGetCMakePropertyCommand.h
  21. 0 5
      Source/cmGetDirectoryPropertyCommand.h
  22. 0 5
      Source/cmGetFilenameComponentCommand.h
  23. 0 5
      Source/cmGetPropertyCommand.h
  24. 0 5
      Source/cmIfCommand.h
  25. 0 5
      Source/cmIncludeCommand.h
  26. 0 5
      Source/cmListCommand.h
  27. 0 5
      Source/cmMacroCommand.cxx
  28. 0 5
      Source/cmMacroCommand.h
  29. 0 5
      Source/cmMakeDirectoryCommand.h
  30. 0 8
      Source/cmMarkAsAdvancedCommand.h
  31. 0 5
      Source/cmMathCommand.h
  32. 0 5
      Source/cmMessageCommand.h
  33. 0 5
      Source/cmOptionCommand.h
  34. 0 5
      Source/cmParseArgumentsCommand.h
  35. 0 5
      Source/cmRemoveCommand.h
  36. 0 5
      Source/cmReturnCommand.h
  37. 0 5
      Source/cmSeparateArgumentsCommand.h
  38. 0 5
      Source/cmSetCommand.h
  39. 0 5
      Source/cmSetDirectoryPropertiesCommand.h
  40. 0 5
      Source/cmSetPropertyCommand.h
  41. 0 5
      Source/cmSiteNameCommand.h
  42. 0 5
      Source/cmStringCommand.h
  43. 0 2
      Source/cmUnexpectedCommand.h
  44. 0 5
      Source/cmUnsetCommand.h
  45. 0 1
      Source/cmUseMangledMesaCommand.h
  46. 0 5
      Source/cmVariableWatchCommand.h
  47. 0 5
      Source/cmWhileCommand.h
  48. 0 5
      Source/cmWriteFileCommand.h

+ 0 - 5
Source/cmBreakCommand.h

@@ -32,11 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 1
Source/cmBuildNameCommand.h

@@ -19,7 +19,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
   std::string GetName() const CM_OVERRIDE { return "build_name"; }
-  bool IsScriptable() const CM_OVERRIDE { return true; }
 };
 
 #endif

+ 0 - 5
Source/cmCMakeHostSystemInformationCommand.h

@@ -40,11 +40,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-  * This determines if the command is invoked when in script mode.
-  */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
   * The name of the command as specified in CMakeList.txt.
   */

+ 0 - 5
Source/cmCMakeMinimumRequired.h

@@ -32,11 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmCMakePolicyCommand.h

@@ -33,11 +33,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-    * This determines if the command is invoked when in script mode.
-    */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
     * The name of the command as specified in CMakeList.txt.
     */

+ 0 - 5
Source/cmCommand.h

@@ -79,11 +79,6 @@ public:
    */
   virtual cmCommand* Clone() = 0;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  virtual bool IsScriptable() const { return false; }
-
   /**
    * This determines if the command is defined in a cmake script.
    * It is the case for cmMacroHelperCommand and cmFunctionHelperCommand.

+ 0 - 5
Source/cmConfigureFileCommand.h

@@ -30,11 +30,6 @@ public:
    */
   std::string GetName() const CM_OVERRIDE { return "configure_file"; }
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
 private:
   int ConfigureFile();
 

+ 0 - 5
Source/cmContinueCommand.h

@@ -32,11 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmDisallowedCommand.h

@@ -42,11 +42,6 @@ public:
     return this->Command->HasFinalPass();
   }
 
-  bool IsScriptable() const CM_OVERRIDE
-  {
-    return this->Command->IsScriptable();
-  }
-
   std::string GetName() const CM_OVERRIDE { return this->Command->GetName(); }
 
 private:

+ 0 - 5
Source/cmExecProgramCommand.h

@@ -41,11 +41,6 @@ public:
    */
   std::string GetName() const CM_OVERRIDE { return "exec_program"; }
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
 private:
   static bool RunCommand(const char* command, std::string& output, int& retVal,
                          const char* directory = CM_NULLPTR,

+ 0 - 5
Source/cmExecuteProcessCommand.h

@@ -37,11 +37,6 @@ public:
    * The name of the command as specified in CMakeList.txt.
    */
   std::string GetName() const CM_OVERRIDE { return "execute_process"; }
-
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
 };
 
 #endif

+ 0 - 5
Source/cmFileCommand.h

@@ -31,11 +31,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmFindLibraryCommand.h

@@ -36,11 +36,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmFindPackageCommand.h

@@ -60,11 +60,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmFindPathCommand.h

@@ -36,11 +36,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmFindProgramCommand.h

@@ -37,11 +37,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmForEachCommand.h

@@ -48,11 +48,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmFunctionCommand.cxx

@@ -39,11 +39,6 @@ public:
     return newC;
   }
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * This is called when the command is first encountered in
    * the CMakeLists.txt file.

+ 0 - 5
Source/cmFunctionCommand.h

@@ -45,11 +45,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmGetCMakePropertyCommand.h

@@ -24,11 +24,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmGetDirectoryPropertyCommand.h

@@ -24,11 +24,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmGetFilenameComponentCommand.h

@@ -33,11 +33,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmGetPropertyCommand.h

@@ -26,11 +26,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmIfCommand.h

@@ -69,11 +69,6 @@ public:
    */
   std::string GetName() const CM_OVERRIDE { return "if"; }
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   // Filter the given variable definition based on policy CMP0054.
   static const char* GetDefinitionIfUnquoted(
     const cmMakefile* mf, cmExpandedCommandArgument const& argument);

+ 0 - 5
Source/cmIncludeCommand.h

@@ -33,11 +33,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmListCommand.h

@@ -31,11 +31,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmMacroCommand.cxx

@@ -40,11 +40,6 @@ public:
     return newC;
   }
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * This is called when the command is first encountered in
    * the CMakeLists.txt file.

+ 0 - 5
Source/cmMacroCommand.h

@@ -45,11 +45,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmMakeDirectoryCommand.h

@@ -40,11 +40,6 @@ public:
    * The name of the command as specified in CMakeList.txt.
    */
   std::string GetName() const CM_OVERRIDE { return "make_directory"; }
-
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
 };
 
 #endif

+ 0 - 8
Source/cmMarkAsAdvancedCommand.h

@@ -36,14 +36,6 @@ public:
    * The name of the command as specified in CMakeList.txt.
    */
   std::string GetName() const CM_OVERRIDE { return "mark_as_advanced"; }
-
-  /**
-   * This determines if the command is invoked when in script mode.
-   * mark_as_advanced() will have no effect in script mode, but this will
-   * make many of the modules usable in cmake/ctest scripts, (among them
-   * FindUnixMake.cmake used by the CTEST_BUILD command.
-  */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
 };
 
 #endif

+ 0 - 5
Source/cmMathCommand.h

@@ -28,11 +28,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmMessageCommand.h

@@ -35,11 +35,6 @@ public:
    * The name of the command as specified in CMakeList.txt.
    */
   std::string GetName() const CM_OVERRIDE { return "message"; }
-
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
 };
 
 #endif

+ 0 - 5
Source/cmOptionCommand.h

@@ -36,11 +36,6 @@ public:
    * The name of the command as specified in CMakeList.txt.
    */
   std::string GetName() const CM_OVERRIDE { return "option"; }
-
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
 };
 
 #endif

+ 0 - 5
Source/cmParseArgumentsCommand.h

@@ -30,11 +30,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmRemoveCommand.h

@@ -32,11 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmReturnCommand.h

@@ -32,11 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmSeparateArgumentsCommand.h

@@ -32,11 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmSetCommand.h

@@ -32,11 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmSetDirectoryPropertiesCommand.h

@@ -28,11 +28,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmSetPropertyCommand.h

@@ -36,11 +36,6 @@ public:
    */
   std::string GetName() const CM_OVERRIDE { return "set_property"; }
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
 private:
   std::set<std::string> Names;
   std::string PropertyName;

+ 0 - 5
Source/cmSiteNameCommand.h

@@ -32,11 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmStringCommand.h

@@ -31,11 +31,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 2
Source/cmUnexpectedCommand.h

@@ -29,8 +29,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   std::string GetName() const CM_OVERRIDE { return this->Name; }
 
 private:

+ 0 - 5
Source/cmUnsetCommand.h

@@ -32,11 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 1
Source/cmUseMangledMesaCommand.h

@@ -19,7 +19,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
   std::string GetName() const CM_OVERRIDE { return "use_mangled_mesa"; }
-  bool IsScriptable() const CM_OVERRIDE { return true; }
 protected:
   void CopyAndFullPathMesaHeader(const char* source, const char* outdir);
 };

+ 0 - 5
Source/cmVariableWatchCommand.h

@@ -38,11 +38,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /** This command does not really have a final pass but it needs to
       stay alive since it owns variable watch callback information. */
   bool HasFinalPass() const CM_OVERRIDE { return true; }

+ 0 - 5
Source/cmWhileCommand.h

@@ -58,11 +58,6 @@ public:
     return false;
   }
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 0 - 5
Source/cmWriteFileCommand.h

@@ -31,11 +31,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * This determines if the command is invoked when in script mode.
-   */
-  bool IsScriptable() const CM_OVERRIDE { return true; }
-
   /**
    * The name of the command as specified in CMakeList.txt.
    */