diff mbox series

[pushed] c++: include libcody in TAGS

Message ID 20241111235604.54049-1-jason@redhat.com
State New
Headers show
Series [pushed] c++: include libcody in TAGS | expand

Commit Message

Jason Merrill Nov. 11, 2024, 11:55 p.m. UTC
Tested x86_64-pc-linux-gnu, applying to trunk.

-- 8< --

The C++ front-end uses symbols from these directories, so they should also
be in TAGS.

gcc/cp/ChangeLog:

	* Make-lang.in: Also collect tags from libcody and c++tools.
---
 gcc/cp/Make-lang.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


base-commit: e3de2962cbac3fc7f1d7c6d0205a62e68f3f4b3a
diff mbox series

Patch

diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
index fb7ae59d9d4..9ec86aac964 100644
--- a/gcc/cp/Make-lang.in
+++ b/gcc/cp/Make-lang.in
@@ -232,8 +232,9 @@  c++.srcinfo:
 c++.srcextra:
 
 c++.tags: force
-	cd $(srcdir)/cp; $(ETAGS) -o TAGS.sub *.cc *.h --language=none \
-	  --regex='/DEFTREECODE [(]\([A-Z_]+\)/\1/' cp-tree.def; \
+	cd $(srcdir)/cp; $(ETAGS) -o TAGS.sub *.cc *.h \
+	  ../../libcody/*.cc ../../c++tools/*.cc \
+	  --language=none --regex='/DEFTREECODE [(]\([A-Z_]+\)/\1/' cp-tree.def; \
 	$(ETAGS) --include TAGS.sub --include ../TAGS.sub
 
 c++.man: doc/g++.1