summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardLexer.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-01-22 15:33:22 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2021-01-27 13:45:44 (GMT)
commitc826461d9cd5d7a6cb32a09ccc44f9e2f3dd9dce (patch)
treefd692d5b557cea163005598b0c541b79a1c57069 /Source/cmStandardLexer.h
parent675d81be6c728d21b78314f763ba060855b1366b (diff)
downloadCMake-c826461d9cd5d7a6cb32a09ccc44f9e2f3dd9dce.zip
CMake-c826461d9cd5d7a6cb32a09ccc44f9e2f3dd9dce.tar.gz
CMake-c826461d9cd5d7a6cb32a09ccc44f9e2f3dd9dce.tar.bz2
clang-tidy: fix `bugprone-reserved-identifier` warnings
Diffstat (limited to 'Source/cmStandardLexer.h')
-rw-r--r--Source/cmStandardLexer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmStandardLexer.h b/Source/cmStandardLexer.h
index 0203779..2689ba1 100644
--- a/Source/cmStandardLexer.h
+++ b/Source/cmStandardLexer.h
@@ -4,18 +4,22 @@
#if defined(__linux)
/* Needed for glibc < 2.12 */
+// NOLINTNEXTLINE(bugprone-reserved-identifier)
# define _XOPEN_SOURCE 600
#endif
#if !defined(_WIN32) && !defined(__sun)
/* POSIX APIs are needed */
+// NOLINTNEXTLINE(bugprone-reserved-identifier)
# define _POSIX_C_SOURCE 200809L
#endif
#if defined(__sun) && defined(__GNUC__) && !defined(__cplusplus)
/* C sources: for fileno and strdup */
+// NOLINTNEXTLINE(bugprone-reserved-identifier)
# define _XOPEN_SOURCE 600
#endif
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
/* For isascii */
+// NOLINTNEXTLINE(bugprone-reserved-identifier)
# define _XOPEN_SOURCE 700
#endif