summaryrefslogtreecommitdiffstats
path: root/Tests/SBCS
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 /Tests/SBCS
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 'Tests/SBCS')
-rw-r--r--Tests/SBCS/SBCS.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/Tests/SBCS/SBCS.cxx b/Tests/SBCS/SBCS.cxx
index 6ce2c9f..68c2283 100644
--- a/Tests/SBCS/SBCS.cxx
+++ b/Tests/SBCS/SBCS.cxx
@@ -1,21 +1,22 @@
-// Test to verify that _SBCS being defined causes CharacterSet to be set to 0 (Single Byte Character Set)
+// Test to verify that _SBCS being defined causes CharacterSet to be set to 0
+// (Single Byte Character Set)
-int main ()
+int main()
{
#ifdef _UNICODE
- bool UnicodeSet=true;
+ bool UnicodeSet = true;
#else
- bool UnicodeSet=false;
+ bool UnicodeSet = false;
#endif
#ifdef _MBCS
- bool MBCSSet=true;
+ bool MBCSSet = true;
#else
- bool MBCSSet=false;
+ bool MBCSSet = false;
#endif
// if neither _UNICODE nor _MBCS is set, CharacterSet must be set to SBCS.
- bool SBCSSet=(!UnicodeSet && !MBCSSet);
+ bool SBCSSet = (!UnicodeSet && !MBCSSet);
// Reverse boolean to indicate error case correctly
return !SBCSSet;