From a5f98df778ceba5c04805f5b7d109e2fc26ebfec Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Thu, 27 Jul 2023 17:38:54 -0400 Subject: Source: Fix mysterious new IWYU warnings --- Source/CPack/cmCPackSTGZGenerator.cxx | 2 ++ Source/LexerParser/cmCTestResourceGroupsLexer.cxx | 4 ++++ Source/LexerParser/cmCTestResourceGroupsLexer.in.l | 4 ++++ Utilities/IWYU/mapping.imp | 4 ++++ 4 files changed, 14 insertions(+) diff --git a/Source/CPack/cmCPackSTGZGenerator.cxx b/Source/CPack/cmCPackSTGZGenerator.cxx index 6ad3755..1248d17 100644 --- a/Source/CPack/cmCPackSTGZGenerator.cxx +++ b/Source/CPack/cmCPackSTGZGenerator.cxx @@ -7,6 +7,8 @@ #include #include +#include + #include "cmsys/FStream.hxx" #include "cm_sys_stat.h" diff --git a/Source/LexerParser/cmCTestResourceGroupsLexer.cxx b/Source/LexerParser/cmCTestResourceGroupsLexer.cxx index 85b379b..f1d351a 100644 --- a/Source/LexerParser/cmCTestResourceGroupsLexer.cxx +++ b/Source/LexerParser/cmCTestResourceGroupsLexer.cxx @@ -667,6 +667,10 @@ Modify cmCTestResourceGroupsLexer.cxx: #include +#ifndef _WIN32 +# include +#endif + /*--------------------------------------------------------------------------*/ #define INITIAL 0 diff --git a/Source/LexerParser/cmCTestResourceGroupsLexer.in.l b/Source/LexerParser/cmCTestResourceGroupsLexer.in.l index 2befa85..ac9cbaf 100644 --- a/Source/LexerParser/cmCTestResourceGroupsLexer.in.l +++ b/Source/LexerParser/cmCTestResourceGroupsLexer.in.l @@ -26,6 +26,10 @@ Modify cmCTestResourceGroupsLexer.cxx: #include +#ifndef _WIN32 +# include +#endif + /*--------------------------------------------------------------------------*/ %} diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp index e45970d..6056030 100644 --- a/Utilities/IWYU/mapping.imp +++ b/Utilities/IWYU/mapping.imp @@ -75,6 +75,10 @@ { include: [ "", public, "\"cmsys/FStream.hxx\"", public ] }, { include: [ "", public, "\"cmsys/FStream.hxx\"", public ] }, + { symbol: [ "mode_t", private, "\"cm_sys_stat.h\"", public ] }, + { symbol: [ "S_IWUSR", private, "\"cm_sys_stat.h\"", public ] }, + { symbol: [ "S_IWGRP", private, "\"cm_sys_stat.h\"", public ] }, + { include: [ "", public, "", public ] }, { include: [ "", public, "", public ] }, { include: [ "", public, "", public ] }, -- cgit v0.12