mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
3af8c7715b
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit 8ef62b289e0a99856893ef49106c2b2d94e9dd0c (master).
Upstream Shortlog
-----------------
Brad King (2):
6b9c233c clang-format.bash: update to clang-format-6.0
b7a341cf Empty commit at end of history preceding clang-format-6.0 style transition
Kitware Robot (1):
828b6837 Revise C++ coding style using clang-format-6.0
31 lines
637 B
C++
31 lines
637 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;
|
|
}
|