]> granicus.if.org Git - clang/commit
Implement basic support for indexing function templates in
authorDouglas Gregor <dgregor@apple.com>
Tue, 31 Aug 2010 17:01:39 +0000 (17:01 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 31 Aug 2010 17:01:39 +0000 (17:01 +0000)
commitfe72e9ceeae6cc8669cd8bb722425300190638ea
treea0807deac8023b9fa4a307a32186344289034890
parentf13721dd91dda7675e499331a2770308ad20ca61
Implement basic support for indexing function templates in
libclang. This includes:
  - Cursor kind for function templates, with visitation logic
  - Cursor kinds for template parameters, with visitation logic
  - Visitation logic for template specialization types, qualified type
  locations
  - USR generation for function templates, template specialization
  types, template parameter types.

Also happens to fix PR7804, which I tripped across while testing.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112604 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang-c/Index.h
include/clang/AST/DeclTemplate.h
lib/Sema/SemaTemplate.cpp
test/Index/index-templates.cpp [new file with mode: 0644]
tools/libclang/CIndex.cpp
tools/libclang/CIndexUSRs.cpp
tools/libclang/CXCursor.cpp