steveire marked 2 inline comments as done. steveire added inline comments.
================ Comment at: clang-tools-extra/clang-query/QueryParser.cpp:243-244 - return new LetQuery(Name, Value); + auto Q = new LetQuery(Name, Value); + Q->RemainingContent = Line; + return Q; ---------------- aaron.ballman wrote: > Would it make more sense to have `Query` with another constructor to hold the > remaining content, and then thread that through `LetQuery`, `MatchQuery`, > etc? Whether there is remaining content or not seems like a pretty important > property of the query, so it seems reasonable to let people construct with > that information rather than set it after the fact. > > If not, these should be `auto *` rather than deducing the pointer. I think it is set after the fact because it is set in `endQuery()`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D71842/new/ https://reviews.llvm.org/D71842 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits