This is an archive of the discontinued LLVM Phabricator instance.

Customize simplified dumping and matching of LambdaExpr
ClosedPublic

Authored by steveire on Dec 18 2019, 2:54 PM.

Diff Detail

Event Timeline

steveire created this revision.Dec 18 2019, 2:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 18 2019, 2:54 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Harbormaster completed remote builds in B42767: Diff 234636.
aaron.ballman accepted this revision.Dec 20 2019, 11:33 AM

LGTM aside from some nits.

clang/include/clang/AST/ASTNodeTraverser.h
134

This seems like it may be over the 80 col limit?

663

const CXXMethodDecl *, or just sink it into the range-based for loop since we don't really need the local anyway.

664

const auto *

clang/lib/ASTMatchers/ASTMatchFinder.cpp
219

You can elide the braces, also you can remove the else after a return.

223–224
if (const TemplateParameterList *TPL = Node->getTemplateParameterList()) {
  ...
}
226

Elide braces

232

const CXXMethodDecl *

234

Elide braces

This revision is now accepted and ready to land.Dec 20 2019, 11:33 AM
This revision was automatically updated to reflect the committed changes.