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
modernize-use-using assertion #29505
Comments
*** Bug llvm/llvm-bugzilla-archive#31452 has been marked as a duplicate of this bug. *** |
*** Bug llvm/llvm-bugzilla-archive#31490 has been marked as a duplicate of this bug. *** |
bug 31490 has a stack trace. |
Can someone provide an isolated (and, ideally, reduced) test case? |
Actually, there's a test case in llvm/llvm-bugzilla-archive#31452 $ cat test.cc $ clang-tidy -checks=-*,modernize-use-using test.cc -- -std=c++11 |
A stray cat sneaked into the test case. Here's the actual test: struct Foo; |
Should be fixed in r292229. |
mentioned in issue llvm/llvm-bugzilla-archive#31452 |
mentioned in issue llvm/llvm-bugzilla-archive#31490 |
Extended Description
Running the following command causes a failed assertion in Lexer::getSourceLocation because the location passed in to the function is not within the BufferStart and BufferEnd range.
clang-tidy -checks=-*,modernize-use-using E:\Desktop\test.cpp -- -std=c++14
I suspect this issue boils down to what includes are in use by the source manager, so my test case requires MSVC 2015. However, the test is quite simple:
#include
typedef std::map<int, int> m;
I do not think this is a clang-tidy bug, but is likely instead a clang frontend bug with the lexer. However, since I can only reproduce this bug through clang-tidy, I am reporting it here.
The text was updated successfully, but these errors were encountered: