summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2014-04-07 14:59:13 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2014-04-07 14:59:13 +0000
commite570ede5d1f88e95003ecde3b528c139123faacb (patch)
tree9efd419ad5127f449bafea92537310ad1b5a6cbf /clang/include/clang-c
parent484182779da4b2f2dd8a1f4bc48e5fcf9c97ca56 (diff)
downloadbcm5719-llvm-e570ede5d1f88e95003ecde3b528c139123faacb.tar.gz
bcm5719-llvm-e570ede5d1f88e95003ecde3b528c139123faacb.zip
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. llvm-svn: 205714
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 7eff0a4216a..386e0ffc315 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -4193,6 +4193,12 @@ CINDEX_LINKAGE unsigned clang_CXXMethod_isStatic(CXCursor C);
CINDEX_LINKAGE unsigned clang_CXXMethod_isVirtual(CXCursor C);
/**
+ * \brief Determine if a C++ member function or member function template is
+ * declared 'const'.
+ */
+CINDEX_LINKAGE unsigned clang_CXXMethod_isConst(CXCursor C);
+
+/**
* \brief Given a cursor that represents a template, determine
* the cursor kind of the specializations would be generated by instantiating
* the template.
OpenPOWER on IntegriCloud