mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit be3c441e46e091a7606565221bb5ae7c9a9b684f (master).
Upstream Shortlog
-----------------
Brad King (4):
6c66ba9e clang-format.bash: Use generic clang-format attribute
82ae3f28 clang-format.bash: update to clang-format-15
a61d0ad6 Empty commit at end of history preceding clang-format-15 style transition
3cb35bf3 CONTRIBUTING: Update documented clang-format version to 15
Kitware Robot (1):
f685d817 Revise C++ coding style using clang-format-15
Sean McBride (1):
d6c6fd82 testDirectory: Rename functions to fix -Wreserved-identifier warnings
31 lines
636 B
C++
31 lines
636 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
|
|
#include "kwsysPrivate.h"
|
|
#include KWSYS_HEADER(Configure.hxx)
|
|
|
|
// Work-around CMake dependency scanning limitation. This must
|
|
// duplicate the above list of headers.
|
|
#if 0
|
|
# include "Configure.hxx.in"
|
|
#endif
|
|
|
|
static bool testFallthrough(int n)
|
|
{
|
|
int r = 0;
|
|
switch (n) {
|
|
case 1:
|
|
++r;
|
|
KWSYS_FALLTHROUGH;
|
|
default:
|
|
++r;
|
|
}
|
|
return r == 2;
|
|
}
|
|
|
|
int testConfigure(int, char*[])
|
|
{
|
|
bool res = true;
|
|
res = testFallthrough(1) && res;
|
|
return res ? 0 : 1;
|
|
}
|