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/cmXMLParser.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/cmXMLParser.h')
-rw-r--r-- | Source/cmXMLParser.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/Source/cmXMLParser.h b/Source/cmXMLParser.h index e72da66..6aae81d 100644 --- a/Source/cmXMLParser.h +++ b/Source/cmXMLParser.h @@ -14,11 +14,10 @@ #include "cmStandardIncludes.h" -extern "C" -{ - void cmXMLParserStartElement(void*, const char*, const char**); - void cmXMLParserEndElement(void*, const char*); - void cmXMLParserCharacterDataHandler(void*, const char*, int); +extern "C" { +void cmXMLParserStartElement(void*, const char*, const char**); +void cmXMLParserEndElement(void*, const char*); +void cmXMLParserCharacterDataHandler(void*, const char*, int); } /** \class cmXMLParser @@ -52,18 +51,19 @@ public: virtual int CleanupParser(); typedef void (*ReportFunction)(int, const char*, void*); void SetErrorCallback(ReportFunction f, void* d) - { - this->ReportCallback = f; - this->ReportCallbackData = d; - } + { + this->ReportCallback = f; + this->ReportCallbackData = d; + } + protected: //! This variable is true if there was a parse error while parsing in - //chunks. + // chunks. int ParseError; ReportFunction ReportCallback; void* ReportCallbackData; - //1 Expat parser structure. Exists only during call to Parse(). + // 1 Expat parser structure. Exists only during call to Parse(). void* Parser; /** @@ -84,7 +84,7 @@ protected: virtual void StartElement(const std::string& name, const char** atts); //! Called at the end of an element in the XML source opened when - //StartElement was called. + // StartElement was called. virtual void EndElement(const std::string& name); //! Called when there is character data to handle. @@ -101,8 +101,7 @@ protected: static int IsSpace(char c); //! Send the given buffer to the XML parser. - virtual int ParseBuffer(const char* buffer, - std::string::size_type length); + virtual int ParseBuffer(const char* buffer, std::string::size_type length); //! Send the given c-style string to the XML parser. int ParseBuffer(const char* buffer); |