summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.h
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2016-05-16 14:34:04 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-16 20:05:19 (GMT)
commitd9fd2f5402eeaa345691313658e02b51038f570b (patch)
treedca71b9a7e267f4c6300da3eb770415381726785 /Source/cmLocalVisualStudio7Generator.h
parent82df6deaafb36cbbfd450202bb20b320f637751a (diff)
downloadCMake-d9fd2f5402eeaa345691313658e02b51038f570b.zip
CMake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.gz
CMake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.bz2
Revise C++ coding style using clang-format
Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.h')
-rw-r--r--Source/cmLocalVisualStudio7Generator.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.h b/Source/cmLocalVisualStudio7Generator.h
index 5d9a634..6d1d0fb 100644
--- a/Source/cmLocalVisualStudio7Generator.h
+++ b/Source/cmLocalVisualStudio7Generator.h
@@ -20,7 +20,6 @@ class cmSourceFile;
class cmCustomCommand;
class cmSourceGroup;
-
class cmLocalVisualStudio7GeneratorOptions;
class cmLocalVisualStudio7GeneratorFCInfo;
class cmLocalVisualStudio7GeneratorInternals;
@@ -46,26 +45,34 @@ public:
*/
virtual void Generate();
- enum BuildType {STATIC_LIBRARY, DLL, EXECUTABLE, WIN32_EXECUTABLE, UTILITY};
+ enum BuildType
+ {
+ STATIC_LIBRARY,
+ DLL,
+ EXECUTABLE,
+ WIN32_EXECUTABLE,
+ UTILITY
+ };
/**
* Specify the type of the build: static, dll, or executable.
*/
- void SetBuildType(BuildType,const std::string& name);
+ void SetBuildType(BuildType, const std::string& name);
- virtual
- std::string GetTargetDirectory(cmGeneratorTarget const* target) const;
+ virtual std::string GetTargetDirectory(
+ cmGeneratorTarget const* target) const;
cmSourceFile* CreateVCProjBuildRule();
void WriteStampFiles();
- virtual std::string
- ComputeLongestObjectDirectory(cmGeneratorTarget const*) const;
+ virtual std::string ComputeLongestObjectDirectory(
+ cmGeneratorTarget const*) const;
virtual void ReadAndStoreExternalGUID(const std::string& name,
const char* path);
virtual void AddCMakeListsRules();
+
protected:
- void CreateSingleVCProj(const std::string& lname,
- cmGeneratorTarget *tgt);
+ void CreateSingleVCProj(const std::string& lname, cmGeneratorTarget* tgt);
+
private:
typedef cmVisualStudioGeneratorOptions Options;
typedef cmLocalVisualStudio7GeneratorFCInfo FCInfo;
@@ -75,15 +82,14 @@ private:
void WriteProjectFiles();
void WriteVCProjHeader(std::ostream& fout, const std::string& libName,
cmGeneratorTarget* tgt,
- std::vector<cmSourceGroup> &sgs);
+ std::vector<cmSourceGroup>& sgs);
void WriteVCProjFooter(std::ostream& fout, cmGeneratorTarget* target);
void WriteVCProjFile(std::ostream& fout, const std::string& libName,
cmGeneratorTarget* tgt);
void WriteConfigurations(std::ostream& fout,
std::vector<std::string> const& configs,
const std::string& libName, cmGeneratorTarget* tgt);
- void WriteConfiguration(std::ostream& fout,
- const std::string& configName,
+ void WriteConfiguration(std::ostream& fout, const std::string& configName,
const std::string& libName, cmGeneratorTarget* tgt);
std::string EscapeForXML(const std::string& s);
std::string ConvertToXMLOutputPath(const char* path);
@@ -98,28 +104,24 @@ private:
cmGeneratorTarget* target);
void OutputLibraryDirectories(std::ostream& fout,
std::vector<std::string> const& dirs);
- void WriteProjectSCC(std::ostream& fout, cmGeneratorTarget *target);
+ void WriteProjectSCC(std::ostream& fout, cmGeneratorTarget* target);
void WriteProjectStart(std::ostream& fout, const std::string& libName,
cmGeneratorTarget* tgt,
- std::vector<cmSourceGroup> &sgs);
+ std::vector<cmSourceGroup>& sgs);
void WriteProjectStartFortran(std::ostream& fout, const std::string& libName,
cmGeneratorTarget* tgt);
- void WriteVCProjBeginGroup(std::ostream& fout,
- const char* group,
- const char* filter);
+ void WriteVCProjBeginGroup(std::ostream& fout, const char* group,
+ const char* filter);
void WriteVCProjEndGroup(std::ostream& fout);
void WriteCustomRule(std::ostream& fout,
std::vector<std::string> const& configs,
- const char* source,
- const cmCustomCommand& command,
+ const char* source, const cmCustomCommand& command,
FCInfo& fcinfo);
- void WriteTargetVersionAttribute(std::ostream& fout,
- cmGeneratorTarget* gt);
+ void WriteTargetVersionAttribute(std::ostream& fout, cmGeneratorTarget* gt);
- bool WriteGroup(const cmSourceGroup *sg,
- cmGeneratorTarget* target, std::ostream &fout,
- const std::string& libName,
+ bool WriteGroup(const cmSourceGroup* sg, cmGeneratorTarget* target,
+ std::ostream& fout, const std::string& libName,
std::vector<std::string> const& configs);
friend class cmLocalVisualStudio7GeneratorFCInfo;
@@ -134,6 +136,4 @@ private:
cmLocalVisualStudio7GeneratorInternals* Internal;
};
-
#endif
-