summaryrefslogtreecommitdiff
path: root/Source/cmListFileLexer.h
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-09-04 18:44:53 +0200
committerRegina Pfeifer <regina@mailbox.org>2019-09-04 19:47:30 +0200
commit1d3f5ebb0d3da35d1b5b1287f39115b188ac5f6a (patch)
treed415e3127af9ca8a33117d29d79cbf0759d1c3a2 /Source/cmListFileLexer.h
parenta1ddf2d0ba6268e29a9456948828f59d044791f1 (diff)
downloadcmake-1d3f5ebb0d3da35d1b5b1287f39115b188ac5f6a.tar.gz
clang-tidy: Enable check modernize-use-using
Annotate the remaining typedefs with NOLINT. Unfortunately, clang-tidy is not smart enough and suggests the use of using inside extern "C" blocks.
Diffstat (limited to 'Source/cmListFileLexer.h')
-rw-r--r--Source/cmListFileLexer.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmListFileLexer.h b/Source/cmListFileLexer.h
index 8962396fd3..ec6b3cd77f 100644
--- a/Source/cmListFileLexer.h
+++ b/Source/cmListFileLexer.h
@@ -3,6 +3,11 @@
#ifndef cmListFileLexer_h
#define cmListFileLexer_h
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* NOLINTNEXTLINE(modernize-use-using) */
typedef enum cmListFileLexer_Type_e
{
cmListFileLexer_Token_None,
@@ -20,6 +25,7 @@ typedef enum cmListFileLexer_Type_e
cmListFileLexer_Token_BadString
} cmListFileLexer_Type;
+/* NOLINTNEXTLINE(modernize-use-using) */
typedef struct cmListFileLexer_Token_s cmListFileLexer_Token;
struct cmListFileLexer_Token_s
{
@@ -40,14 +46,13 @@ enum cmListFileLexer_BOM_e
cmListFileLexer_BOM_UTF32BE,
cmListFileLexer_BOM_UTF32LE
};
+
+/* NOLINTNEXTLINE(modernize-use-using) */
typedef enum cmListFileLexer_BOM_e cmListFileLexer_BOM;
+/* NOLINTNEXTLINE(modernize-use-using) */
typedef struct cmListFileLexer_s cmListFileLexer;
-#ifdef __cplusplus
-extern "C" {
-#endif
-
cmListFileLexer* cmListFileLexer_New(void);
int cmListFileLexer_SetFileName(cmListFileLexer*, const char*,
cmListFileLexer_BOM* bom);