rsmith added inline comments.
================
Comment at: clang/include/clang/Sema/Sema.h:319-346
+class PreferredTypeBuilder::RestoreRAII {
+public:
+ RestoreRAII(RestoreRAII const &) = delete;
+ RestoreRAII &operator=(RestoreRAII const &) = delete;
+
+ explicit RestoreRAII(PreferredTypeBuilder &Builder)
+ : OldType(Builder.Type), OldLoc(Builder.ExpectedLoc), Builder(&Builder)
{}
----------------
Now we store a location along with the expected type, I don't think we need an
RAII object any more. (We would need to save/restore in tentative parsing, if
we ever called any of the parsing functions that set a preferred type, but
tentative parsing shouldn't be doing that.)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56723/new/
https://reviews.llvm.org/D56723
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits