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/cmExtraEclipseCDT4Generator.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/cmExtraEclipseCDT4Generator.h')
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.h | 62 |
1 files changed, 30 insertions, 32 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.h b/Source/cmExtraEclipseCDT4Generator.h index 26955ef..0cef071 100644 --- a/Source/cmExtraEclipseCDT4Generator.h +++ b/Source/cmExtraEclipseCDT4Generator.h @@ -26,24 +26,31 @@ class cmSourceGroup; class cmExtraEclipseCDT4Generator : public cmExternalMakefileProjectGenerator { public: - enum LinkType {VirtualFolder, LinkToFolder, LinkToFile }; + enum LinkType + { + VirtualFolder, + LinkToFolder, + LinkToFile + }; cmExtraEclipseCDT4Generator(); - static cmExternalMakefileProjectGenerator* New() { + static cmExternalMakefileProjectGenerator* New() + { return new cmExtraEclipseCDT4Generator; } - virtual std::string GetName() const { + virtual std::string GetName() const + { return cmExtraEclipseCDT4Generator::GetActualName(); } static std::string GetActualName() { return "Eclipse CDT4"; } virtual void GetDocumentation(cmDocumentationEntry& entry, - const std::string& fullName) const; + const std::string& fullName) const; virtual void EnableLanguage(std::vector<std::string> const& languages, - cmMakefile *, bool optional); + cmMakefile*, bool optional); virtual void Generate(); @@ -71,32 +78,24 @@ private: // Helper functions static void AppendStorageScanners(cmXMLWriter& xml, const cmMakefile& makefile); - static void AppendTarget (cmXMLWriter& xml, - const std::string& target, - const std::string& make, - const std::string& makeArguments, - const std::string& path, - const char* prefix = "", - const char* makeTarget = NULL); - static void AppendScannerProfile (cmXMLWriter& xml, - const std::string& profileID, - bool openActionEnabled, - const std::string& openActionFilePath, - bool pParserEnabled, - const std::string& scannerInfoProviderID, - const std::string& runActionArguments, - const std::string& runActionCommand, - bool runActionUseDefault, - bool sipParserEnabled); - - static void AppendLinkedResource (cmXMLWriter& xml, - const std::string& name, - const std::string& path, - LinkType linkType); - - static void AppendIncludeDirectories(cmXMLWriter& xml, - const std::vector<std::string>& includeDirs, - std::set<std::string>& emittedDirs); + static void AppendTarget(cmXMLWriter& xml, const std::string& target, + const std::string& make, + const std::string& makeArguments, + const std::string& path, const char* prefix = "", + const char* makeTarget = NULL); + static void AppendScannerProfile( + cmXMLWriter& xml, const std::string& profileID, bool openActionEnabled, + const std::string& openActionFilePath, bool pParserEnabled, + const std::string& scannerInfoProviderID, + const std::string& runActionArguments, const std::string& runActionCommand, + bool runActionUseDefault, bool sipParserEnabled); + + static void AppendLinkedResource(cmXMLWriter& xml, const std::string& name, + const std::string& path, LinkType linkType); + + static void AppendIncludeDirectories( + cmXMLWriter& xml, const std::vector<std::string>& includeDirs, + std::set<std::string>& emittedDirs); static void AddEnvVar(std::ostream& out, const char* envVar, cmLocalGenerator* lg); @@ -118,7 +117,6 @@ private: bool SupportsMachO64Parser; bool CEnabled; bool CXXEnabled; - }; #endif |