Codebase list exuberant-ctags / debian/5.7-4 ctags.html
debian/5.7-4

Tree @debian/5.7-4 (Download .tar.gz)

ctags.html @debian/5.7-4raw · history · blame

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
<!-- Creator     : groff version 1.19.1 -->
<!-- CreationDate: Tue Sep  4 23:16:17 2007 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<title>CTAGS</title>
</head>
<body>

<h1 align=center>CTAGS</h1>
<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#SOURCE FILES">SOURCE FILES</a><br>
<a href="#OPTIONS">OPTIONS</a><br>
<a href="#OPERATIONAL DETAILS">OPERATIONAL DETAILS</a><br>
<a href="#TAG FILE FORMAT">TAG FILE FORMAT</a><br>
<a href="#HOW TO USE WITH VI">HOW TO USE WITH VI</a><br>
<a href="#HOW TO USE WITH GNU EMACS">HOW TO USE WITH GNU EMACS</a><br>
<a href="#HOW TO USE WITH NEDIT">HOW TO USE WITH NEDIT</a><br>
<a href="#CAVEATS">CAVEATS</a><br>
<a href="#BUGS">BUGS</a><br>
<a href="#ENVIRONMENT VARIABLES">ENVIRONMENT VARIABLES</a><br>
<a href="#FILES">FILES</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>
<a href="#AUTHOR">AUTHOR</a><br>
<a href="#MOTIVATION">MOTIVATION</a><br>
<a href="#CREDITS">CREDITS</a><br>

