ilya-biryukov added inline comments.
================ Comment at: include/clang/AST/RecursiveASTVisitor.h:2416 FunctionProtoTypeLoc Proto = TL.getAsAdjusted<FunctionProtoTypeLoc>(); + if (S->hasExplicitParameters()) { ---------------- Could we add a comment on why we can't simply call the `TraverseTypeLoc` here? Something like: ``` /// We manually deconstruct the TypeLoc for the lambda type to only /// visit the parts of the type that were explicitly specified. /// We do not call the `TraverseTypeLoc` function to make sure we /// visit explicitly specified parts of the lambda even when shouldWalkTypeOfTypeLocs() /// return false. ``` Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D55820/new/ https://reviews.llvm.org/D55820 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits