summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-04-30 20:30:48 +0000
committerRichard M. Stallman <rms@gnu.org>1994-04-30 20:30:48 +0000
commit024a380b5d4d7c424c2a8c42da93c4dba21c7a7b (patch)
tree1e03b3022a76d2808338000d0a8a90f9b963bc5f /lib-src
parent68afdd56d42977828c21051b44b0c647465878be (diff)
downloademacs-024a380b5d4d7c424c2a8c42da93c4dba21c7a7b.tar.gz
(find_entries): Treat `*.cpp' as C++ files.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index bae7e17207a..1ae77e7f2be 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -783,9 +783,10 @@ find_entries (file)
Asm_labels (inf);
goto close_and_return;
}
- /* .C or .H or .cxx or .hxx or .cc: a C++ file */
+ /* .C or .H or .cxx or .hxx or .cc or .cpp: a C++ file */
if (cp && (streq (cp1, "C")
|| streq (cp1, "H")
+ || streq (cp1, "cpp")
|| streq (cp1, "cxx")
|| streq (cp1, "hxx")
|| streq (cp1, "cc")))