mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 19:31:02 -08:00
(default_C_help, Cplusplus_help, PHP_help, print_help)
(main): Now --members is the default for etags, not for ctags yet.
This commit is contained in:
parent
d881944f98
commit
7806494867
1 changed files with 14 additions and 12 deletions
|
|
@ -453,8 +453,8 @@ static bool constantypedefs; /* -d: create tags for C #define, enum */
|
||||||
/* constants and variables. */
|
/* constants and variables. */
|
||||||
/* -D: opposite of -d. Default under ctags. */
|
/* -D: opposite of -d. Default under ctags. */
|
||||||
static bool globals; /* create tags for global variables */
|
static bool globals; /* create tags for global variables */
|
||||||
static bool declarations; /* --declarations: tag them and extern in C&Co*/
|
|
||||||
static bool members; /* create tags for C member variables */
|
static bool members; /* create tags for C member variables */
|
||||||
|
static bool declarations; /* --declarations: tag them and extern in C&Co*/
|
||||||
static bool no_line_directive; /* ignore #line directives (undocumented) */
|
static bool no_line_directive; /* ignore #line directives (undocumented) */
|
||||||
static bool no_duplicates; /* no duplicate tags for ctags (undocumented) */
|
static bool no_duplicates; /* no duplicate tags for ctags (undocumented) */
|
||||||
static bool update; /* -u: update tags */
|
static bool update; /* -u: update tags */
|
||||||
|
|
@ -577,10 +577,11 @@ static char default_C_help [] =
|
||||||
definitions of `struct', `union' and `enum'. `#define' macro\n\
|
definitions of `struct', `union' and `enum'. `#define' macro\n\
|
||||||
definitions and `enum' constants are tags unless you specify\n\
|
definitions and `enum' constants are tags unless you specify\n\
|
||||||
`--no-defines'. Global variables are tags unless you specify\n\
|
`--no-defines'. Global variables are tags unless you specify\n\
|
||||||
`--no-globals'. Use of `--no-globals' and `--no-defines'\n\
|
`--no-globals' and so are struct members unless you specify\n\
|
||||||
can make the tags table file much smaller.\n\
|
`--no-members'. Use of `--no-globals', `--no-defines' and\n\
|
||||||
|
`--no-members' can make the tags table file much smaller.\n\
|
||||||
You can tag function declarations and external variables by\n\
|
You can tag function declarations and external variables by\n\
|
||||||
using `--declarations', and struct members by using `--members'.";
|
using `--declarations'.";
|
||||||
|
|
||||||
static char *Cplusplus_suffixes [] =
|
static char *Cplusplus_suffixes [] =
|
||||||
{ "C", "c++", "cc", "cpp", "cxx", "H", "h++", "hh", "hpp", "hxx",
|
{ "C", "c++", "cc", "cpp", "cxx", "H", "h++", "hh", "hpp", "hxx",
|
||||||
|
|
@ -590,8 +591,8 @@ static char *Cplusplus_suffixes [] =
|
||||||
static char Cplusplus_help [] =
|
static char Cplusplus_help [] =
|
||||||
"In C++ code, all the tag constructs of C code are tagged. (Use\n\
|
"In C++ code, all the tag constructs of C code are tagged. (Use\n\
|
||||||
--help --lang=c --lang=c++ for full help.)\n\
|
--help --lang=c --lang=c++ for full help.)\n\
|
||||||
In addition to C tags, member functions are also recognized, and\n\
|
In addition to C tags, member functions are also recognized. Member\n\
|
||||||
optionally member variables if you use the `--members' option.\n\
|
variables are recognized unless you use the `--no-members' option.\n\
|
||||||
Tags for variables and functions in classes are named `CLASS::VARIABLE'\n\
|
Tags for variables and functions in classes are named `CLASS::VARIABLE'\n\
|
||||||
and `CLASS::FUNCTION'. `operator' definitions have tag names like\n\
|
and `CLASS::FUNCTION'. `operator' definitions have tag names like\n\
|
||||||
`operator+'.";
|
`operator+'.";
|
||||||
|
|
@ -686,8 +687,8 @@ defined in the default package is `main::SUB'.";
|
||||||
static char *PHP_suffixes [] =
|
static char *PHP_suffixes [] =
|
||||||
{ "php", "php3", "php4", NULL };
|
{ "php", "php3", "php4", NULL };
|
||||||
static char PHP_help [] =
|
static char PHP_help [] =
|
||||||
"In PHP code, tags are functions, classes and defines. When using\n\
|
"In PHP code, tags are functions, classes and defines. Unless you use\n\
|
||||||
the `--members' option, vars are tags too.";
|
the `--no-members' option, vars are tags too.";
|
||||||
|
|
||||||
static char *plain_C_suffixes [] =
|
static char *plain_C_suffixes [] =
|
||||||
{ "pc", /* Pro*C file */
|
{ "pc", /* Pro*C file */
|
||||||
|
|
@ -929,8 +930,9 @@ Relative ones are stored relative to the output file's directory.\n");
|
||||||
puts ("--no-globals\n\
|
puts ("--no-globals\n\
|
||||||
Do not create tag entries for global variables in some\n\
|
Do not create tag entries for global variables in some\n\
|
||||||
languages. This makes the tags file smaller.");
|
languages. This makes the tags file smaller.");
|
||||||
puts ("--members\n\
|
puts ("--no-members\n\
|
||||||
Create tag entries for members of structures in some languages.");
|
Do not create tag entries for members of structures\n\
|
||||||
|
in some languages.");
|
||||||
|
|
||||||
puts ("-r REGEXP, --regex=REGEXP or --regex=@regexfile\n\
|
puts ("-r REGEXP, --regex=REGEXP or --regex=@regexfile\n\
|
||||||
Make a tag for each line matching a regular expression pattern\n\
|
Make a tag for each line matching a regular expression pattern\n\
|
||||||
|
|
@ -1168,8 +1170,8 @@ main (argc, argv)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If etags, always find typedefs and structure tags. Why not?
|
* If etags, always find typedefs and structure tags. Why not?
|
||||||
* Also default to find macro constants, enum constants and
|
* Also default to find macro constants, enum constants, struct
|
||||||
* global variables.
|
* members and global variables.
|
||||||
*/
|
*/
|
||||||
if (!CTAGS)
|
if (!CTAGS)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue