[PATCH] D38578: [preamble] Also record the "skipping" state of the preprocessor

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 6 03:21:35 PDT 2017


ilya-biryukov requested changes to this revision.
ilya-biryukov added a comment.
This revision now requires changes to proceed.

Also, one more important thing. I'll unaccept revision for now, before getting feedback on this one.



================
Comment at: include/clang/Lex/Preprocessor.h:333
 
+    PreambleSkipInfo SkipInfo;
+
----------------
ilya-biryukov wrote:
> Maybe move closer to other fields to avoid mixing data and functions?
Maybe initialize `SkipInfo` with default values? Or even better: forbid default constructor and put it into `llvm::Optional`?

It's a public member, so I guess there's a huge potential some code will eventually get into undefined behavior when using it.


https://reviews.llvm.org/D38578





More information about the cfe-commits mailing list