Add TableGen ctags(1) emitter and helper script.
authorSean Silva <silvas@purdue.edu>
Thu, 21 Mar 2013 23:40:38 +0000 (23:40 +0000)
committerSean Silva <silvas@purdue.edu>
Thu, 21 Mar 2013 23:40:38 +0000 (23:40 +0000)
commitcdd21b333a9b495f41fda81b5240360dcba06f7a
tree9e67d095d080ef63ab17ba080ba8fc45f1e3b6d9
parent173c71ff3d06fcca28442e423759357117e1916b
Add TableGen ctags(1) emitter and helper script.

To use this in conjunction with exuberant ctags to generate a single
combined tags file, run tblgen first and then
  $ ctags --append [...]

Since some identifiers have corresponding definitions in C++ code,
it can be useful (if using vim) to also use cscope, and
  :set cscopetagorder=1
so that
  :tag X
will preferentially select the tablegen symbol, while
  :cscope find g X
will always find the C++ symbol.

Patch by Kevin Schoedel!

(a couple small formatting changes courtesy of clang-format)

llvm-svn: 177682
llvm/utils/TableGen/CMakeLists.txt
llvm/utils/TableGen/CTagsEmitter.cpp [new file with mode: 0644]
llvm/utils/TableGen/TableGen.cpp
llvm/utils/TableGen/TableGenBackends.h
llvm/utils/TableGen/tdtags [new file with mode: 0644]