diff options
author | Brad King <brad.king@kitware.com> | 2015-03-31 14:43:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-31 14:56:14 (GMT) |
commit | 4402138958fac4e9eae008d8987aa2f14278d272 (patch) | |
tree | 0ddb90a01f81686a678d21fd48e8d4eff74e446b /test/input/MethodType-cv.cxx | |
parent | c224a7968998ff627a2dcc3ab41f907c5f8541b0 (diff) | |
download | CastXML-4402138958fac4e9eae008d8987aa2f14278d272.zip CastXML-4402138958fac4e9eae008d8987aa2f14278d272.tar.gz CastXML-4402138958fac4e9eae008d8987aa2f14278d272.tar.bz2 |
Output: Handle function types with no prototype
A FunctionType may be either FunctionProtoType or FunctionNoProtoType.
Check that runtime downcasts to FunctionProtoType succeed before using
them. For FunctionNoProtoType we will simply output the type "int()",
which is compatible with gccxml format (gccxml never lacked prototypes
because it always operates in C++ mode). In CastXML we can encounter
functions with no prototype in C++ modes when traversing Clang buildins.
GitHub-Issue: 1
Diffstat (limited to 'test/input/MethodType-cv.cxx')
0 files changed, 0 insertions, 0 deletions