diff options
author | Kitware Robot <kwrobot@kitware.com> | 2016-05-16 14:34:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-16 20:05:19 (GMT) |
commit | d9fd2f5402eeaa345691313658e02b51038f570b (patch) | |
tree | dca71b9a7e267f4c6300da3eb770415381726785 /Source/cmExtraSublimeTextGenerator.h | |
parent | 82df6deaafb36cbbfd450202bb20b320f637751a (diff) | |
download | CMake-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/cmExtraSublimeTextGenerator.h')
-rw-r--r-- | Source/cmExtraSublimeTextGenerator.h | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/Source/cmExtraSublimeTextGenerator.h b/Source/cmExtraSublimeTextGenerator.h index cf31ee0..6efec7a 100644 --- a/Source/cmExtraSublimeTextGenerator.h +++ b/Source/cmExtraSublimeTextGenerator.h @@ -31,29 +31,31 @@ public: cmExtraSublimeTextGenerator(); virtual std::string GetName() const - { return cmExtraSublimeTextGenerator::GetActualName();} - static std::string GetActualName() - { return "Sublime Text 2";} + { + return cmExtraSublimeTextGenerator::GetActualName(); + } + static std::string GetActualName() { return "Sublime Text 2"; } static cmExternalMakefileProjectGenerator* New() - { return new cmExtraSublimeTextGenerator; } + { + return new cmExtraSublimeTextGenerator; + } /** Get the documentation entry for this generator. */ virtual void GetDocumentation(cmDocumentationEntry& entry, const std::string& fullName) const; virtual void Generate(); -private: +private: void CreateProjectFile(const std::vector<cmLocalGenerator*>& lgs); void CreateNewProjectFile(const std::vector<cmLocalGenerator*>& lgs, - const std::string& filename); + const std::string& filename); /** Appends all targets as build systems to the project file and get all * include directories and compiler definitions used. */ void AppendAllTargets(const std::vector<cmLocalGenerator*>& lgs, - const cmMakefile* mf, - cmGeneratedFileStream& fout, + const cmMakefile* mf, cmGeneratedFileStream& fout, MapSourceFileFlags& sourceFileFlags); /** Returns the build command that needs to be executed to build the * specified target. @@ -63,24 +65,20 @@ private: /** Appends the specified target to the generated project file as a Sublime * Text build system. */ - void AppendTarget(cmGeneratedFileStream& fout, - const std::string& targetName, - cmLocalGenerator* lg, - cmGeneratorTarget* target, - const char* make, - const cmMakefile* makefile, - const char* compiler, - MapSourceFileFlags& sourceFileFlags, bool firstTarget); + void AppendTarget(cmGeneratedFileStream& fout, const std::string& targetName, + cmLocalGenerator* lg, cmGeneratorTarget* target, + const char* make, const cmMakefile* makefile, + const char* compiler, MapSourceFileFlags& sourceFileFlags, + bool firstTarget); /** * Compute the flags for compilation of object files for a given @a language. * @note Generally it is the value of the variable whose name is computed * by LanguageFlagsVarName(). */ - std::string ComputeFlagsForObject(cmSourceFile *source, - cmLocalGenerator* lg, + std::string ComputeFlagsForObject(cmSourceFile* source, cmLocalGenerator* lg, cmGeneratorTarget* gtgt); - std::string ComputeDefines(cmSourceFile *source, cmLocalGenerator* lg, + std::string ComputeDefines(cmSourceFile* source, cmLocalGenerator* lg, cmGeneratorTarget* gtgt); }; |