ilya-biryukov added a comment.

Update after investigating with @hokein offline: the `RecursiveASTVisitor` has 
custom code to visit lambda parameters and return type, but it fallback to 
visiting typelocs when both parameters and a return type are specified. 
Unfortunately this fallback does not work when `shouldWalkTypeLocs()` is set to 
false, which is the case for our visitor out here.
It seems reasonable to always visit parameters and return type, rather than 
relying on traversing the full type-loc of the lamda's function type.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55437/new/

https://reviews.llvm.org/D55437



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to