[PATCH] D62954: [Syntax] Add a helper to find expansion by its first spelled token

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 18 07:58:57 PDT 2019


ilya-biryukov added inline comments.


================
Comment at: clang/include/clang/Tooling/Syntax/Tokens.h:209
+  ///    #define FOO 1 2 3 // Expansion from "#define FOO 1" to an empty range.
+  ///    FOO               // Expansion from "FOO" to "1 2 3".
+  struct Expansion {
----------------
sammccall wrote:
> also mention #include?
Added an example and a FIXME mentioning this does not work yet.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D62954





More information about the cfe-commits mailing list