diff mbox

[2/3] scripts/clean-includes: Ignore .inc.c files

Message ID 1456238983-10160-3-git-send-email-peter.maydell@linaro.org
State New
Headers show

Commit Message

Peter Maydell Feb. 23, 2016, 2:49 p.m. UTC
Ignore files which have a .inc.c extension -- these are not headers
but they are not standalone C source files either, so we can't make
any automated decisions about what #include directives they should
have.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 scripts/clean-includes | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Eric Blake Feb. 23, 2016, 3:10 p.m. UTC | #1
On 02/23/2016 07:49 AM, Peter Maydell wrote:
> Ignore files which have a .inc.c extension -- these are not headers
> but they are not standalone C source files either, so we can't make
> any automated decisions about what #include directives they should
> have.
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>  scripts/clean-includes | 5 +++++
>  1 file changed, 5 insertions(+)

Reviewed-by: Eric Blake <eblake@redhat.com>

> 
> diff --git a/scripts/clean-includes b/scripts/clean-includes
> index 8a3f398..177d253 100755
> --- a/scripts/clean-includes
> +++ b/scripts/clean-includes
> @@ -94,6 +94,11 @@ EOT
>  
>  for f in "$@"; do
>    case "$f" in
> +    *.inc.c)
> +      # These aren't standalone C source files
> +      echo "SKIPPING $f (not a standalone source file)"
> +      continue
> +      ;;
>      *.c)
>        MODE=c
>        ;;
>
diff mbox

Patch

diff --git a/scripts/clean-includes b/scripts/clean-includes
index 8a3f398..177d253 100755
--- a/scripts/clean-includes
+++ b/scripts/clean-includes
@@ -94,6 +94,11 @@  EOT
 
 for f in "$@"; do
   case "$f" in
+    *.inc.c)
+      # These aren't standalone C source files
+      echo "SKIPPING $f (not a standalone source file)"
+      continue
+      ;;
     *.c)
       MODE=c
       ;;