diff options
author | Brad King <brad.king@kitware.com> | 2016-06-17 13:22:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-17 13:27:43 (GMT) |
commit | d5934bd08651dbda95a65ccadcc5f39637d7bc59 (patch) | |
tree | d23909e8a4e704019c1101360098957feb02f7d6 /test/input | |
parent | 9a834141a84c4839949826c7f70b944ffea07b80 (diff) | |
download | CastXML-d5934bd08651dbda95a65ccadcc5f39637d7bc59.zip CastXML-d5934bd08651dbda95a65ccadcc5f39637d7bc59.tar.gz CastXML-d5934bd08651dbda95a65ccadcc5f39637d7bc59.tar.bz2 |
Output: Fix assertion failure on translation-unit-level operators
Refactoring in commit 917c646e (Output: Generalize exclusion of internal
`__castxml` builtins, 2016-04-18) introduced an unconditional call to
`clang::NamedDecl::getName`, but that method asserts that the name is
a valid identifier. Instead call `getIdentifier` ourselves and check
the name only if it is a valid identifier.
GitHub-Issue: #62
Diffstat (limited to 'test/input')
-rw-r--r-- | test/input/nostart.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/input/nostart.cxx b/test/input/nostart.cxx new file mode 100644 index 0000000..37374bc --- /dev/null +++ b/test/input/nostart.cxx @@ -0,0 +1,2 @@ +class A; +A operator+(A,A); |