diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2014-04-07 14:59:13 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2014-04-07 14:59:13 +0000 |
commit | 97e10ae5775bc5a9d87ff864d86a9e6793d8099e (patch) | |
tree | c8ea30d20c3aadcdbeeba6837973042b4519f8cf /tools/c-index-test | |
parent | 3d0e84831b4deb665ae1b684c206820d23077a58 (diff) | |
download | clang-97e10ae5775bc5a9d87ff864d86a9e6793d8099e.tar.gz clang-97e10ae5775bc5a9d87ff864d86a9e6793d8099e.tar.bz2 clang-97e10ae5775bc5a9d87ff864d86a9e6793d8099e.tar.xz |
libclang: add clang_CXXMethod_isConst API that allows to determine if a C++
member function or member function template is declared 'const'
Patch by Kevin Funk with testcase updates by me.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index f6b5510292..6a48196a45 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -768,6 +768,8 @@ static void PrintCursor(CXCursor Cursor, printf(" (static)"); if (clang_CXXMethod_isVirtual(Cursor)) printf(" (virtual)"); + if (clang_CXXMethod_isConst(Cursor)) + printf(" (const)"); if (clang_CXXMethod_isPureVirtual(Cursor)) printf(" (pure)"); if (clang_Cursor_isVariadic(Cursor)) |