Hello, i would like to suggest a fix for one of the checks in clang-tidy. The bug was reported in https://bugs.llvm.org/show_bug.cgi?id=28406 where you can find more information.
With the following code:
#define BODY {} void foo(void) { [] () BODY; }
we have got this crash:
clang-tidy -checks='-*,modernize-redundant-void-arg' t.cc -- -std=c++11 clang-tidy: tools/clang/include/clang/Basic/SourceManager.h:414: const clang::SrcMgr::ExpansionInfo &clang::SrcMgr::SLocEntry::getExpansion() const: Assertion `isExpansion() && "Not a macro expansion SLocEntry!
Hope this can help.
I also have add a new test.