Douglas Gregor
e72fb6f402
Add libclang functions to determine the const/volatile/restrict
...
qualifiers on a CXType. Patch from Stefan Seefeld, test by me.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124377 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-27 16:27:11 +00:00
Douglas Gregor
fbcfeeabed
Eliminate the use of getTypeForDecl from clang_getCursorType() and
...
clang_getDeclObjCTypeEncoding(); use ASTContext's methods instead,
which will (lazily) create the type as needed. Otherwise, we can end
up with null QualTypes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124133 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-24 18:44:28 +00:00
Douglas Gregor
3f0fee315c
Teach clang_getCursorType() about base specifiers and other references
...
to types.
Also, teach clang_getTypeDeclaration() about template specializations,
injected-class-names, and elaborated types.
Fixes <rdar://problem/8506460>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115425 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-02 21:57:58 +00:00
Ted Kremenek
3ce9e7d270
Add clang_isPODType() for querying if the CXType is POD. Implements <rdar://problem/8250669>.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109822 91177308-0d34-0410-b5e6-96231b3b80d8
2010-07-30 00:14:11 +00:00
Ted Kremenek
04c3cf35a8
Add CXType support for FunctionNoProto and FunctionProto types. This includes adding a new
...
function, clang_getResultType(), which returns the result type of the function type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106459 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-21 20:15:39 +00:00
Ted Kremenek
8e0ac174c8
Add CXType and an initial set of supporting functions to libclang. This exposes details of
...
Clang's representation of the C type system to clients. It is nowhere near complete, and will
be expanded on demand.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103809 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-14 21:29:26 +00:00