[libclang] Visit attributes for function and class templates
authorJonathan Coe <jbcoe@me.com>
Mon, 16 Oct 2017 23:43:02 +0000 (23:43 +0000)
committerJonathan Coe <jbcoe@me.com>
Mon, 16 Oct 2017 23:43:02 +0000 (23:43 +0000)
commit578ac7a2ec4a772f97d9cb566c95764ff3d41625
treec431daa18e6558c1044c44141ecedb71ede65bc2
parent4e3d6160db325ce5ba18be99eda2c3555e58609a
[libclang] Visit attributes for function and class templates

Summary: Previously, `VisitAttributes` was not called for function and class templates and thus their attributes were not accessible using libclang.

Reviewers: bkramer, arphaman, rsmith, jbcoe

Reviewed By: jbcoe

Subscribers: cfe-commits

Tags: #clang

Patch by jklaehn (Johann Klähn)

Differential Revision: https://reviews.llvm.org/D36955

llvm-svn: 315958
clang/bindings/python/tests/cindex/test_cursor.py
clang/test/Index/annotate-attribute.cpp
clang/tools/libclang/CIndex.cpp