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
Crash clang-tidy on include map #27672
Comments
assigned to @mgehre |
More information is needed.
|
|
Thanks, I was able to reproduce this: $ cat /tmp/q.cc The problem is in the recently added hasReturnValue matcher: AST_MATCHER_P(ReturnStmt, hasReturnValue, internal::Matcher, It dereferences Node.getRetValue() which can be null. The fix should be committed soon: http://reviews.llvm.org/D18991 |
The mentioned fix is committed in http://reviews.llvm.org/rL266043 |
Extended Description
Clang tidy crashes on a cpp-file which only contains
#include <map>
(reduced from larger code)Replacing the code by the preprocessed code makes this crash go away.
Command: clang-tidy -checks=* -extra-arg="-D__clang_tidy__" "t.cpp"
Clang-tidy has been build on revision 265835, system is an Ubuntu 14.04 64bit
The text was updated successfully, but these errors were encountered: