summaryrefslogtreecommitdiffstats
path: root/.ctags.d
diff options
context:
space:
mode:
authorMasatake YAMATO <yamato@redhat.com>2023-01-17 13:59:51 +0900
committerTomas Mraz <tomas@openssl.org>2023-05-18 13:29:43 +0200
commit859521e57970027c2ec763928753a1e5f843cf69 (patch)
tree576fa30f92713261b210e33969a9b4433f893418 /.ctags.d
parent26cf0767a71743de00cd20f90526052358d67d03 (diff)
util/ctags.sh: a script for generating tags file with expanding macros
This script requires Universal Ctags 6.0.0 or newer. Usage: ./util/ctags.sh [...options passed to ctags...] Fixing #10251 Running the script in "tags" make target is suggested by Dmitry Belyavskiy <beldmit@gmail.com>. The falling back action for running older ctags if u-ctags 6 is not available is suggested by Dr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>. Signed-off-by: Masatake YAMATO <yamato@redhat.com> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20960)
Diffstat (limited to '.ctags.d')
-rw-r--r--.ctags.d/add-dir.ctags11
-rw-r--r--.ctags.d/exclude.ctags13
-rw-r--r--.ctags.d/openssl-stage1/10extrac-macrodefs.ctags18
-rw-r--r--.ctags.d/openssl-stage2/.gitignore1
-rw-r--r--.ctags.d/openssl-stage2/10expand-macros.ctags9
5 files changed, 52 insertions, 0 deletions
diff --git a/.ctags.d/add-dir.ctags b/.ctags.d/add-dir.ctags
new file mode 100644
index 0000000000..ec20b51bd4
--- /dev/null
+++ b/.ctags.d/add-dir.ctags
@@ -0,0 +1,11 @@
+#
+# Copyright 2023 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
+#
+
+# Allow ctags to load configuration file under the sub directories.
+--optlib-dir=+./.ctags.d
diff --git a/.ctags.d/exclude.ctags b/.ctags.d/exclude.ctags
new file mode 100644
index 0000000000..c932464e6d
--- /dev/null
+++ b/.ctags.d/exclude.ctags
@@ -0,0 +1,13 @@
+#
+# Copyright 2023 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
+#
+
+# List file names or patterns you want ctags to ignore.
+--exclude=.ctags.d
+--exclude=test
+--exclude=check-format-test-positives.c
diff --git a/.ctags.d/openssl-stage1/10extrac-macrodefs.ctags b/.ctags.d/openssl-stage1/10extrac-macrodefs.ctags
new file mode 100644
index 0000000000..ddd4fd54bd
--- /dev/null
+++ b/.ctags.d/openssl-stage1/10extrac-macrodefs.ctags
@@ -0,0 +1,18 @@
+#
+# Copyright 2023 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
+#
+
+# This file is only for extracting macro definitions.
+--langmap=C:+.h
+-o -
+--sort=no
+--languages=C
+-R
+
+--fields-C=+{macrodef}
+--fields=+{signature}
diff --git a/.ctags.d/openssl-stage2/.gitignore b/.ctags.d/openssl-stage2/.gitignore
new file mode 100644
index 0000000000..d21d3ad57d
--- /dev/null
+++ b/.ctags.d/openssl-stage2/.gitignore
@@ -0,0 +1 @@
+*macro-definitons.ctags
diff --git a/.ctags.d/openssl-stage2/10expand-macros.ctags b/.ctags.d/openssl-stage2/10expand-macros.ctags
new file mode 100644
index 0000000000..5cf5000df3
--- /dev/null
+++ b/.ctags.d/openssl-stage2/10expand-macros.ctags
@@ -0,0 +1,9 @@
+#
+# Copyright 2023 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
+#
+--param-CPreProcessor._expand=1