From: Eugene Syromiatnikov Date: Thu, 24 Jul 2025 15:40:21 +0000 (+0200) Subject: Call ctags on *.inc files as well X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=2c59dc90295dc39cf89c90d848dd969616b66dc6;p=thirdparty%2Fopenssl.git 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 Signed-off-by: Eugene Syromiatnikov Reviewed-by: Saša Nedvědický Reviewed-by: Matt Caswell Reviewed-by: Paul Dale Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/28059) --- diff --git a/.ctags.d/langmap.ctags b/.ctags.d/langmap.ctags new file mode 100644 index 0000000000..ef431ba2e4 --- /dev/null +++ b/.ctags.d/langmap.ctags @@ -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 diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 7ebca833f1..b13fb5dd48 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -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 || \