diff options
author | Brad King <brad.king@kitware.com> | 2019-04-08 15:43:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-09 13:31:27 (GMT) |
commit | 3ae91acdf018cb8f6e69a825fd165180d673e7b1 (patch) | |
tree | 682269361e076562bf40cdf53e0a87c7ac18664d /test/input | |
parent | a32b2d7470e93d1a537a32056d325239df9856c1 (diff) | |
download | CastXML-3ae91acdf018cb8f6e69a825fd165180d673e7b1.zip CastXML-3ae91acdf018cb8f6e69a825fd165180d673e7b1.tar.gz CastXML-3ae91acdf018cb8f6e69a825fd165180d673e7b1.tar.bz2 |
Output: Add the type of nullptr as a FundamentalType
Extend the `--castxml-output=1` format to support the nullptr type.
The name of the type is `decltype(nullptr)`. Recognize types named
exactly this way (as a literal) and treat them as a FundamentalType.
This gives the `std::nullptr_t` typedef a meaningful representation even
without full decltype support. Leave deeper nullptr-typed expressions
like `decltype((nullptr))` unchanged.
Diffstat (limited to 'test/input')
-rw-r--r-- | test/input/FundamentalType-nullptr.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/input/FundamentalType-nullptr.cxx b/test/input/FundamentalType-nullptr.cxx new file mode 100644 index 0000000..867402e --- /dev/null +++ b/test/input/FundamentalType-nullptr.cxx @@ -0,0 +1,4 @@ +namespace start { +typedef decltype(nullptr) t_NullPtr; +typedef decltype((nullptr)) t_ParenNullPtr; +} |