[PATCH] D49800: [clang-tidy: modernize] modernize-redundant-void-arg crashes when a function body is in a macro
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 9 15:34:25 PDT 2018
alexfh added inline comments.
================
Comment at: clang-tidy/modernize/RedundantVoidArgCheck.cpp:246-247
+ Lambda->getLambdaClass()->getLambdaTypeInfo()->getTypeLoc();
+ End = SM->getSpellingLoc(TypeLoc.getLocEnd());
+ Begin = SM->getSpellingLoc(TypeLoc.getLocStart());
+ } else {
----------------
Will this code also work in the non-macro case?
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D49800
More information about the cfe-commits
mailing list