diff options
| author | Francesco Potortì | 2007-02-05 21:33:33 +0000 |
|---|---|---|
| committer | Francesco Potortì | 2007-02-05 21:33:33 +0000 |
| commit | 7806494867054c9cbb732ec2c15a9a4604668d07 (patch) | |
| tree | 0d7bff667f51c85dc51c1165ad5c305e8dda9401 /lib-src | |
| parent | d881944f98ba67562d3b90b714188fd8324731f5 (diff) | |
| download | emacs-7806494867054c9cbb732ec2c15a9a4604668d07.tar.gz emacs-7806494867054c9cbb732ec2c15a9a4604668d07.zip | |
(default_C_help, Cplusplus_help, PHP_help, print_help)
(main): Now --members is the default for etags, not for ctags yet.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index ff8a37a1ea8..69b92084fd6 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -453,8 +453,8 @@ static bool constantypedefs; /* -d: create tags for C #define, enum */ | |||
| 453 | /* constants and variables. */ | 453 | /* constants and variables. */ |
| 454 | /* -D: opposite of -d. Default under ctags. */ | 454 | /* -D: opposite of -d. Default under ctags. */ |
| 455 | static bool globals; /* create tags for global variables */ | 455 | static bool globals; /* create tags for global variables */ |
| 456 | static bool declarations; /* --declarations: tag them and extern in C&Co*/ | ||
| 457 | static bool members; /* create tags for C member variables */ | 456 | static bool members; /* create tags for C member variables */ |
| 457 | static bool declarations; /* --declarations: tag them and extern in C&Co*/ | ||
| 458 | static bool no_line_directive; /* ignore #line directives (undocumented) */ | 458 | static bool no_line_directive; /* ignore #line directives (undocumented) */ |
| 459 | static bool no_duplicates; /* no duplicate tags for ctags (undocumented) */ | 459 | static bool no_duplicates; /* no duplicate tags for ctags (undocumented) */ |
| 460 | static bool update; /* -u: update tags */ | 460 | static bool update; /* -u: update tags */ |
| @@ -577,10 +577,11 @@ static char default_C_help [] = | |||
| 577 | definitions of `struct', `union' and `enum'. `#define' macro\n\ | 577 | definitions of `struct', `union' and `enum'. `#define' macro\n\ |
| 578 | definitions and `enum' constants are tags unless you specify\n\ | 578 | definitions and `enum' constants are tags unless you specify\n\ |
| 579 | `--no-defines'. Global variables are tags unless you specify\n\ | 579 | `--no-defines'. Global variables are tags unless you specify\n\ |
| 580 | `--no-globals'. Use of `--no-globals' and `--no-defines'\n\ | 580 | `--no-globals' and so are struct members unless you specify\n\ |
| 581 | can make the tags table file much smaller.\n\ | 581 | `--no-members'. Use of `--no-globals', `--no-defines' and\n\ |
| 582 | `--no-members' can make the tags table file much smaller.\n\ | ||
| 582 | You can tag function declarations and external variables by\n\ | 583 | You can tag function declarations and external variables by\n\ |
| 583 | using `--declarations', and struct members by using `--members'."; | 584 | using `--declarations'."; |
| 584 | 585 | ||
| 585 | static char *Cplusplus_suffixes [] = | 586 | static char *Cplusplus_suffixes [] = |
| 586 | { "C", "c++", "cc", "cpp", "cxx", "H", "h++", "hh", "hpp", "hxx", | 587 | { "C", "c++", "cc", "cpp", "cxx", "H", "h++", "hh", "hpp", "hxx", |
| @@ -590,8 +591,8 @@ static char *Cplusplus_suffixes [] = | |||
| 590 | static char Cplusplus_help [] = | 591 | static char Cplusplus_help [] = |
| 591 | "In C++ code, all the tag constructs of C code are tagged. (Use\n\ | 592 | "In C++ code, all the tag constructs of C code are tagged. (Use\n\ |
| 592 | --help --lang=c --lang=c++ for full help.)\n\ | 593 | --help --lang=c --lang=c++ for full help.)\n\ |
| 593 | In addition to C tags, member functions are also recognized, and\n\ | 594 | In addition to C tags, member functions are also recognized. Member\n\ |
| 594 | optionally member variables if you use the `--members' option.\n\ | 595 | variables are recognized unless you use the `--no-members' option.\n\ |
| 595 | Tags for variables and functions in classes are named `CLASS::VARIABLE'\n\ | 596 | Tags for variables and functions in classes are named `CLASS::VARIABLE'\n\ |
| 596 | and `CLASS::FUNCTION'. `operator' definitions have tag names like\n\ | 597 | and `CLASS::FUNCTION'. `operator' definitions have tag names like\n\ |
| 597 | `operator+'."; | 598 | `operator+'."; |
| @@ -686,8 +687,8 @@ defined in the default package is `main::SUB'."; | |||
| 686 | static char *PHP_suffixes [] = | 687 | static char *PHP_suffixes [] = |
| 687 | { "php", "php3", "php4", NULL }; | 688 | { "php", "php3", "php4", NULL }; |
| 688 | static char PHP_help [] = | 689 | static char PHP_help [] = |
| 689 | "In PHP code, tags are functions, classes and defines. When using\n\ | 690 | "In PHP code, tags are functions, classes and defines. Unless you use\n\ |
| 690 | the `--members' option, vars are tags too."; | 691 | the `--no-members' option, vars are tags too."; |
| 691 | 692 | ||
| 692 | static char *plain_C_suffixes [] = | 693 | static char *plain_C_suffixes [] = |
| 693 | { "pc", /* Pro*C file */ | 694 | { "pc", /* Pro*C file */ |
| @@ -929,8 +930,9 @@ Relative ones are stored relative to the output file's directory.\n"); | |||
| 929 | puts ("--no-globals\n\ | 930 | puts ("--no-globals\n\ |
| 930 | Do not create tag entries for global variables in some\n\ | 931 | Do not create tag entries for global variables in some\n\ |
| 931 | languages. This makes the tags file smaller."); | 932 | languages. This makes the tags file smaller."); |
| 932 | puts ("--members\n\ | 933 | puts ("--no-members\n\ |
| 933 | Create tag entries for members of structures in some languages."); | 934 | Do not create tag entries for members of structures\n\ |
| 935 | in some languages."); | ||
| 934 | 936 | ||
| 935 | puts ("-r REGEXP, --regex=REGEXP or --regex=@regexfile\n\ | 937 | puts ("-r REGEXP, --regex=REGEXP or --regex=@regexfile\n\ |
| 936 | Make a tag for each line matching a regular expression pattern\n\ | 938 | Make a tag for each line matching a regular expression pattern\n\ |
| @@ -1168,8 +1170,8 @@ main (argc, argv) | |||
| 1168 | 1170 | ||
| 1169 | /* | 1171 | /* |
| 1170 | * If etags, always find typedefs and structure tags. Why not? | 1172 | * If etags, always find typedefs and structure tags. Why not? |
| 1171 | * Also default to find macro constants, enum constants and | 1173 | * Also default to find macro constants, enum constants, struct |
| 1172 | * global variables. | 1174 | * members and global variables. |
| 1173 | */ | 1175 | */ |
| 1174 | if (!CTAGS) | 1176 | if (!CTAGS) |
| 1175 | { | 1177 | { |