<hr>
<a name="NAME"></a>
<h2>NAME</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>ctags &minus; Generate tag files for source code</p>
</td>
</table>
<a name="SYNOPSIS"></a>
<h2>SYNOPSIS</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>ctags</b> [<b>options</b>] [<i>file(s)</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>etags</b> [<b>options</b>] [<i>file(s)</i>]</p></td>
</table>
<a name="DESCRIPTION"></a>
<h2>DESCRIPTION</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>The <b>ctags</b> and <b>etags</b> programs (hereinafter
collectively referred to as <b>ctags</b>, except where
distinguished) generate an index (or &quot;tag&quot;) file
for a variety of language objects found in <i>file(s)</i>.
This tag file allows these items to be quickly and easily
located by a text editor or other utility. A &quot;tag&quot;
signifies a language object for which an index entry is
available (or, alternatively, the index entry created for
that object).</p>
<!-- INDENTATION -->
<p>Alternatively, <b>ctags</b> can generate a cross
reference file which lists, in human readable form,
information about the various source objects found in a set
of language files.</p>
<!-- INDENTATION -->
<p>Tag index files are supported by numerous editors, which
allow the user to locate the object associated with a name
appearing in a source file and jump to the file and line
which defines the name. Those known about at the time of
this release are:</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="17%"></td>
<td width="83%">
<p><b>Vi</b>(1) and its derivatives (e.g. Elvis, Vim, Vile,
Lemmy), <b>CRiSP</b>, <b>Emacs</b>, <b>FTE</b> (Folding Text
Editor), <b>JED</b>, <b>jEdit</b>, <b>Mined</b>,
<b>NEdit</b> (Nirvana Edit), <b>TSE</b> (The SemWare
Editor), <b>UltraEdit</b>, <b>WorkSpace</b>, <b>X2</b>,
<b>Zeus</b></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>Ctags</b> is capable of generating different kinds of
tags for each of many different languages. For a complete
list of supported languages, the names by which they are
recognized, and the kinds of tags which are generated for
each, see the <b>&minus;&minus;list&minus;languages</b> and
<b>&minus;&minus;list&minus;kinds</b> options.</p>
</td>
</table>
<a name="SOURCE FILES"></a>
<h2>SOURCE FILES</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>Unless the <b>&minus;&minus;language&minus;force</b>
option is specified, the language of each source file is
automatically selected based upon a mapping of file names to
languages. The mappings in effect for each language may be
display using the <b>&minus;&minus;list&minus;maps</b>
option and may be changed using the
<b>&minus;&minus;langmap</b> option. On platforms which
support it, if the name of a file is not mapped to a
language and the file is executable, the first line of the
file is checked to see if the file is a &quot;#!&quot;
script for a recognized language.</p>
<!-- INDENTATION -->
<p>By default, all other files names are ignored. This
permits running <b>ctags</b> on all files in either a single
directory (e.g. &quot;ctags *&quot;), or on all files in an
entire source directory tree (e.g. &quot;ctags
&minus;R&quot;), since only those files whose names are
mapped to languages will be scanned.</p>
<!-- INDENTATION -->
<p>[The reason that .h extensions are mapped to C++ files
rather than C files is because it is common to use .h
extensions in C++, and no harm results in treating them as
C++ files.]</p>
</td>
</table>
<a name="OPTIONS"></a>
<h2>OPTIONS</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>Despite the wealth of available options, defaults are set
so that <b>ctags</b> is most commonly executed without any
options (e.g. &quot;ctags *&quot;, or &quot;ctags
&minus;R&quot;), which will create a tag file in the current
directory for all recognized source files. The options
described below are provided merely to allow custom
tailoring to meet special needs.</p>
<!-- INDENTATION -->
<p>Note that spaces separating the single-letter options
from their parameters are optional.</p>
<!-- INDENTATION -->
<p>Note also that the boolean parameters to the long form
options (those beginning with &quot;&minus;&minus;&quot; and
that take a &quot;<i>[=yes</i>|<i>no]</i>&quot; parameter)
may be omitted, in which case &quot;<b>=</b><i>yes</i>&quot;
is implied. (e.g. <b>&minus;&minus;sort</b> is equivalent to
<b>&minus;&minus;sort</b>=<i>yes</i>). Note further that
&quot;=<i>1</i>&quot; and &quot;=<i>on</i>&quot; are
considered synonyms for &quot;=<i>yes</i>&quot;, and that
&quot;=<i>0</i>&quot; and &quot;=<i>off</i>&quot; are
considered synonyms for &quot;=<i>no</i>&quot;.</p>
<!-- INDENTATION -->
<p>Some options are either ignored or useful only when used
while running in etags mode (see <b>&minus;e</b> option).
Such options will be noted.</p>
<!-- INDENTATION -->
<p>Most options may appear anywhere on the command line,
affecting only those files which follow the option. A few
options, however, must appear before the first file name and
will be noted as such.</p>
<!-- INDENTATION -->
<p>Options taking language names will accept those names in
either upper or lower case. See the
<b>&minus;&minus;list&minus;languages</b> option for a
complete list of the built-in language names.</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">

<p><b>&minus;a</b></p>
</td>
<td width="4%"></td>
<td width="82%">

<p>Equivalent to <b>&minus;&minus;append</b>.</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">

<p><b>&minus;B</b></p>
</td>
<td width="4%"></td>
<td width="82%">

<p>Use backward searching patterns (e.g. ?pattern?).
[Ignored in etags mode]</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">

<p><b>&minus;e</b></p>
</td>
<td width="4%"></td>
<td width="82%">

<p>Enable etags mode, which will create a tag file for use
with the Emacs editor. Alternatively, if <b>ctags</b> is
invoked by a name containing the string &quot;etags&quot;
(either by renaming, or creating a link to, the executable),
etags mode will be enabled. This option must appear before
the first file name.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;f</b> <i>tagfile</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Use the name specified by <i>tagfile</i> for the tag file
(default is &quot;tags&quot;, or &quot;TAGS&quot; when
running in etags mode). If <i>tagfile</i> is specified as
&quot;&minus;&quot;, then the tag file is written to
standard output instead. <b>Ctags</b> will stubbornly refuse
to take orders if <i>tagfile</i> exists and its first line
contains something other than a valid tags line. This will
save your neck if you mistakenly type &quot;ctags &minus;f
*.c&quot;, which would otherwise overwrite your first C file
with the tags generated by the rest! It will also refuse to
accept a multi-character file name which begins with a
&rsquo;&minus;&rsquo; (dash) character, since this most
likely means that you left out the tag file name and this
option tried to grab the next option as the file name. If
you really want to name your output tag file
&quot;&minus;ugly&quot;, specify it as
&quot;./&minus;ugly&quot;. This option must appear before
the first file name. If this option is specified more than
once, only the last will apply.</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">

<p><b>&minus;F</b></p>
</td>
<td width="4%"></td>
<td width="82%">

<p>Use forward searching patterns (e.g. /pattern/)
(default). [Ignored in etags mode]</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;h</b> <i>list</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Specifies a list of file extensions, separated by
periods, which are to be interpreted as include (or header)
files. To indicate files having no extension, use a period
not followed by a non-period character (e.g. &quot;.&quot;,
&quot;..x&quot;, &quot;.x.&quot;). This option only affects
how the scoping of a particular kinds of tags is interpreted
(i.e. whether or not they are considered as globally visible
or visible only within the file in which they are defined);
it does not map the extension to any particular language.
Any tag which is located in a non-include file and cannot be
seen (e.g. linked to) from another file is considered to
have file-limited (e.g. static) scope. No kind of tag
appearing in an include file will be considered to have
file-limited scope. If the first character in the list is a
plus sign, then the extensions in the list will be appended
to the current list; otherwise, the list will replace the
current list. See, also, the
<b>&minus;&minus;file&minus;scope</b> option. The default
list is &quot;.h.H.hh.hpp.hxx.h++.inc.def&quot;. To restore
the default list, specify <b>&minus;h</b> <i>default</i>.
Note that if an extension supplied to this option is not
already mapped to a particular language (see <b>SOURCE
FILES</b>, above), you will also need to use either the
<b>&minus;&minus;langmap</b> or
<b>&minus;&minus;language&minus;force</b> option.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;I</b> <i>identifier&minus;list</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Specifies a list of identifiers which are to be specially
handled while parsing C and C++ source files. This option is
specifically provided to handle special cases arising
through the use of preprocessor macros. When the identifiers
listed are simple identifiers, these identifiers will be
ignored during parsing of the source files. If an identifier
is suffixed with a &rsquo;+&rsquo; character, <b>ctags</b>
will also ignore any parenthesis-enclosed argument list
which may immediately follow the identifier in the source
files. If two identifiers are separated with the
&rsquo;=&rsquo; character, the first identifiers is replaced
by the second identifiers for parsing purposes. The list of
identifiers may be supplied directly on the command line or
read in from a separate file. If the first character of
<i>identifier&minus;list</i> is &rsquo;@&rsquo;,
&rsquo;.&rsquo; or a pathname separator (&rsquo;/&rsquo; or
&rsquo;\&rsquo;), or the first two characters specify a
drive letter (e.g. &quot;C:&quot;), the parameter
<i>identifier&minus;list</i> will be interpreted as a
filename from which to read a list of identifiers, one per
input line. Otherwise, <i>identifier&minus;list</i> is a
list of identifiers (or identifier pairs) to be specially
handled, each delimited by a either a comma or by white
space (in which case the list should be quoted to keep the
entire list as one command line argument). Multiple
<b>&minus;I</b> options may be supplied. To clear the list
of ignore identifiers, supply a single dash
(&quot;&minus;&quot;) for <i>identifier&minus;list</i>.</p>
<!-- INDENTATION -->
<p>This feature is useful when preprocessor macros are used
in such a way that they cause syntactic confusion due to
their presence. Indeed, this is the best way of working
around a number of problems caused by the presence of
syntax-busting macros in source files (see <b>CAVEATS</b>,
below). Some examples will illustrate this point.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="23%"></td>
<td width="77%">
<p>int foo ARGDECL4(void *, ptr, long int, nbytes)</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>In the above example, the macro &quot;ARGDECL4&quot;
would be mistakenly interpreted to be the name of the
function instead of the correct name of &quot;foo&quot;.
Specifying <b>&minus;I</b> <i>ARGDECL4</i> results in the
correct behavior.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="23%"></td>
<td width="77%">
<p>/* creates an RCS version string in module */</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>MODULE_VERSION(&quot;$Revision: 590 $&quot;)</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>In the above example the macro invocation looks too much
like a function definition because it is not followed by a
semicolon (indeed, it could even be followed by a global
variable definition that would look much like a K&amp;R
style function parameter declaration). In fact, this seeming
function definition could possibly even cause the rest of
the file to be skipped over while trying to complete the
definition. Specifying <b>&minus;I</b>
<i>MODULE_VERSION+</i> would avoid such a problem.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="23%"></td>
<td width="77%">
<p>CLASS Example {<br>
// your content here<br>
};</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>The example above uses &quot;CLASS&quot; as a
preprocessor macro which expands to something different for
each platform. For instance CLASS may be defined as
&quot;class __declspec(dllexport)&quot; on Win32 platforms
and simply &quot;class&quot; on UNIX. Normally, the absence
of the C++ keyword &quot;class&quot; would cause the source
file to be incorrectly parsed. Correct behavior can be
restored by specifying <b>&minus;I</b>
<i>CLASS=class</i>.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;L</b> <i>file</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Read from <i>file</i> a list of file names for which tags
should be generated. If <i>file</i> is specified as
&quot;&minus;&quot;, then file names are read from standard
input. File names read using this option are processed
following file names appearing on the command line. Options
are also accepted in this input. If this option is specified
more than once, only the last will apply. <b>Note:</b>
<i>file</i> is read in line-oriented mode, where a new line
is the only delimiter and non-trailing white space is
considered significant, in order that file names containing
spaces may be supplied (however, trailing white space is
stripped from lines); this can affect how options are parsed
if included in the input.</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="5" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">

<p><b>&minus;n</b></p>
</td>
<td width="4%"></td>
<td width="47%">

<p>Equivalent to
<b>&minus;&minus;excmd</b>=<i>number</i>.</p>
</td>
<td width="35%">
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">

<p><b>&minus;N</b></p>
</td>
<td width="4%"></td>
<td width="47%">

<p>Equivalent to
<b>&minus;&minus;excmd</b>=<i>pattern</i>.</p>
</td>
<td width="35%">
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;o</b> <i>tagfile</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Equivalent to <b>&minus;f</b> <i>tagfile</i>.</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">

<p><b>&minus;R</b></p>
</td>
<td width="4%"></td>
<td width="82%">

<p>Equivalent to <b>&minus;&minus;recurse</b>.</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">

<p><b>&minus;u</b></p>
</td>
<td width="4%"></td>
<td width="82%">

<p>Equivalent to <b>&minus;&minus;sort</b>=<i>no</i> (i.e.
&quot;unsorted&quot;).</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">

<p><b>&minus;V</b></p>
</td>
<td width="4%"></td>
<td width="82%">

<p>Equivalent to <b>&minus;&minus;verbose</b>.</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">

<p><b>&minus;w</b></p>
</td>
<td width="4%"></td>
<td width="82%">

<p>This option is silently ignored for
backward-compatibility with the ctags of SVR4 Unix.</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">

<p><b>&minus;x</b></p>
</td>
<td width="4%"></td>
<td width="82%">

<p>Print a tabular, human-readable cross reference (xref)
file to standard output instead of generating a tag file.
The information contained in the output includes: the tag
name; the kind of tag; the line number, file name, and
source line (with extra white space condensed) of the file
which defines the tag. No tag file is written and all
options affecting tag file output will be ignored. Example
applications for this feature are generating a listing of
all functions located in a source file (e.g. <b>ctags
&minus;x &minus;&minus;c&minus;kinds</b>=<i>f file</i>), or
generating a list of all externally visible global variables
located in a source file (e.g. <b>ctags &minus;x
&minus;&minus;c&minus;kinds</b>=<i>v</i>
<b>&minus;&minus;file&minus;scope</b>=<i>no file</i>). This
option must appear before the first file name.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;append</b>[=<i>yes</i>|<i>no</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Indicates whether tags generated from the specified files
should be appended to those already present in the tag file
or should replace them. This option is off by default. This
option must appear before the first file name.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;etags&minus;include</b>=<i>file</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Include a reference to <i>file</i> in the tag file. This
option may be specified as many times as desired. This
supports Emacs&rsquo; capability to use a tag file which
&quot;includes&quot; other tag files. [Available only in
etags mode]</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;&minus;exclude</b>=[<i>pattern</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Add <i>pattern</i> to a list of excluded files and
directories. This option may be specified as many times as
desired. For each file name considered by <b>ctags</b>, each
<i>pattern</i> specified using this option will be compared
against both the complete path (e.g. some/path/base.ext) and
the base name (e.g. base.ext) of the file, thus allowing
patterns which match a given file name irrespective of its
path, or match only a specific path. If appropriate support
is available from the runtime library of your C compiler,
then <i>pattern</i> may contain the usual shell wildcards
(not regular expressions) common on Unix (be sure to quote
the option parameter to protect the wildcards from being
expanded by the shell before being passed to <b>ctags</b>;
also be aware that wildcards can match the slash character,
&rsquo;/&rsquo;). You can determine if shell wildcards are
available on your platform by examining the output of the
<b>&minus;&minus;version</b> option, which will include
&quot;+wildcards&quot; in the compiled feature list;
otherwise, <i>pattern</i> is matched against file names
using a simple textual comparison.</p>
<!-- INDENTATION -->
<p>If <i>pattern</i> begins with the character
&rsquo;@&rsquo;, then the rest of the string is interpreted
as a file name from which to read exclusion patterns, one
per line. If <i>pattern</i> is empty, the list of excluded
patterns is cleared. Note that at program startup, the
default exclude list contains &quot;EIFGEN&quot;,
&quot;SCCS&quot;, &quot;RCS&quot;, and &quot;CVS&quot;,
which are names of directories for which it is generally not
desirable to descend while processing the
<b>&minus;&minus;recurse</b> option.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;&minus;excmd</b>=<i>type</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Determines the type of EX command used to locate tags in
the source file. [Ignored in etags mode]</p>
<!-- INDENTATION -->
<p>The valid values for <i>type</i> (either the entire word
or the first letter is accepted) are:</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="10%">

<p><i>number</i></p>
</td>
<td width="4%"></td>
<td width="68%">

<p>Use only line numbers in the tag file for locating tags.
This has four advantages:</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="32%"></td>
<td width="3%">

<p>1.</p>
</td>
<td width="3%"></td>
<td width="62%">

<p>Significantly reduces the size of the resulting tag
file.</p>
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="3%">

<p>2.</p>
</td>
<td width="3%"></td>
<td width="62%">

<p>Eliminates failures to find tags because the line
defining the tag has changed, causing the pattern match to
fail (note that some editors, such as <b>vim</b>, are able
to recover in many such instances).</p>
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="3%">

<p>3.</p>
</td>
<td width="3%"></td>
<td width="62%">

<p>Eliminates finding identical matching, but incorrect,
source lines (see <b>BUGS</b>, below).</p>
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="3%">

<p>4.</p>
</td>
<td width="3%"></td>
<td width="62%">

<p>Retains separate entries in the tag file for lines which
are identical in content. In <i>pattern</i> mode, duplicate
entries are dropped because the search patterns they
generate are identical, making the duplicate entries
useless.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="32%"></td>
<td width="68%">
<p>However, this option has one significant drawback:
changes to the source files can cause the line numbers
recorded in the tag file to no longer correspond to the
lines in the source file, causing jumps to some tags to miss
the target definition by one or more lines. Basically, this
option is best used when the source code to which it is
applied is not subject to change. Selecting this option type
causes the following options to be ignored:
<b>&minus;BF</b>.</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="11%">

<p><i>pattern</i></p>
</td>
<td width="3%"></td>
<td width="68%">

<p>Use only search patterns for all tags, rather than the
line numbers usually used for macro definitions. This has
the advantage of not referencing obsolete line numbers when
lines have been added or removed since the tag file was
generated.</p>
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="11%">

<p><i>mixed</i></p>
</td>
<td width="3%"></td>
<td width="68%">

<p>In this mode, patterns are generally used with a few
exceptions. For C, line numbers are used for macro
definition tags. This was the default format generated by
the original <b>ctags</b> and is, therefore, retained as the
default for this option. For Fortran, line numbers are used
for common blocks because their corresponding source lines
are generally identical, making pattern searches useless for
finding all matches.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;extra</b>=<i>[+|&minus;]flags</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Specifies whether to include extra tag entries for
certain kinds of information. The parameter <i>flags</i> is
a set of one-letter flags, each representing one kind of
extra tag entry to include in the tag file. If <i>flags</i>
is preceded by by either the &rsquo;+&rsquo; or
&rsquo;&minus;&rsquo; character, the effect of each flag is
added to, or removed from, those currently enabled;
otherwise the flags replace any current settings. The
meaning of each flag is as follows:</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>f</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Include an entry for the base file name of every source
file (e.g. &quot;example.c&quot;), which addresses the first
line of the file.</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>q</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Include an extra class-qualified tag entry for each tag
which is a member of a class (for languages for which this
information is extracted; currently C++, Eiffel, and Java).
The actual form of the qualified tag depends upon the
language from which the tag was derived (using a form that
is most natural for how qualified calls are specified in the
language). For C++, it is in the form
&quot;class::member&quot;; for Eiffel and Java, it is in the
form &quot;class.member&quot;. This may allow easier
location of a specific tags when multiple occurrences of a
tag name occur in the tag file. Note, however, that this
could potentially more than double the size of the tag
file.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;fields</b>=<i>[+|&minus;]flags</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Specifies the available extension fields which are to be
included in the entries of the tag file (see <b>TAG FILE
FORMAT</b>, below, for more information). The parameter
<i>flags</i> is a set of one-letter flags, each representing
one type of extension field to include, with the following
meanings (disabled by default unless indicated):</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>a</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Access (or export) of class members</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>f</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>File-restricted scoping [enabled]</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>i</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Inheritance information</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>k</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Kind of tag as a single letter [enabled]</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>K</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Kind of tag as full name</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>l</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Language of source file containing tag</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>m</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Implementation information</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>n</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Line number of tag definition</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>s</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Scope of tag definition [enabled]</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>S</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Signature of routine (e.g. prototype or parameter
list)</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>z</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Include the &quot;kind:&quot; key in kind field</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>t</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Type and name of a variable or typedef as
&quot;typeref:&quot; field [enabled]</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Each letter or group of letters may be preceded by either
&rsquo;+&rsquo; to add it to the default set, or
&rsquo;&minus;&rsquo; to exclude it. In the absence of any
preceding &rsquo;+&rsquo; or &rsquo;&minus;&rsquo; sign,
only those kinds explicitly listed in <i>flags</i> will be
included in the output (i.e. overriding the default set).
This option is ignored if the option
<b>&minus;&minus;format</b>=<i>1</i> has been specified. The
default value of this option is <i>fks</i>.</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;file&minus;scope</b>[=<i>yes</i>|<i>no</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Indicates whether tags scoped only for a single file
(i.e. tags which cannot be seen outside of the file in which
they are defined, such as &quot;static&quot; tags) should be
included in the output. See, also, the <b>&minus;h</b>
option. This option is enabled by default.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;filter</b>[=<i>yes</i>|<i>no</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Causes <b>ctags</b> to behave as a filter, reading source
file names from standard input and printing their tags to
standard output on a file-by-file basis. If
<b>&minus;&minus;sorted</b> is enabled, tags are sorted only
within the source file in which they are defined. File names
are read from standard input in line-oriented input mode
(see note for <b>&minus;L</b> option) and only after file
names listed on the command line or from any file supplied
using the <b>&minus;L</b> option. When this option is
enabled, the options <b>&minus;f</b>, <b>&minus;o</b>, and
<b>&minus;&minus;totals</b> are ignored. This option is
quite esoteric and is disabled by default. This option must
appear before the first file name.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;filter&minus;terminator</b>=<i>string</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Specifies a string to print to standard output following
the tags for each file name parsed when the
<b>&minus;&minus;filter</b> option is enabled. This may
permit an application reading the output of ctags to
determine when the output for each file is finished. Note
that if the file name read is a directory and
<b>&minus;&minus;recurse</b> is enabled, this string will be
printed only one once at the end of all tags found for by
descending the directory. This string will always be
separated from the last tag line for the file by its
terminating newline. This option is quite esoteric and is
empty by default. This option must appear before the first
file name.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;&minus;format</b>=<i>level</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Change the format of the output tag file. Currently the
only valid values for <i>level</i> are <i>1</i> or <i>2</i>.
Level 1 specifies the original tag file format and level 2
specifies a new extended format containing extension fields
(but in a manner which retains backward-compatibility with
original <b>vi</b>(1) implementations). The default level is
2. This option must appear before the first file name.
[Ignored in etags mode]</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;&minus;help</b></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Prints to standard output a detailed usage description,
and then exits.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;&minus;if0</b>[=<i>yes</i>|<i>no</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Indicates a preference as to whether code within an
&quot;#if 0&quot; branch of a preprocessor conditional
should be examined for non-macro tags (macro tags are always
included). Because the intent of this construct is to
disable code, the default value of this option is <i>no</i>.
Note that this indicates a preference only and does not
guarantee skipping code within an &quot;#if 0&quot; branch,
since the fall-back algorithm used to generate tags when
preprocessor conditionals are too complex follows all
branches of a conditional. This option is disabled by
default.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;&lt;LANG&gt;&minus;kinds</b>=<i>[+|&minus;]kinds</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Specifies a list of language-specific kinds of tags (or
kinds) to include in the output file for a particular
language, where <b>&lt;LANG&gt;</b> is case-insensitive and
is one of the built-in language names (see the
<b>&minus;&minus;list&minus;languages</b> option for a
complete list). The parameter <i>kinds</i> is a group of
one-letter flags designating kinds of tags (particular to
the language) to either include or exclude from the output.
The specific sets of flags recognized for each language,
their meanings and defaults may be list using the
<b>&minus;&minus;list&minus;kinds</b> option. Each letter or
group of letters may be preceded by either &rsquo;+&rsquo;
to add it to, or &rsquo;&minus;&rsquo; to remove it from,
the default set. In the absence of any preceding
&rsquo;+&rsquo; or &rsquo;&minus;&rsquo; sign, only those
kinds explicitly listed in <i>kinds</i> will be included in
the output (i.e. overriding the default for the specified
language).</p>
<!-- INDENTATION -->
<p>As an example for the C language, in order to add
prototypes and external variable declarations to the default
set of tag kinds, but exclude macros, use
<b>&minus;&minus;c&minus;kinds</b>=<i>+px&minus;d</i>; to
include only tags for functions, use
<b>&minus;&minus;c&minus;kinds</b>=<i>f</i>.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;&minus;langdef</b>=<i>name</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Defines a new user-defined language, <i>name</i>, to be
parsed with regular expressions. Once defined, <i>name</i>
may be used in other options taking language names. The
typical use of this option is to first define the language,
then map file names to it using
<i>&minus;&minus;langmap</i>, then specify regular
expressions using
<i>&minus;&minus;regex&minus;&lt;LANG&gt;</i> to define how
its tags are found.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;langmap</b>=<i>map[,map[...]]</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Controls how file names are mapped to languages (see the
<b>&minus;&minus;list&minus;maps</b> option). Each
comma-separated <i>map</i> consists of the language name
(either a built-in or user-defined language), a colon, and a
list of file extensions and/or file name patterns. A file
extension is specified by preceding the extension with a
period (e.g. &quot;.c&quot;). A file name pattern is
specified by enclosing the pattern in parentheses (e.g.
&quot;([Mm]akefile)&quot;). If appropriate support is
available from the runtime library of your C compiler, then
the file name pattern may contain the usual shell wildcards
common on Unix (be sure to quote the option parameter to
protect the wildcards from being expanded by the shell
before being passed to <b>ctags</b>). You can determine if
shell wildcards are available on your platform by examining
the output of the <b>&minus;&minus;version</b> option, which
will include &quot;+wildcards&quot; in the compiled feature
list; otherwise, the file name patterns are matched against
file names using a simple textual comparison. When mapping a
file extension, it will first be unmapped from any other
languages.</p>
<!-- INDENTATION -->
<p>If the first character in a map is a plus sign, then the
extensions and file name patterns in that map will be
appended to the current map for that language; otherwise,
the map will replace the current map. For example, to
specify that only files with extensions of .c and .x are to
be treated as C language files, use
&quot;<b>&minus;&minus;langmap</b>=<i>c:.c.x</i>&quot;; to
also add files with extensions of .j as Java language files,
specify
&quot;<b>&minus;&minus;langmap</b>=<i>c:.c.x,java:+.j</i>&quot;.
To map makefiles (e.g. files named either
&quot;Makefile&quot;, &quot;makefile&quot;, or having the
extension &quot;.mak&quot;) to a language called
&quot;make&quot;, specify
&quot;<b>&minus;&minus;langmap</b>=<i>make:([Mm]akefile).mak</i>&quot;.
To map files having no extension, specify a period not
followed by a non-period character (e.g. &quot;.&quot;,
&quot;..x&quot;, &quot;.x.&quot;). To clear the mapping for
a particular language (thus inhibiting automatic generation
of tags for that language), specify an empty extension list
(e.g.
&quot;<b>&minus;&minus;langmap</b>=<i>fortran:</i>&quot;).
To restore the default language mappings for all a
particular language, supply the keyword &quot;default&quot;
for the mapping. To specify restore the default language
mappings for all languages, specify
&quot;<b>&minus;&minus;langmap</b>=<i>default</i>&quot;.
Note that file extensions are tested before file name
patterns when inferring the language of a file.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;language&minus;force</b>=<i>language</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>By default, <b>ctags</b> automatically selects the
language of a source file, ignoring those files whose
language cannot be determined (see <b>SOURCE FILES</b>,
above). This option forces the specified <i>language</i>
(case-insensitive; either built-in or user-defined) to be
used for every supplied file instead of automatically
selecting the language based upon its extension. In
addition, the special value <i>auto</i> indicates that the
language should be automatically selected (which effectively
disables this option).</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;languages</b>=<i>[+|&minus;]list</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Specifies the languages for which tag generation is
enabled, with <i>list</i> containing a comma-separated list
of language names (case-insensitive; either built-in or
user-defined). If the first language of <i>list</i> is not
preceded by either a &rsquo;+&rsquo; or
&rsquo;&minus;&rsquo;, the current list will be cleared
before adding or removing the languages in <i>list</i>.
Until a &rsquo;&minus;&rsquo; is encountered, each language
in the list will be added to the current list. As either the
&rsquo;+&rsquo; or &rsquo;&minus;&rsquo; is encountered in
the list, the languages following it are added or removed
from the current list, respectively. Thus, it becomes simple
to replace the current list with a new one, or to add or
remove languages from the current list. The actual list of
files for which tags will be generated depends upon the
language extension mapping in effect (see the
<b>&minus;&minus;langmap</b> option). Note that all
languages, including user-defined languages are enabled
unless explicitly disabled using this option. Language names
included in <i>list</i> may be any built-in language or one
previously defined with <b>&minus;&minus;langdef</b>. The
default is &quot;all&quot;, which is also accepted as a
valid argument. See the
<b>&minus;&minus;list&minus;languages</b> option for a
complete list of the built-in language names.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;&minus;license</b></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Prints a summary of the software license to standard
output, and then exits.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;line&minus;directives</b>[=<i>yes</i>|<i>no</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Specifies whether &quot;#line&quot; directives should be
recognized. These are present in the output of preprocessors
and contain the line number, and possibly the file name, of
the original source file(s) from which the preprocessor
output file was generated. When enabled, this option will
cause <b>ctags</b> to generate tag entries marked with the
file names and line numbers of their locations original
source file(s), instead of their actual locations in the
preprocessor output. The actual file names placed into the
tag file will have the same leading path components as the
preprocessor output file, since it is assumed that the
original source files are located relative to the
preprocessor output file (unless, of course, the #line
directive specifies an absolute path). This option is off by
default. <b>Note:</b> This option is generally only useful
when used together with the
<b>&minus;&minus;excmd</b>=<i>number</i> (<b>&minus;n</b>)
option. Also, you may have to use either the
<b>&minus;&minus;langmap</b> or
<b>&minus;&minus;language&minus;force</b> option if the
extension of the preprocessor output file is not known to
<b>ctags</b>.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;links</b>[=<i>yes</i>|<i>no</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Indicates whether symbolic links (if supported) should be
followed. When disabled, symbolic links are ignored. This
option is on by default.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;list&minus;kinds</b>[=<i>language</i>|<i>all</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Lists the tag kinds recognized for either the specified
language or all languages, and then exits. Each kind of tag
recorded in the tag file is represented by a one-letter
flag, which is also used to filter the tags placed into the
output through use of the
<b>&minus;&minus;&lt;LANG&gt;&minus;kinds</b> option. Note
that some languages and/or tag kinds may be implemented
using regular expressions and may not be available if regex
support is not compiled into <b>ctags</b> (see the
<b>&minus;&minus;regex&minus;&lt;LANG&gt;</b> option). Each
kind listed is enabled unless followed by
&quot;[off]&quot;.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;list&minus;maps</b>[=<i>language</i>|<i>all</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Lists the file extensions and file name patterns which
associate a file name with a language for either the
specified language or all languages, and then exits. See the
<b>&minus;&minus;langmap</b> option, and <b>SOURCE
FILES</b>, above.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;&minus;list&minus;languages</b></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Lists the names of the languages understood by
<b>ctags</b>, and then exits. These language names are case
insensitive and may be used in the
<b>&minus;&minus;language&minus;force</b>,
<b>&minus;&minus;languages</b>,
<b>&minus;&minus;&lt;LANG&gt;&minus;kinds</b>, and
<b>&minus;&minus;regex&minus;&lt;LANG&gt;</b> options.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;&minus;options</b>=<i>file</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Read additional options from <i>file</i>. The file should
contain one option per line. As a special case, if
<b>&minus;&minus;options</b>=<i>NONE</i> is specified as the
first option on the command line, it will disable the
automatic reading of any configuration options from either a
file or the environment (see <b>FILES</b>).</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;recurse</b>[=<i>yes</i>|<i>no</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Recurse into directories encountered in the list of
supplied files. If the list of supplied files is empty and
no file list is specified with the <b>&minus;L</b> option,
then the current directory (i.e. &quot;.&quot;) is assumed.
Symbolic links are followed. If you don&rsquo;t like these
behaviors, either explicitly specify the files or pipe the
output of <b>find</b>(1) into <b>ctags &minus;L&minus;</b>
instead. <b>Note:</b> This option is not supported on all
platforms at present. It is available if the output of the
<b>&minus;&minus;help</b> option includes this option. See,
also, the <b>&minus;&minus;exclude</b> to limit
recursion.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;regex&minus;&lt;LANG&gt;</b>=<i>/regexp/replacement/[kind&minus;spec/][flags]</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>The <i>/regexp/replacement/</i> pair define a regular
expression replacement pattern, similar in style to
<b>sed</b> substitution commands, with which to generate
tags from source files mapped to the named language,
<b>&lt;LANG&gt;</b>, (case-insensitive; either a built-in or
user-defined language). The regular expression,
<i>regexp</i>, defines an extended regular expression
(roughly that used by <b>egrep</b>(1)), which is used to
locate a single source line containing a tag and may specify
tab characters using \t. When a matching line is found, a
tag will be generated for the name defined by
<i>replacement</i>, which generally will contain the special
back-references \1 through \9 to refer to matching
sub-expression groups within <i>regexp</i>. The
&rsquo;/&rsquo; separator characters shown in the parameter
to the option can actually be replaced by any character.
Note that whichever separator character is used will have to
be escaped with a backslash (&rsquo;\&rsquo;) character
wherever it is used in the parameter as something other than
a separator. The regular expression defined by this option
is added to the current list of regular expressions for the
specified language unless the parameter is omitted, in which
case the current list is cleared.</p>
<!-- INDENTATION -->
<p>Unless modified by <i>flags</i>, <i>regexp</i> is
interpreted as a Posix extended regular expression. The
<i>replacement</i> should expand for all matching lines to a
non-empty string of characters, or a warning message will be
reported. An optional kind specifier for tags matching
<i>regexp</i> may follow <i>replacement</i>, which will
determine what kind of tag is reported in the
&quot;kind&quot; extension field (see <b>TAG FILE
FORMAT</b>, below). The full form of <i>kind&minus;spec</i>
is in the form of a single letter, a comma, a name (without
spaces), a comma, a description, followed by a separator,
which specify the short and long forms of the kind value and
its textual description (displayed using
<b>&minus;&minus;list&minus;kinds</b>). Either the kind name
and/or the description may be omitted. If
<i>kind&minus;spec</i> is omitted, it defaults to
&quot;<i>r,regex</i>&quot;. Finally, <i>flags</i> are one or
more single-letter characters having the following effect
upon the interpretation of <i>regexp</i>:</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>b</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>The pattern is interpreted as a Posix basic regular
expression.</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>e</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>The pattern is interpreted as a Posix extended regular
expression (default).</p>
</td>
<tr valign="top" align="left">
<td width="23%"></td>
<td width="2%">

<p><i>i</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>The regular expression is to be applied in a
case-insensitive manner.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Note that this option is available only if <b>ctags</b>
was compiled with support for regular expressions, which
depends upon your platform. You can determine if support for
regular expressions is compiled in by examining the output
of the <b>&minus;&minus;version</b> option, which will
include &quot;+regex&quot; in the compiled feature list.</p>
<!-- INDENTATION -->
<p>For more information on the regular expressions used by
<b>ctags</b>, see either the <b>regex(5,7)</b> man page, or
the GNU info documentation for regex (e.g. &quot;info
regex&quot;).</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;sort</b>[=<i>yes</i>|<i>no</i>|<i>foldcase</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Indicates whether the tag file should be sorted on the
tag name (default is <i>yes</i>). Note that the original
<b>vi</b>(1) required sorted tags. The <i>foldcase</i> value
specifies case insensitive (or case-folded) sorting. Fast
binary searches of tag files sorted with case-folding will
require special support from tools using tag files, such as
that found in the ctags readtags library, or Vim version 6.2
or higher (using &quot;set ignorecase&quot;). This option
must appear before the first file name. [Ignored in etags
mode]</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;tag&minus;relative</b>[=<i>yes</i>|<i>no</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Indicates that the file paths recorded in the tag file
should be relative to the directory containing the tag file,
rather than relative to the current directory, unless the
files supplied on the command line are specified with
absolute paths. This option must appear before the first
file name. The default is <i>yes</i> when running in etags
mode (see the <b>&minus;e</b> option), <i>no</i>
otherwise.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;totals</b>[=<i>yes</i>|<i>no</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Prints statistics about the source files read and the tag
file written during the current invocation of <b>ctags</b>.
This option is off by default. This option must appear
before the first file name.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">

<p><b>&minus;&minus;verbose</b>[=<i>yes</i>|<i>no</i>]</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Enable verbose mode. This prints out information on
option processing and a brief message describing what action
is being taken for each file considered by <b>ctags</b>.
Normally, <b>ctags</b> does not read command line arguments
until after options are read from the configuration files
(see <b>FILES</b>, below) and the <b>CTAGS</b> environment
variable. However, if this option is the first argument on
the command line, it will take effect before any options are
read from these sources. The default is <i>no</i>.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>&minus;&minus;version</b></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="82%">
<p>Prints a version identifier for <b>ctags</b> to standard
output, and then exits. This is guaranteed to always contain
the string &quot;Exuberant Ctags&quot;.</p>
</td>
</table>
<a name="OPERATIONAL DETAILS"></a>
<h2>OPERATIONAL DETAILS</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>As <b>ctags</b> considers each file name in turn, it
tries to determine the language of the file by applying the
following three tests in order: if the file extension has
been mapped to a language, if the file name matches a shell
pattern mapped to a language, and finally if the file is
executable and its first line specifies an interpreter using
the Unix-style &quot;#!&quot; specification (if supported on
the platform). If a language was identified, the file is
opened and then the appropriate language parser is called to
operate on the currently open file. The parser parses
through the file and adds an entry to the tag file for each
language object it is written to handle. See <b>TAG FILE
FORMAT</b>, below, for details on these entries.</p>
<!-- INDENTATION -->
<p>This implementation of <b>ctags</b> imposes no formatting
requirements on C code as do legacy implementations. Older
implementations of ctags tended to rely upon certain
formatting assumptions in order to help it resolve coding
dilemmas caused by preprocessor conditionals.</p>
<!-- INDENTATION -->
<p>In general, <b>ctags</b> tries to be smart about
conditional preprocessor directives. If a preprocessor
conditional is encountered within a statement which defines
a tag, <b>ctags</b> follows only the first branch of that
conditional (except in the special case of &quot;#if
0&quot;, in which case it follows only the last branch). The
reason for this is that failing to pursue only one branch
can result in ambiguous syntax, as in the following
example:</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="78%">
<p>#ifdef TWO_ALTERNATIVES<br>
struct {<br>
#else<br>
union {<br>
#endif</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="28%"></td>
<td width="72%">
<p>short a;<br>
long b;</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="78%">
<p>}</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>Both branches cannot be followed, or braces become
unbalanced and <b>ctags</b> would be unable to make sense of
the syntax.</p>
<!-- INDENTATION -->
<p>If the application of this heuristic fails to properly
parse a file, generally due to complicated and inconsistent
pairing within the conditionals, <b>ctags</b> will retry the
file using a different heuristic which does not selectively
follow conditional preprocessor branches, but instead falls
back to relying upon a closing brace (&quot;}&quot;) in
column 1 as indicating the end of a block once any brace
imbalance results from following a #if conditional
branch.</p>
<!-- INDENTATION -->
<p><b>Ctags</b> will also try to specially handle arguments
lists enclosed in double sets of parentheses in order to
accept the following conditional construct:</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="78%">
<p>extern void foo __ARGS((int one, char two));</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>Any name immediately preceding the &quot;((&quot; will be
automatically ignored and the previous name will be
used.</p>
<!-- INDENTATION -->
<p>C++ operator definitions are specially handled. In order
for consistency with all types of operators (overloaded and
conversion), the operator name in the tag file will always
be preceded by the string &quot;operator &quot; (i.e. even
if the actual operator definition was written as
&quot;operator&lt;&lt;&quot;).</p>
<!-- INDENTATION -->
<p>After creating or appending to the tag file, it is sorted
by the tag name, removing identical tag lines.</p>
</td>
</table>
<a name="TAG FILE FORMAT"></a>
<h2>TAG FILE FORMAT</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>When not running in etags mode, each entry in the tag
file consists of a separate line, each looking like this in
the most general case:</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="12%"></td>
<td width="88%">

<p>tag_name&lt;TAB&gt;file_name&lt;TAB&gt;ex_cmd;&quot;&lt;TAB&gt;extension_fields</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>The fields and separators of these lines are specified as
follows:</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="17%"></td>
<td width="3%">

<p>1.</p>
</td>
<td width="3%"></td>
<td width="77%">

<p>tag name</p>
</td>
<tr valign="top" align="left">
<td width="17%"></td>
<td width="3%">

<p>2.</p>
</td>
<td width="3%"></td>
<td width="77%">

<p>single tab character</p>
</td>
<tr valign="top" align="left">
<td width="17%"></td>
<td width="3%">

<p>3.</p>
</td>
<td width="3%"></td>
<td width="77%">

<p>name of the file in which the object associated with the
tag is located</p>
</td>
<tr valign="top" align="left">
<td width="17%"></td>
<td width="3%">

<p>4.</p>
</td>
<td width="3%"></td>
<td width="77%">

<p>single tab character</p>
</td>
<tr valign="top" align="left">
<td width="17%"></td>
<td width="3%">

<p>5.</p>
</td>
<td width="3%"></td>
<td width="77%">

<p>EX command used to locate the tag within the file;
generally a search pattern (either /pattern/ or ?pattern?)
or line number (see <b>&minus;&minus;excmd</b>). Tag file
format 2 (see <b>&minus;&minus;format</b>) extends this EX
command under certain circumstances to include a set of
extension fields (described below) embedded in an EX comment
immediately appended to the EX command, which leaves it
backward-compatible with original <b>vi</b>(1)
implementations.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>A few special tags are written into the tag file for
internal purposes. These tags are composed in such a way
that they always sort to the top of the file. Therefore, the
first two characters of these tags are used a magic number
to detect a tag file for purposes of determining whether a
valid tag file is being overwritten rather than a source
file.</p>
<!-- INDENTATION -->
<p>Note that the name of each source file will be recorded
in the tag file exactly as it appears on the command line.
Therefore, if the path you specified on the command line was
relative to the current directory, then it will be recorded
in that same manner in the tag file. See, however, the
<b>&minus;&minus;tag&minus;relative</b> option for how this
behavior can be modified.</p>
<!-- INDENTATION -->
<p>Extension fields are tab-separated key-value pairs
appended to the end of the EX command as a comment, as
described above. These key value pairs appear in the general
form &quot;<i>key</i>:<i>value</i>&quot;. Their presence in
the lines of the tag file are controlled by the
<b>&minus;&minus;fields</b> option. The possible keys and
the meaning of their values are as follows:</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">

<p><i>access</i></p>
</td>
<td width="9%"></td>
<td width="71%">

<p>Indicates the visibility of this class member, where
<i>value</i> is specific to the language.</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">

<p><i>file</i></p>
</td>
<td width="9%"></td>
<td width="71%">

<p>Indicates that the tag has file-limited visibility. This
key has no corresponding value.</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">

<p><i>kind</i></p>
</td>
<td width="9%"></td>
<td width="71%">

<p>Indicates the type, or kind, of tag. Its value is either
one of the corresponding one-letter flags described under
the various <b>&minus;&minus;&lt;LANG&gt;&minus;kinds</b>
options above, or a full name. It is permitted (and is, in
fact, the default) for the key portion of this field to be
omitted. The optional behaviors are controlled with the
<b>&minus;&minus;fields</b> option.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><i>implementation</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="29%"></td>
<td width="71%">
<p>When present, this indicates a limited implementation
(abstract vs. concrete) of a routine or class, where
<i>value</i> is specific to the language
(&quot;virtual&quot; or &quot;pure virtual&quot; for C++;
&quot;abstract&quot; for Java).</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="14%">

<p><i>inherits</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>When present, <i>value</i>. is a comma-separated list of
classes from which this class is derived (i.e. inherits
from).</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="14%">

<p><i>signature</i></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>When present, <i>value</i> is a language-dependent
representation of the signature of a routine. A routine
signature in its complete form specifies the return type of
a routine and its formal argument list. This extension field
is presently supported only for C-based languages and does
not include the return type.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>In addition, information on the scope of the tag
definition may be available, with the key portion equal to
some language-dependent construct name and its value the
name declared for that construct in the program. This scope
entry indicates the scope in which the tag was found. For
example, a tag generated for a C structure member would have
a scope looking like &quot;struct:myStruct&quot;.</p>
</td>
</table>
<a name="HOW TO USE WITH VI"></a>
<h2>HOW TO USE WITH VI</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>Vi will, by default, expect a tag file by the name
&quot;tags&quot; in the current directory. Once the tag file
is built, the following commands exercise the tag indexing
feature:</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="14%">

<p><b>vi &minus;t tag</b></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Start vi and position the cursor at the file and line
where &quot;tag&quot; is defined.</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="14%">

<p><b>:ta tag</b></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Find a tag.</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="14%">

<p><b>Ctrl-]</b></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Find the tag under the cursor.</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="14%">

<p><b>Ctrl-T</b></p>
</td>
<td width="4%"></td>
<td width="71%">

<p>Return to previous location before jump to tag (not
widely implemented).</p>
</td>
</table>
<a name="HOW TO USE WITH GNU EMACS"></a>
<h2>HOW TO USE WITH GNU EMACS</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>Emacs will, by default, expect a tag file by the name
&quot;TAGS&quot; in the current directory. Once the tag file
is built, the following commands exercise the tag indexing
feature:</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>M-x visit&minus;tags&minus;table &lt;RET&gt; FILE
&lt;RET&gt;</b></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="26%"></td>
<td width="74%">
<p>Select the tag file, &quot;FILE&quot;, to use.</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>M-. [TAG] &lt;RET&gt;</b></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="26%"></td>
<td width="74%">
<p>Find the first definition of TAG. The default tag is the
identifier under the cursor.</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="5" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">

<p><b>M-*</b></p>
</td>
<td width="4%"></td>
<td width="72%">

<p>Pop back to where you previously invoked
&quot;M-.&quot;.</p>
</td>
<td width="2%">
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">

<p><b>C-u M-.</b></p>
</td>
<td width="4%"></td>
<td width="72%">

<p>Find the next definition for the last tag.</p>
</td>
<td width="2%">
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>For more commands, see the <i>Tags</i> topic in the Emacs
info document.</p>
</td>
</table>
<a name="HOW TO USE WITH NEDIT"></a>
<h2>HOW TO USE WITH NEDIT</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>NEdit version 5.1 and later can handle the new extended
tag file format (see <b>&minus;&minus;format</b>). To make
NEdit use the tag file, select &quot;File&minus;&gt;Load
Tags File&quot;. To jump to the definition for a tag,
highlight the word, the press Ctrl-D. NEdit 5.1 can can read
multiple tag files from different directories. Setting the X
resource nedit.tagFile to the name of a tag file instructs
NEdit to automatically load that tag file at startup
time.</p>
</td>
</table>
<a name="CAVEATS"></a>
<h2>CAVEATS</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>Because <b>ctags</b> is neither a preprocessor nor a
compiler, use of preprocessor macros can fool <b>ctags</b>
into either missing tags or improperly generating
inappropriate tags. Although <b>ctags</b> has been designed
to handle certain common cases, this is the single biggest
cause of reported problems. In particular, the use of
preprocessor constructs which alter the textual syntax of C
can fool <b>ctags</b>. You can work around many such
problems by using the <b>&minus;I</b> option.</p>
<!-- INDENTATION -->
<p>Note that since <b>ctags</b> generates patterns for
locating tags (see the <b>&minus;&minus;excmd</b> option),
it is entirely possible that the wrong line may be found by
your editor if there exists another source line which is
identical to the line containing the tag. The following
example demonstrates this condition:</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="78%">
<p>int variable;</p>
<!-- INDENTATION -->
<p>/* ... */<br>
void foo(variable)<br>
int variable;<br>
{</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="28%"></td>
<td width="72%">
<p>/* ... */</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="78%">
<p>}</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>Depending upon which editor you use and where in the code
you happen to be, it is possible that the search pattern may
locate the local parameter declaration in foo() before it
finds the actual global variable definition, since the lines
(and therefore their search patterns are identical). This
can be avoided by use of the
<b>&minus;&minus;excmd</b>=<i>n</i> option.</p>
</td>
</table>
<a name="BUGS"></a>
<h2>BUGS</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><b>Ctags</b> has more options than <b>ls</b>(1).</p>
<!-- INDENTATION -->
<p>When parsing a C++ member function definition (e.g.
&quot;className::function&quot;), <b>ctags</b> cannot
determine whether the scope specifier is a class name or a
namespace specifier and always lists it as a class name in
the scope portion of the extension fields. Also, if a C++
function is defined outside of the class declaration (the
usual case), the access specification (i.e. public,
protected, or private) and implementation information (e.g.
virtual, pure virtual) contained in the function declaration
are not known when the tag is generated for the function
definition. It will, however be available for prototypes
(e.g <b>&minus;&minus;c++&minus;kinds</b>=<i>+p</i>).</p>
<!-- INDENTATION -->
<p>No qualified tags are generated for language objects
inherited into a class.</p>
</td>
</table>
<a name="ENVIRONMENT VARIABLES"></a>
<h2>ENVIRONMENT VARIABLES</h2>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">

<p><b>CTAGS</b></p>
</td>
<td width="3%"></td>
<td width="77%">

<p>If this environment variable exists, it will be expected
to contain a set of default options which are read when
<b>ctags</b> starts, after the configuration files listed in
<b>FILES</b>, below, are read, but before any command line
options are read. Options appearing on the command line will
override options specified in this variable. Only options
will be read from this variable. Note that all white space
in this variable is considered a separator, making it
impossible to pass an option parameter containing an
embedded space. If this is a problem, use a configuration
file instead.</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">

<p><b>ETAGS</b></p>
</td>
<td width="3%"></td>
<td width="77%">

<p>Similar to the <b>CTAGS</b> variable above, this
variable, if found, will be read when <b>etags</b> starts.
If this variable is not found, <b>etags</b> will try to use
<b>CTAGS</b> instead.</p>
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">

<p><b>TMPDIR</b></p>
</td>
<td width="3%"></td>
<td width="77%">

<p>On Unix-like hosts where mkstemp() is available, the
value of this variable specifies the directory in which to
place temporary files. This can be useful if the size of a
temporary file becomes too large to fit on the partition
holding the default temporary directory defined at
compilation time. <b>ctags</b> creates temporary files only
if either (1) an emacs-style tag file is being generated,
(2) the tag file is being sent to standard output, or (3)
the program was compiled to use an internal sort algorithm
to sort the tag files instead of the the sort utility of the
operating system. If the sort utility of the operating
system is being used, it will generally observe this
variable also. Note that if <b>ctags</b> is setuid, the
value of TMPDIR will be ignored.</p>
</td>
</table>
<a name="FILES"></a>
<h2>FILES</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p><i>/ctags.cnf (on MSDOS, MSWindows only)<br>
/etc/ctags.conf<br>
/usr/local/etc/ctags.conf<br>
$HOME/.ctags<br>
$HOME/ctags.cnf (on MSDOS, MSWindows only)<br>
.ctags<br>
ctags.cnf (on MSDOS, MSWindows only)</i></p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="78%">
<p>If any of these configuration files exist, each will be
expected to contain a set of default options which are read
in the order listed when <b>ctags</b> starts, but before the
<b>CTAGS</b> environment variable is read or any command
line options are read. This makes it possible to set up
site-wide, personal or project-level defaults. It is
possible to compile <b>ctags</b> to read an additional
configuration file before any of those shown above, which
will be indicated if the output produced by the
<b>&minus;&minus;version</b> option lists the
&quot;custom-conf&quot; feature. Options appearing in the
<b>CTAGS</b> environment variable or on the command line
will override options specified in these files. Only options
will be read from these files. Note that the option files
are read in line-oriented mode in which spaces are
significant (since shell quoting is not possible). Each line
of the file is read as one command line parameter (as if it
were quoted with single quotes). Therefore, use new lines to
indicate separate command-line arguments.</p>
</td>
</table>
<!-- TABS -->
<table width="100%" border=0 rules="none" frame="void"
       cols="5" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">

<p><i>tags</i></p>
</td>
<td width="5%"></td>
<td width="58%">

<p>The default tag file created by <b>ctags</b>.</p>
</td>
<td width="20%">
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">

<p><i>TAGS</i></p>
</td>
<td width="5%"></td>
<td width="58%">

<p>The default tag file created by <b>etags</b>.</p>
</td>
<td width="20%">
</td>
</table>
<a name="SEE ALSO"></a>
<h2>SEE ALSO</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>The official Exuberant Ctags web site at:</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="78%">
<p>http://ctags.sourceforge.net</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>Also <b>ex</b>(1), <b>vi</b>(1), <b>elvis</b>, or, better
yet, <b>vim</b>, the official editor of <b>ctags</b>. For
more information on <b>vim</b>, see the VIM Pages web site
at:</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="78%">
<p>http://www.vim.org/</p></td>
</table>
<a name="AUTHOR"></a>
<h2>AUTHOR</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>Darren Hiebert &lt;dhiebert at
users.sourceforge.net&gt;<br>
http://DarrenHiebert.com/</p>
</td>
</table>
<a name="MOTIVATION"></a>
<h2>MOTIVATION</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>&quot;Think ye at all times of rendering some service to
every member of the human race.&quot;</p>
<!-- INDENTATION -->
<p>&quot;All effort and exertion put forth by man from the
fullness of his heart is worship, if it is prompted by the
highest motives and the will to do service to
humanity.&quot;</p>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="78%">
<p>&minus;&minus; From the Baha&rsquo;i Writings</p></td>
</table>
<a name="CREDITS"></a>
<h2>CREDITS</h2>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void"
       cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">
<p>This version of <b>ctags</b> was originally derived from
and inspired by the ctags program by Steve Kirkendall
&lt;kirkenda@cs.pdx.edu&gt; that comes with the Elvis vi
clone (though virtually none of the original code
remains).</p>
<!-- INDENTATION -->
<p>Credit is also due Bram Moolenaar &lt;Bram@vim.org&gt;,
the author of <b>vim</b>, who has devoted so much of his
time and energy both to developing the editor as a service
to others, and to helping the orphans of Uganda.</p>
<!-- INDENTATION -->
<p>The section entitled &quot;HOW TO USE WITH GNU
EMACS&quot; was shamelessly stolen from the info page for
GNU <b>etags</b>.</p>
</td>
</table>
<hr>
</body>
</html>