aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorHenry Jen <henryjen@ztune.net>2020-04-16 07:58:02 -0400
committerAaron Ballman <aaron@aaronballman.com>2020-04-16 08:06:58 -0400
commit38ca7b11db2d22e0fdfbff3f19276f9796f747d3 (patch)
tree59a21d564d0aa2589463cabaa484bebb9d45e3c7 /clang/tools/c-index-test/c-index-test.c
parentbac85ab3b55d02f0a1e824712f185af42cd1ea04 (diff)
downloadllvm-38ca7b11db2d22e0fdfbff3f19276f9796f747d3.zip
llvm-38ca7b11db2d22e0fdfbff3f19276f9796f747d3.tar.gz
llvm-38ca7b11db2d22e0fdfbff3f19276f9796f747d3.tar.bz2
Expose AtomicType in the libclang C API.
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index d4de743..6e82bf9 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -1579,6 +1579,12 @@ static enum CXChildVisitResult PrintType(CXCursor cursor, CXCursor p,
PrintTypeTemplateArgs(CT, " [canonicaltemplateargs/%d=");
}
}
+ /* Print the value type if it exists. */
+ {
+ CXType VT = clang_Type_getValueType(T);
+ if (VT.kind != CXType_Invalid)
+ PrintTypeAndTypeKind(VT, " [valuetype=%s] [valuetypekind=%s]");
+ }
/* Print the modified type if it exists. */
{
CXType MT = clang_Type_getModifiedType(T);