Use CM_DISABLE_COPY
This commit is contained in:
parent
3cb7048b52
commit
d6f0006c0b
@ -12,6 +12,8 @@ class cmCursesMainForm;
|
|||||||
|
|
||||||
class cmCursesBoolWidget : public cmCursesWidget
|
class cmCursesBoolWidget : public cmCursesWidget
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesBoolWidget)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesBoolWidget(int width, int height, int left, int top);
|
cmCursesBoolWidget(int width, int height, int left, int top);
|
||||||
|
|
||||||
@ -25,10 +27,6 @@ public:
|
|||||||
// Set/Get the value (on/off).
|
// Set/Get the value (on/off).
|
||||||
void SetValueAsBool(bool value);
|
void SetValueAsBool(bool value);
|
||||||
bool GetValueAsBool();
|
bool GetValueAsBool();
|
||||||
|
|
||||||
protected:
|
|
||||||
cmCursesBoolWidget(const cmCursesBoolWidget& from);
|
|
||||||
void operator=(const cmCursesBoolWidget&);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // cmCursesBoolWidget_h
|
#endif // cmCursesBoolWidget_h
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
#include "cmSystemTools.h"
|
#include "cmSystemTools.h"
|
||||||
#include "cmake.h"
|
#include "cmake.h"
|
||||||
|
|
||||||
#include "cmConfigure.h"
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmCursesCacheEntryComposite_h
|
#ifndef cmCursesCacheEntryComposite_h
|
||||||
#define cmCursesCacheEntryComposite_h
|
#define cmCursesCacheEntryComposite_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@ -13,6 +13,8 @@ class cmake;
|
|||||||
|
|
||||||
class cmCursesCacheEntryComposite
|
class cmCursesCacheEntryComposite
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesCacheEntryComposite)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesCacheEntryComposite(const std::string& key, int labelwidth,
|
cmCursesCacheEntryComposite(const std::string& key, int labelwidth,
|
||||||
int entrywidth);
|
int entrywidth);
|
||||||
@ -24,9 +26,6 @@ public:
|
|||||||
friend class cmCursesMainForm;
|
friend class cmCursesMainForm;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
cmCursesCacheEntryComposite(const cmCursesCacheEntryComposite& from);
|
|
||||||
void operator=(const cmCursesCacheEntryComposite&);
|
|
||||||
|
|
||||||
cmCursesLabelWidget* Label;
|
cmCursesLabelWidget* Label;
|
||||||
cmCursesLabelWidget* IsNewLabel;
|
cmCursesLabelWidget* IsNewLabel;
|
||||||
cmCursesWidget* Entry;
|
cmCursesWidget* Entry;
|
||||||
|
@ -12,6 +12,8 @@ class cmCursesMainForm;
|
|||||||
|
|
||||||
class cmCursesDummyWidget : public cmCursesWidget
|
class cmCursesDummyWidget : public cmCursesWidget
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesDummyWidget)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesDummyWidget(int width, int height, int left, int top);
|
cmCursesDummyWidget(int width, int height, int left, int top);
|
||||||
|
|
||||||
@ -20,10 +22,6 @@ public:
|
|||||||
// when this widget has focus. Returns true if the input was
|
// when this widget has focus. Returns true if the input was
|
||||||
// handled.
|
// handled.
|
||||||
bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
|
bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
|
||||||
|
|
||||||
protected:
|
|
||||||
cmCursesDummyWidget(const cmCursesDummyWidget& from);
|
|
||||||
void operator=(const cmCursesDummyWidget&);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // cmCursesDummyWidget_h
|
#endif // cmCursesDummyWidget_h
|
||||||
|
@ -3,18 +3,16 @@
|
|||||||
#ifndef cmCursesFilePathWidget_h
|
#ifndef cmCursesFilePathWidget_h
|
||||||
#define cmCursesFilePathWidget_h
|
#define cmCursesFilePathWidget_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include "cmCursesPathWidget.h"
|
#include "cmCursesPathWidget.h"
|
||||||
|
|
||||||
class cmCursesFilePathWidget : public cmCursesPathWidget
|
class cmCursesFilePathWidget : public cmCursesPathWidget
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesFilePathWidget)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesFilePathWidget(int width, int height, int left, int top);
|
cmCursesFilePathWidget(int width, int height, int left, int top);
|
||||||
|
|
||||||
protected:
|
|
||||||
cmCursesFilePathWidget(const cmCursesFilePathWidget& from);
|
|
||||||
void operator=(const cmCursesFilePathWidget&);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // cmCursesFilePathWidget_h
|
#endif // cmCursesFilePathWidget_h
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||||
#include "cmCursesForm.h"
|
#include "cmCursesForm.h"
|
||||||
|
|
||||||
#include "cmConfigure.h"
|
|
||||||
|
|
||||||
cmsys::ofstream cmCursesForm::DebugFile;
|
cmsys::ofstream cmCursesForm::DebugFile;
|
||||||
bool cmCursesForm::Debug = false;
|
bool cmCursesForm::Debug = false;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmCursesForm_h
|
#ifndef cmCursesForm_h
|
||||||
#define cmCursesForm_h
|
#define cmCursesForm_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include "cmCursesStandardIncludes.h"
|
#include "cmCursesStandardIncludes.h"
|
||||||
|
|
||||||
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
class cmCursesForm
|
class cmCursesForm
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesForm)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesForm();
|
cmCursesForm();
|
||||||
virtual ~cmCursesForm();
|
virtual ~cmCursesForm();
|
||||||
@ -55,9 +57,6 @@ protected:
|
|||||||
static cmsys::ofstream DebugFile;
|
static cmsys::ofstream DebugFile;
|
||||||
static bool Debug;
|
static bool Debug;
|
||||||
|
|
||||||
cmCursesForm(const cmCursesForm& form);
|
|
||||||
void operator=(const cmCursesForm&);
|
|
||||||
|
|
||||||
FORM* Form;
|
FORM* Form;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@ class cmCursesMainForm;
|
|||||||
|
|
||||||
class cmCursesLabelWidget : public cmCursesWidget
|
class cmCursesLabelWidget : public cmCursesWidget
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesLabelWidget)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesLabelWidget(int width, int height, int left, int top,
|
cmCursesLabelWidget(int width, int height, int left, int top,
|
||||||
const std::string& name);
|
const std::string& name);
|
||||||
@ -24,10 +26,6 @@ public:
|
|||||||
// when this widget has focus. Returns true if the input was
|
// when this widget has focus. Returns true if the input was
|
||||||
// handled
|
// handled
|
||||||
bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
|
bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
|
||||||
|
|
||||||
protected:
|
|
||||||
cmCursesLabelWidget(const cmCursesLabelWidget& from);
|
|
||||||
void operator=(const cmCursesLabelWidget&);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // cmCursesLabelWidget_h
|
#endif // cmCursesLabelWidget_h
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
class cmCursesLongMessageForm : public cmCursesForm
|
class cmCursesLongMessageForm : public cmCursesForm
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesLongMessageForm)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesLongMessageForm(std::vector<std::string> const& messages,
|
cmCursesLongMessageForm(std::vector<std::string> const& messages,
|
||||||
const char* title);
|
const char* title);
|
||||||
@ -38,9 +40,6 @@ public:
|
|||||||
void UpdateStatusBar() CM_OVERRIDE;
|
void UpdateStatusBar() CM_OVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
cmCursesLongMessageForm(const cmCursesLongMessageForm& from);
|
|
||||||
void operator=(const cmCursesLongMessageForm&);
|
|
||||||
|
|
||||||
std::string Messages;
|
std::string Messages;
|
||||||
std::string Title;
|
std::string Title;
|
||||||
|
|
||||||
|
@ -23,6 +23,8 @@ class cmake;
|
|||||||
*/
|
*/
|
||||||
class cmCursesMainForm : public cmCursesForm
|
class cmCursesMainForm : public cmCursesForm
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesMainForm)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesMainForm(std::vector<std::string> const& args, int initwidth);
|
cmCursesMainForm(std::vector<std::string> const& args, int initwidth);
|
||||||
~cmCursesMainForm() CM_OVERRIDE;
|
~cmCursesMainForm() CM_OVERRIDE;
|
||||||
@ -103,9 +105,6 @@ public:
|
|||||||
static void UpdateProgress(const char* msg, float prog, void*);
|
static void UpdateProgress(const char* msg, float prog, void*);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
cmCursesMainForm(const cmCursesMainForm& from);
|
|
||||||
void operator=(const cmCursesMainForm&);
|
|
||||||
|
|
||||||
// Copy the cache values from the user interface to the actual
|
// Copy the cache values from the user interface to the actual
|
||||||
// cache.
|
// cache.
|
||||||
void FillCacheManagerFromUI();
|
void FillCacheManagerFromUI();
|
||||||
|
@ -15,6 +15,8 @@ class cmCursesMainForm;
|
|||||||
|
|
||||||
class cmCursesOptionsWidget : public cmCursesWidget
|
class cmCursesOptionsWidget : public cmCursesWidget
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesOptionsWidget)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesOptionsWidget(int width, int height, int left, int top);
|
cmCursesOptionsWidget(int width, int height, int left, int top);
|
||||||
|
|
||||||
@ -29,8 +31,6 @@ public:
|
|||||||
void PreviousOption();
|
void PreviousOption();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
cmCursesOptionsWidget(const cmCursesOptionsWidget& from);
|
|
||||||
void operator=(const cmCursesOptionsWidget&);
|
|
||||||
std::vector<std::string> Options;
|
std::vector<std::string> Options;
|
||||||
std::vector<std::string>::size_type CurrentOption;
|
std::vector<std::string>::size_type CurrentOption;
|
||||||
};
|
};
|
||||||
|
@ -14,6 +14,8 @@ class cmCursesMainForm;
|
|||||||
|
|
||||||
class cmCursesPathWidget : public cmCursesStringWidget
|
class cmCursesPathWidget : public cmCursesStringWidget
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesPathWidget)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesPathWidget(int width, int height, int left, int top);
|
cmCursesPathWidget(int width, int height, int left, int top);
|
||||||
|
|
||||||
@ -26,9 +28,6 @@ public:
|
|||||||
void OnType(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
|
void OnType(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
cmCursesPathWidget(const cmCursesPathWidget& from);
|
|
||||||
void operator=(const cmCursesPathWidget&);
|
|
||||||
|
|
||||||
std::string LastString;
|
std::string LastString;
|
||||||
std::string LastGlob;
|
std::string LastGlob;
|
||||||
bool Cycle;
|
bool Cycle;
|
||||||
|
@ -20,6 +20,8 @@ class cmCursesMainForm;
|
|||||||
|
|
||||||
class cmCursesStringWidget : public cmCursesWidget
|
class cmCursesStringWidget : public cmCursesWidget
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesStringWidget)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesStringWidget(int width, int height, int left, int top);
|
cmCursesStringWidget(int width, int height, int left, int top);
|
||||||
|
|
||||||
@ -60,9 +62,6 @@ public:
|
|||||||
bool PrintKeys() CM_OVERRIDE;
|
bool PrintKeys() CM_OVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
cmCursesStringWidget(const cmCursesStringWidget& from);
|
|
||||||
void operator=(const cmCursesStringWidget&);
|
|
||||||
|
|
||||||
// true if the widget is in edit mode
|
// true if the widget is in edit mode
|
||||||
bool InEdit;
|
bool InEdit;
|
||||||
char* OriginalString;
|
char* OriginalString;
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||||
#include "cmCursesWidget.h"
|
#include "cmCursesWidget.h"
|
||||||
|
|
||||||
#include "cmConfigure.h"
|
|
||||||
|
|
||||||
cmCursesWidget::cmCursesWidget(int width, int height, int left, int top)
|
cmCursesWidget::cmCursesWidget(int width, int height, int left, int top)
|
||||||
{
|
{
|
||||||
this->Field = new_field(height, width, top, left, 0, 0);
|
this->Field = new_field(height, width, top, left, 0, 0);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmCursesWidget_h
|
#ifndef cmCursesWidget_h
|
||||||
#define cmCursesWidget_h
|
#define cmCursesWidget_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include "cmCursesStandardIncludes.h"
|
#include "cmCursesStandardIncludes.h"
|
||||||
#include "cmStateTypes.h"
|
#include "cmStateTypes.h"
|
||||||
@ -14,6 +14,8 @@ class cmCursesMainForm;
|
|||||||
|
|
||||||
class cmCursesWidget
|
class cmCursesWidget
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCursesWidget)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCursesWidget(int width, int height, int left, int top);
|
cmCursesWidget(int width, int height, int left, int top);
|
||||||
virtual ~cmCursesWidget();
|
virtual ~cmCursesWidget();
|
||||||
@ -59,9 +61,6 @@ public:
|
|||||||
friend class cmCursesMainForm;
|
friend class cmCursesMainForm;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
cmCursesWidget(const cmCursesWidget& from);
|
|
||||||
void operator=(const cmCursesWidget&);
|
|
||||||
|
|
||||||
cmStateEnums::CacheEntryType Type;
|
cmStateEnums::CacheEntryType Type;
|
||||||
std::string Value;
|
std::string Value;
|
||||||
FIELD* Field;
|
FIELD* Field;
|
||||||
|
@ -3,21 +3,20 @@
|
|||||||
#ifndef cmCLocaleEnvironmentScope_h
|
#ifndef cmCLocaleEnvironmentScope_h
|
||||||
#define cmCLocaleEnvironmentScope_h
|
#define cmCLocaleEnvironmentScope_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class cmCLocaleEnvironmentScope
|
class cmCLocaleEnvironmentScope
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCLocaleEnvironmentScope)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCLocaleEnvironmentScope();
|
cmCLocaleEnvironmentScope();
|
||||||
~cmCLocaleEnvironmentScope();
|
~cmCLocaleEnvironmentScope();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmCLocaleEnvironmentScope(cmCLocaleEnvironmentScope const&);
|
|
||||||
cmCLocaleEnvironmentScope& operator=(cmCLocaleEnvironmentScope const&);
|
|
||||||
|
|
||||||
std::string GetEnv(std::string const& key);
|
std::string GetEnv(std::string const& key);
|
||||||
void SetEnv(std::string const& key, std::string const& value);
|
void SetEnv(std::string const& key, std::string const& value);
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmCPackPropertiesGenerator_h
|
#ifndef cmCPackPropertiesGenerator_h
|
||||||
#define cmCPackPropertiesGenerator_h
|
#define cmCPackPropertiesGenerator_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include "cmScriptGenerator.h"
|
#include "cmScriptGenerator.h"
|
||||||
|
|
||||||
@ -20,6 +20,8 @@ class cmLocalGenerator;
|
|||||||
*/
|
*/
|
||||||
class cmCPackPropertiesGenerator : public cmScriptGenerator
|
class cmCPackPropertiesGenerator : public cmScriptGenerator
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCPackPropertiesGenerator)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCPackPropertiesGenerator(cmLocalGenerator* lg,
|
cmCPackPropertiesGenerator(cmLocalGenerator* lg,
|
||||||
cmInstalledFile const& installedFile,
|
cmInstalledFile const& installedFile,
|
||||||
|
@ -24,6 +24,8 @@ struct cmListFileArgument;
|
|||||||
*/
|
*/
|
||||||
class cmCommand
|
class cmCommand
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCommand)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Construct the command. By default it has no makefile.
|
* Construct the command. By default it has no makefile.
|
||||||
@ -103,10 +105,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
void SetError(const std::string& e);
|
void SetError(const std::string& e);
|
||||||
|
|
||||||
private:
|
|
||||||
cmCommand(cmCommand const&); // = delete;
|
|
||||||
cmCommand& operator=(cmCommand const&); // = delete;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
cmMakefile* Makefile;
|
cmMakefile* Makefile;
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
#include "cmSystemTools.h"
|
#include "cmSystemTools.h"
|
||||||
#include "cmake.h"
|
#include "cmake.h"
|
||||||
|
|
||||||
#include "cmConfigure.h"
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmCommandArgumentParserHelper_h
|
#ifndef cmCommandArgumentParserHelper_h
|
||||||
#define cmCommandArgumentParserHelper_h
|
#define cmCommandArgumentParserHelper_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -12,6 +12,8 @@ class cmMakefile;
|
|||||||
|
|
||||||
class cmCommandArgumentParserHelper
|
class cmCommandArgumentParserHelper
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCommandArgumentParserHelper)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
struct ParserType
|
struct ParserType
|
||||||
{
|
{
|
||||||
@ -60,10 +62,6 @@ public:
|
|||||||
char BSLASHVariable[3];
|
char BSLASHVariable[3];
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmCommandArgumentParserHelper(cmCommandArgumentParserHelper const&);
|
|
||||||
cmCommandArgumentParserHelper& operator=(
|
|
||||||
cmCommandArgumentParserHelper const&);
|
|
||||||
|
|
||||||
std::string::size_type InputBufferPos;
|
std::string::size_type InputBufferPos;
|
||||||
std::string InputBuffer;
|
std::string InputBuffer;
|
||||||
std::vector<char> OutputBuffer;
|
std::vector<char> OutputBuffer;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmCryptoHash_h
|
#ifndef cmCryptoHash_h
|
||||||
#define cmCryptoHash_h
|
#define cmCryptoHash_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -16,6 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
class cmCryptoHash
|
class cmCryptoHash
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCryptoHash)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum Algo
|
enum Algo
|
||||||
{
|
{
|
||||||
@ -78,9 +80,6 @@ public:
|
|||||||
std::string FinalizeHex();
|
std::string FinalizeHex();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmCryptoHash(cmCryptoHash const&);
|
|
||||||
cmCryptoHash& operator=(cmCryptoHash const&);
|
|
||||||
|
|
||||||
unsigned int Id;
|
unsigned int Id;
|
||||||
struct rhash_context* CTX;
|
struct rhash_context* CTX;
|
||||||
};
|
};
|
||||||
|
@ -24,6 +24,8 @@ class cmLocalGenerator;
|
|||||||
*/
|
*/
|
||||||
class cmDepends
|
class cmDepends
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmDepends)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/** Instances need to know the build directory name and the relative
|
/** Instances need to know the build directory name and the relative
|
||||||
path from the build directory to the target file. */
|
path from the build directory to the target file. */
|
||||||
@ -116,10 +118,6 @@ protected:
|
|||||||
std::vector<std::string> IncludePath;
|
std::vector<std::string> IncludePath;
|
||||||
|
|
||||||
void SetIncludePathFromLanguage(const std::string& lang);
|
void SetIncludePathFromLanguage(const std::string& lang);
|
||||||
|
|
||||||
private:
|
|
||||||
cmDepends(cmDepends const&); // Purposely not implemented.
|
|
||||||
void operator=(cmDepends const&); // Purposely not implemented.
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -22,6 +22,8 @@ class cmLocalGenerator;
|
|||||||
*/
|
*/
|
||||||
class cmDependsC : public cmDepends
|
class cmDependsC : public cmDepends
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmDependsC)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/** Checking instances need to know the build directory name and the
|
/** Checking instances need to know the build directory name and the
|
||||||
relative path from the build directory to the target file. */
|
relative path from the build directory to the target file. */
|
||||||
@ -93,10 +95,6 @@ protected:
|
|||||||
|
|
||||||
void WriteCacheFile() const;
|
void WriteCacheFile() const;
|
||||||
void ReadCacheFile();
|
void ReadCacheFile();
|
||||||
|
|
||||||
private:
|
|
||||||
cmDependsC(cmDependsC const&); // Purposely not implemented.
|
|
||||||
void operator=(cmDependsC const&); // Purposely not implemented.
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@ class cmLocalGenerator;
|
|||||||
*/
|
*/
|
||||||
class cmDependsFortran : public cmDepends
|
class cmDependsFortran : public cmDepends
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmDependsFortran)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/** Checking instances need to know the build directory name and the
|
/** Checking instances need to know the build directory name and the
|
||||||
relative path from the build directory to the target file. */
|
relative path from the build directory to the target file. */
|
||||||
@ -77,9 +79,6 @@ protected:
|
|||||||
cmDependsFortranInternals* Internal;
|
cmDependsFortranInternals* Internal;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmDependsFortran(cmDependsFortran const&); // Purposely not implemented.
|
|
||||||
void operator=(cmDependsFortran const&); // Purposely not implemented.
|
|
||||||
|
|
||||||
std::string MaybeConvertToRelativePath(std::string const& base,
|
std::string MaybeConvertToRelativePath(std::string const& base,
|
||||||
std::string const& path);
|
std::string const& path);
|
||||||
};
|
};
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
*/
|
*/
|
||||||
class cmDependsJava : public cmDepends
|
class cmDependsJava : public cmDepends
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmDependsJava)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/** Checking instances need to know the build directory name and the
|
/** Checking instances need to know the build directory name and the
|
||||||
relative path from the build directory to the target file. */
|
relative path from the build directory to the target file. */
|
||||||
@ -33,10 +35,6 @@ protected:
|
|||||||
bool CheckDependencies(
|
bool CheckDependencies(
|
||||||
std::istream& internalDepends, const char* internalDependsFileName,
|
std::istream& internalDepends, const char* internalDependsFileName,
|
||||||
std::map<std::string, DependencyVector>& validDeps) CM_OVERRIDE;
|
std::map<std::string, DependencyVector>& validDeps) CM_OVERRIDE;
|
||||||
|
|
||||||
private:
|
|
||||||
cmDependsJava(cmDependsJava const&); // Purposely not implemented.
|
|
||||||
void operator=(cmDependsJava const&); // Purposely not implemented.
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||||
#include "cmDynamicLoader.h"
|
#include "cmDynamicLoader.h"
|
||||||
|
|
||||||
#include "cmConfigure.h"
|
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
@ -8,12 +8,14 @@
|
|||||||
#ifndef cmDynamicLoader_h
|
#ifndef cmDynamicLoader_h
|
||||||
#define cmDynamicLoader_h
|
#define cmDynamicLoader_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include "cmsys/DynamicLoader.hxx" // IWYU pragma: export
|
#include "cmsys/DynamicLoader.hxx" // IWYU pragma: export
|
||||||
|
|
||||||
class cmDynamicLoader
|
class cmDynamicLoader
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmDynamicLoader)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Description:
|
// Description:
|
||||||
// Load a dynamic library into the current process.
|
// Load a dynamic library into the current process.
|
||||||
@ -28,10 +30,6 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
cmDynamicLoader() {}
|
cmDynamicLoader() {}
|
||||||
~cmDynamicLoader() {}
|
~cmDynamicLoader() {}
|
||||||
|
|
||||||
private:
|
|
||||||
cmDynamicLoader(const cmDynamicLoader&); // Not implemented.
|
|
||||||
void operator=(const cmDynamicLoader&); // Not implemented.
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmFileLock_h
|
#ifndef cmFileLock_h
|
||||||
#define cmFileLock_h
|
#define cmFileLock_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@ -21,6 +21,8 @@ class cmFileLockResult;
|
|||||||
*/
|
*/
|
||||||
class cmFileLock
|
class cmFileLock
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmFileLock)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmFileLock();
|
cmFileLock();
|
||||||
~cmFileLock();
|
~cmFileLock();
|
||||||
@ -44,9 +46,6 @@ public:
|
|||||||
bool IsLocked(const std::string& filename) const;
|
bool IsLocked(const std::string& filename) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmFileLock(const cmFileLock&);
|
|
||||||
cmFileLock& operator=(const cmFileLock&);
|
|
||||||
|
|
||||||
cmFileLockResult OpenFile();
|
cmFileLockResult OpenFile();
|
||||||
cmFileLockResult LockWithoutTimeout();
|
cmFileLockResult LockWithoutTimeout();
|
||||||
cmFileLockResult LockWithTimeout(unsigned long timeoutSec);
|
cmFileLockResult LockWithTimeout(unsigned long timeoutSec);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmFileLockPool_h
|
#ifndef cmFileLockPool_h
|
||||||
#define cmFileLockPool_h
|
#define cmFileLockPool_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -13,6 +13,8 @@ class cmFileLockResult;
|
|||||||
|
|
||||||
class cmFileLockPool
|
class cmFileLockPool
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmFileLockPool)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmFileLockPool();
|
cmFileLockPool();
|
||||||
~cmFileLockPool();
|
~cmFileLockPool();
|
||||||
@ -52,13 +54,12 @@ public:
|
|||||||
cmFileLockResult Release(const std::string& filename);
|
cmFileLockResult Release(const std::string& filename);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmFileLockPool(const cmFileLockPool&);
|
|
||||||
cmFileLockPool& operator=(const cmFileLockPool&);
|
|
||||||
|
|
||||||
bool IsAlreadyLocked(const std::string& filename) const;
|
bool IsAlreadyLocked(const std::string& filename) const;
|
||||||
|
|
||||||
class ScopePool
|
class ScopePool
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(ScopePool)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ScopePool();
|
ScopePool();
|
||||||
~ScopePool();
|
~ScopePool();
|
||||||
@ -69,9 +70,6 @@ private:
|
|||||||
bool IsAlreadyLocked(const std::string& filename) const;
|
bool IsAlreadyLocked(const std::string& filename) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ScopePool(const ScopePool&);
|
|
||||||
ScopePool& operator=(const ScopePool&);
|
|
||||||
|
|
||||||
typedef std::list<cmFileLock*> List;
|
typedef std::list<cmFileLock*> List;
|
||||||
typedef List::iterator It;
|
typedef List::iterator It;
|
||||||
typedef List::const_iterator CIt;
|
typedef List::const_iterator CIt;
|
||||||
|
@ -31,6 +31,8 @@ struct cmGeneratorExpressionEvaluator;
|
|||||||
*/
|
*/
|
||||||
class cmGeneratorExpression
|
class cmGeneratorExpression
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmGeneratorExpression)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/** Construct. */
|
/** Construct. */
|
||||||
cmGeneratorExpression(
|
cmGeneratorExpression(
|
||||||
@ -61,14 +63,13 @@ public:
|
|||||||
static std::string StripEmptyListElements(const std::string& input);
|
static std::string StripEmptyListElements(const std::string& input);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmGeneratorExpression(const cmGeneratorExpression&);
|
|
||||||
void operator=(const cmGeneratorExpression&);
|
|
||||||
|
|
||||||
cmListFileBacktrace Backtrace;
|
cmListFileBacktrace Backtrace;
|
||||||
};
|
};
|
||||||
|
|
||||||
class cmCompiledGeneratorExpression
|
class cmCompiledGeneratorExpression
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmCompiledGeneratorExpression)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
const char* Evaluate(
|
const char* Evaluate(
|
||||||
cmLocalGenerator* lg, const std::string& config, bool quiet = false,
|
cmLocalGenerator* lg, const std::string& config, bool quiet = false,
|
||||||
@ -133,9 +134,6 @@ private:
|
|||||||
|
|
||||||
friend class cmGeneratorExpression;
|
friend class cmGeneratorExpression;
|
||||||
|
|
||||||
cmCompiledGeneratorExpression(const cmCompiledGeneratorExpression&);
|
|
||||||
void operator=(const cmCompiledGeneratorExpression&);
|
|
||||||
|
|
||||||
cmListFileBacktrace Backtrace;
|
cmListFileBacktrace Backtrace;
|
||||||
std::vector<cmGeneratorExpressionEvaluator*> Evaluators;
|
std::vector<cmGeneratorExpressionEvaluator*> Evaluators;
|
||||||
const std::string Input;
|
const std::string Input;
|
||||||
|
@ -30,8 +30,7 @@ struct cmGeneratorExpressionEvaluator
|
|||||||
cmGeneratorExpressionDAGChecker*) const = 0;
|
cmGeneratorExpressionDAGChecker*) const = 0;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmGeneratorExpressionEvaluator(const cmGeneratorExpressionEvaluator&);
|
CM_DISABLE_COPY(cmGeneratorExpressionEvaluator)
|
||||||
void operator=(const cmGeneratorExpressionEvaluator&);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TextContent : public cmGeneratorExpressionEvaluator
|
struct TextContent : public cmGeneratorExpressionEvaluator
|
||||||
|
@ -27,6 +27,8 @@ class cmTarget;
|
|||||||
|
|
||||||
class cmGeneratorTarget
|
class cmGeneratorTarget
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmGeneratorTarget)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmGeneratorTarget(cmTarget*, cmLocalGenerator* lg);
|
cmGeneratorTarget(cmTarget*, cmLocalGenerator* lg);
|
||||||
~cmGeneratorTarget();
|
~cmGeneratorTarget();
|
||||||
@ -701,9 +703,6 @@ private:
|
|||||||
void CheckPropertyCompatibility(cmComputeLinkInformation* info,
|
void CheckPropertyCompatibility(cmComputeLinkInformation* info,
|
||||||
const std::string& config) const;
|
const std::string& config) const;
|
||||||
|
|
||||||
cmGeneratorTarget(cmGeneratorTarget const&);
|
|
||||||
void operator=(cmGeneratorTarget const&);
|
|
||||||
|
|
||||||
struct LinkImplClosure : public std::vector<cmGeneratorTarget const*>
|
struct LinkImplClosure : public std::vector<cmGeneratorTarget const*>
|
||||||
{
|
{
|
||||||
LinkImplClosure()
|
LinkImplClosure()
|
||||||
|
@ -21,6 +21,8 @@ class cmMakefile;
|
|||||||
*/
|
*/
|
||||||
class cmInstallGenerator : public cmScriptGenerator
|
class cmInstallGenerator : public cmScriptGenerator
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmInstallGenerator)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum MessageLevel
|
enum MessageLevel
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#ifndef cmLinkLineComputer_h
|
#ifndef cmLinkLineComputer_h
|
||||||
#define cmLinkLineComputer_h
|
#define cmLinkLineComputer_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@ -16,6 +16,8 @@ class cmOutputConverter;
|
|||||||
|
|
||||||
class cmLinkLineComputer
|
class cmLinkLineComputer
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmLinkLineComputer)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmLinkLineComputer(cmOutputConverter* outputConverter,
|
cmLinkLineComputer(cmOutputConverter* outputConverter,
|
||||||
cmStateDirectory stateDir);
|
cmStateDirectory stateDir);
|
||||||
@ -41,9 +43,6 @@ public:
|
|||||||
std::string const& config);
|
std::string const& config);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
cmLinkLineComputer(cmLinkLineComputer const&);
|
|
||||||
cmLinkLineComputer& operator=(cmLinkLineComputer const&);
|
|
||||||
|
|
||||||
std::string ComputeLinkLibs(cmComputeLinkInformation& cli);
|
std::string ComputeLinkLibs(cmComputeLinkInformation& cli);
|
||||||
std::string ComputeRPath(cmComputeLinkInformation& cli);
|
std::string ComputeRPath(cmComputeLinkInformation& cli);
|
||||||
|
|
||||||
|
@ -18,6 +18,8 @@ class cmStateDirectory;
|
|||||||
|
|
||||||
class cmLinkLineDeviceComputer : public cmLinkLineComputer
|
class cmLinkLineDeviceComputer : public cmLinkLineComputer
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmLinkLineDeviceComputer)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmLinkLineDeviceComputer(cmOutputConverter* outputConverter,
|
cmLinkLineDeviceComputer(cmOutputConverter* outputConverter,
|
||||||
cmStateDirectory stateDir);
|
cmStateDirectory stateDir);
|
||||||
@ -33,6 +35,8 @@ public:
|
|||||||
|
|
||||||
class cmNinjaLinkLineDeviceComputer : public cmLinkLineDeviceComputer
|
class cmNinjaLinkLineDeviceComputer : public cmLinkLineDeviceComputer
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmNinjaLinkLineDeviceComputer)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmNinjaLinkLineDeviceComputer(cmOutputConverter* outputConverter,
|
cmNinjaLinkLineDeviceComputer(cmOutputConverter* outputConverter,
|
||||||
cmStateDirectory stateDir,
|
cmStateDirectory stateDir,
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
class cmLocaleRAII
|
class cmLocaleRAII
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmLocaleRAII)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmLocaleRAII()
|
cmLocaleRAII()
|
||||||
: OldLocale(setlocale(LC_CTYPE, CM_NULLPTR))
|
: OldLocale(setlocale(LC_CTYPE, CM_NULLPTR))
|
||||||
@ -19,9 +21,6 @@ public:
|
|||||||
~cmLocaleRAII() { setlocale(LC_CTYPE, this->OldLocale.c_str()); }
|
~cmLocaleRAII() { setlocale(LC_CTYPE, this->OldLocale.c_str()); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmLocaleRAII(cmLocaleRAII const&);
|
|
||||||
cmLocaleRAII& operator=(cmLocaleRAII const&);
|
|
||||||
|
|
||||||
std::string OldLocale;
|
std::string OldLocale;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@ class cmStateDirectory;
|
|||||||
|
|
||||||
class cmMSVC60LinkLineComputer : public cmLinkLineComputer
|
class cmMSVC60LinkLineComputer : public cmLinkLineComputer
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmMSVC60LinkLineComputer)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmMSVC60LinkLineComputer(cmOutputConverter* outputConverter,
|
cmMSVC60LinkLineComputer(cmOutputConverter* outputConverter,
|
||||||
cmStateDirectory stateDir);
|
cmStateDirectory stateDir);
|
||||||
|
@ -54,6 +54,8 @@ class cmVariableWatch;
|
|||||||
*/
|
*/
|
||||||
class cmMakefile
|
class cmMakefile
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmMakefile)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/* Mark a variable as used */
|
/* Mark a variable as used */
|
||||||
void MarkVariableAsUsed(const std::string& var);
|
void MarkVariableAsUsed(const std::string& var);
|
||||||
@ -709,6 +711,7 @@ public:
|
|||||||
/** Helper class to push and pop scopes automatically. */
|
/** Helper class to push and pop scopes automatically. */
|
||||||
class ScopePushPop
|
class ScopePushPop
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(ScopePushPop)
|
||||||
public:
|
public:
|
||||||
ScopePushPop(cmMakefile* m)
|
ScopePushPop(cmMakefile* m)
|
||||||
: Makefile(m)
|
: Makefile(m)
|
||||||
@ -717,8 +720,6 @@ public:
|
|||||||
}
|
}
|
||||||
~ScopePushPop() { this->Makefile->PopScope(); }
|
~ScopePushPop() { this->Makefile->PopScope(); }
|
||||||
private:
|
private:
|
||||||
ScopePushPop(ScopePushPop const&);
|
|
||||||
ScopePushPop& operator=(ScopePushPop const&);
|
|
||||||
cmMakefile* Makefile;
|
cmMakefile* Makefile;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -831,9 +832,6 @@ protected:
|
|||||||
cmExecutionStatus& status);
|
cmExecutionStatus& status);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmMakefile(const cmMakefile& mf);
|
|
||||||
cmMakefile& operator=(const cmMakefile& mf);
|
|
||||||
|
|
||||||
cmStateSnapshot StateSnapshot;
|
cmStateSnapshot StateSnapshot;
|
||||||
cmListFileBacktrace Backtrace;
|
cmListFileBacktrace Backtrace;
|
||||||
|
|
||||||
|
@ -16,6 +16,8 @@ class cmStateDirectory;
|
|||||||
|
|
||||||
class cmNinjaLinkLineComputer : public cmLinkLineComputer
|
class cmNinjaLinkLineComputer : public cmLinkLineComputer
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmNinjaLinkLineComputer)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmNinjaLinkLineComputer(cmOutputConverter* outputConverter,
|
cmNinjaLinkLineComputer(cmOutputConverter* outputConverter,
|
||||||
cmStateDirectory stateDir,
|
cmStateDirectory stateDir,
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
|
|
||||||
#include "cmSystemTools.h"
|
#include "cmSystemTools.h"
|
||||||
|
|
||||||
#include "cmConfigure.h"
|
|
||||||
|
|
||||||
cmScriptGenerator::cmScriptGenerator(
|
cmScriptGenerator::cmScriptGenerator(
|
||||||
const std::string& config_var,
|
const std::string& config_var,
|
||||||
std::vector<std::string> const& configurations)
|
std::vector<std::string> const& configurations)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmScriptGenerator_h
|
#ifndef cmScriptGenerator_h
|
||||||
#define cmScriptGenerator_h
|
#define cmScriptGenerator_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -47,6 +47,8 @@ inline std::ostream& operator<<(std::ostream& os,
|
|||||||
*/
|
*/
|
||||||
class cmScriptGenerator
|
class cmScriptGenerator
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmScriptGenerator)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmScriptGenerator(const std::string& config_var,
|
cmScriptGenerator(const std::string& config_var,
|
||||||
std::vector<std::string> const& configurations);
|
std::vector<std::string> const& configurations);
|
||||||
@ -87,9 +89,6 @@ protected:
|
|||||||
bool ActionsPerConfig;
|
bool ActionsPerConfig;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmScriptGenerator(cmScriptGenerator const&);
|
|
||||||
cmScriptGenerator& operator=(cmScriptGenerator const&);
|
|
||||||
|
|
||||||
void GenerateScriptActionsOnce(std::ostream& os, Indent indent);
|
void GenerateScriptActionsOnce(std::ostream& os, Indent indent);
|
||||||
void GenerateScriptActionsPerConfig(std::ostream& os, Indent indent);
|
void GenerateScriptActionsPerConfig(std::ostream& os, Indent indent);
|
||||||
};
|
};
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmSystemTools_h
|
#ifndef cmSystemTools_h
|
||||||
#define cmSystemTools_h
|
#define cmSystemTools_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include "cmProcessOutput.h"
|
#include "cmProcessOutput.h"
|
||||||
#include "cmsys/Process.h"
|
#include "cmsys/Process.h"
|
||||||
@ -379,14 +379,12 @@ public:
|
|||||||
original environment. */
|
original environment. */
|
||||||
class SaveRestoreEnvironment
|
class SaveRestoreEnvironment
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(SaveRestoreEnvironment)
|
||||||
public:
|
public:
|
||||||
SaveRestoreEnvironment();
|
SaveRestoreEnvironment();
|
||||||
~SaveRestoreEnvironment();
|
~SaveRestoreEnvironment();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SaveRestoreEnvironment(SaveRestoreEnvironment const&);
|
|
||||||
SaveRestoreEnvironment& operator=(SaveRestoreEnvironment const&);
|
|
||||||
|
|
||||||
std::vector<std::string> Env;
|
std::vector<std::string> Env;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmTestGenerator_h
|
#ifndef cmTestGenerator_h
|
||||||
#define cmTestGenerator_h
|
#define cmTestGenerator_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include "cmScriptGenerator.h"
|
#include "cmScriptGenerator.h"
|
||||||
|
|
||||||
@ -20,6 +20,8 @@ class cmTest;
|
|||||||
*/
|
*/
|
||||||
class cmTestGenerator : public cmScriptGenerator
|
class cmTestGenerator : public cmScriptGenerator
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmTestGenerator)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmTestGenerator(cmTest* test,
|
cmTestGenerator(cmTest* test,
|
||||||
std::vector<std::string> const& configurations =
|
std::vector<std::string> const& configurations =
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#ifndef cmXMLWiter_h
|
#ifndef cmXMLWiter_h
|
||||||
#define cmXMLWiter_h
|
#define cmXMLWiter_h
|
||||||
|
|
||||||
#include "cmConfigure.h" // IWYU pragma: keep
|
#include "cmConfigure.h"
|
||||||
|
|
||||||
#include "cmXMLSafe.h"
|
#include "cmXMLSafe.h"
|
||||||
|
|
||||||
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
class cmXMLWriter
|
class cmXMLWriter
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmXMLWriter)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmXMLWriter(std::ostream& output, std::size_t level = 0);
|
cmXMLWriter(std::ostream& output, std::size_t level = 0);
|
||||||
~cmXMLWriter();
|
~cmXMLWriter();
|
||||||
@ -63,9 +65,6 @@ public:
|
|||||||
void SetIndentationElement(std::string const& element);
|
void SetIndentationElement(std::string const& element);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmXMLWriter(const cmXMLWriter&);
|
|
||||||
cmXMLWriter& operator=(const cmXMLWriter&);
|
|
||||||
|
|
||||||
void ConditionalLineBreak(bool condition, std::size_t indent);
|
void ConditionalLineBreak(bool condition, std::size_t indent);
|
||||||
|
|
||||||
void PreAttribute();
|
void PreAttribute();
|
||||||
|
@ -55,6 +55,8 @@ struct cmDocumentationEntry;
|
|||||||
|
|
||||||
class cmake
|
class cmake
|
||||||
{
|
{
|
||||||
|
CM_DISABLE_COPY(cmake)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum MessageType
|
enum MessageType
|
||||||
{
|
{
|
||||||
@ -460,8 +462,6 @@ protected:
|
|||||||
cmVariableWatch* VariableWatch;
|
cmVariableWatch* VariableWatch;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmake(const cmake&); // Not implemented.
|
|
||||||
void operator=(const cmake&); // Not implemented.
|
|
||||||
ProgressCallbackType ProgressCallback;
|
ProgressCallbackType ProgressCallback;
|
||||||
void* ProgressCallbackClientData;
|
void* ProgressCallbackClientData;
|
||||||
bool InTryCompile;
|
bool InTryCompile;
|
||||||
|
Loading…
Reference in New Issue
Block a user