[PATCH] D59885: [Lex] Allow to consume tokens while preprocessing
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 16 07:04:13 PDT 2019
ilya-biryukov added inline comments.
================
Comment at: clang/include/clang/Lex/Preprocessor.h:120
+/// callback that records tokens.
+enum class TokenSource {
+ File, // a token coming directly from a file that is not a macro directive,
----------------
This is supposed to provide enough information to distinguish token from an intermediate macro expansion from a token of a final expanded stream.
It's not very well thought-through, though, the final set of enum values will definitely end up being different.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59885/new/
https://reviews.llvm.org/D59885
More information about the cfe-commits
mailing list