-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix seg fault for catch(...) #718
Conversation
clang-tidy review says "All clean, LGTM! 👍" |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #718 +/- ##
==========================================
+ Coverage 94.54% 94.60% +0.05%
==========================================
Files 49 49
Lines 7189 7189
==========================================
+ Hits 6797 6801 +4
+ Misses 392 388 -4
|
lib/Differentiator/StmtClone.cpp
Outdated
DEFINE_CLONE_STMT(CXXCatchStmt, (Node->getCatchLoc(), | ||
static_cast<VarDecl*>( | ||
CloneDeclOrNull(Node->getExceptionDecl())), | ||
Clone(Node->getHandlerBlock()))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DEFINE_CLONE_STMT(CXXCatchStmt, (Node->getCatchLoc(), | |
static_cast<VarDecl*>( | |
CloneDeclOrNull(Node->getExceptionDecl())), | |
Clone(Node->getHandlerBlock()))) | |
DEFINE_CLONE_STMT(CXXCatchStmt, (Node->getCatchLoc(), CloneDeclOrNull(Node->getExceptionDecl()), Clone(Node->getHandlerBlock()))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed the statiic_cast
and ran clang-format again 👍🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either way the formatting looks ugly... let's move forward.
clang-tidy review says "All clean, LGTM! 👍" |
fixes #86