]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Call ctags on *.inc files as well
authorEugene Syromiatnikov <esyr@openssl.org>
Thu, 24 Jul 2025 15:40:21 +0000 (17:40 +0200)
committerNeil Horman <nhorman@openssl.org>
Fri, 8 Aug 2025 16:22:10 +0000 (12:22 -0400)
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)

.ctags.d/langmap.ctags [new file with mode: 0644]
Configurations/unix-Makefile.tmpl

diff --git a/.ctags.d/langmap.ctags b/.ctags.d/langmap.ctags
new file mode 100644 (file)
index 0000000..ef431ba
--- /dev/null
@@ -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
index 7ebca833f17d4389a43f8678c85115156d6e3989..b13fb5dd4806efacf56bc025e055028d6506658d 100644 (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 || \