Call ctags on *.inc files as well

There are some *.inc already in the repository, mostly in demos/tests
and related to some algorithm implementations.  Introduction
of array_alloc.inc has made including these files in the tags generation
even more pertinent, so they are included now.

Also, this commit explicitly marks *.h files as containing C code,
overriding universal-ctags default of interpreting them as C++/ObjectiveC
ones.

Suggested-by: Neil Horman <nhorman@openssl.org>
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28059)
This commit is contained in:
Eugene Syromiatnikov 2025-07-24 17:40:21 +02:00 committed by Neil Horman
parent 14737252a1
commit 2c59dc9029
2 changed files with 12 additions and 1 deletions

11
.ctags.d/langmap.ctags Normal file
View File

@ -0,0 +1,11 @@
#
# Copyright 2025 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
#
--langmap=C:+.h
--langmap=C:+.inc

View File

@ -1422,7 +1422,7 @@ test_ordinals:
tags TAGS: FORCE build_generated
rm -f TAGS tags
-( cd $(SRCDIR); util/ctags.sh )
-etags `find . -name '*.[ch]' -o -name '*.pm'`
-etags `find . -name '*.[ch]' -o -name '*.pm' -o -name '*.inc'`
providers/fips.checksum.new: providers/fips.module.sources.new
@which unifdef > /dev/null || \