By default, ctags generates a file named tags in the current directory which summarizes the locations of various objects in the C or FORTRAN sourcefiles named on the command line. All files with a .c or .h suffix are treated as C source files, while files with a .f suffix are treated as FORTRAN source files. For C source code, ctags summarizes function, macro and typedef definitions. For FORTRAN source code, it summarizes function and subroutine definitions. See tags for a description of the format of the tags file.
in more. The idea is that you tell the utility which function you want to look at and it checks the tags file to determine which source file contains the function.
ctags makes special provision for the function
ctags uses sort to sort the file by tag name, according to the POSIX locale's collation sequence.
appends output to the existing tags file rather than overwriting the file.
produces a tags file that searches backward from the current position to find the pattern matching the tag.
searches for tag patterns in the forward direction (default).
generates a file named tagfile rather than the default tags.
suppresses warning messages.
produces a human-readable report on the standard output. The report gives the definition name, the line number of where it appears in the file, the name of the file in which it appears and the text of that line. ctags arranges this output in columns and sorts it in order by tag name according to the current locale's collation sequence. This option does not produce a tags file.
Possible exit status values are:
Failure due to any of the following:
POSIX.2. x/OPEN Portability Guide 4.0. 4.2 BSD UNIX and up. Windows 2000. Windows XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008. Windows 8. Windows Server 2012.
Recognizing a function definition in C source code can be somewhat difficult. Since ctags does not know which C preprocessor symbols are defined, there may be some misplaced function definition information if sections of code within #if...#endif are not complete blocks.
ctags invokes the sort command internally. Be sure that ctags does not access the Windows sort command instead of the sort provided with MKS Toolkit; otherwise, ctags fails. Modify your path search rules if you have this problem.
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
- File Formats:
MKS Toolkit 9.5 Documentation Build 3.