[PATCH] D75446: [clang][Syntax] Handle macro arguments in spelledForExpanded

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 28 07:00:12 PDT 2020


sammccall accepted this revision.
sammccall added a comment.
This revision is now accepted and ready to land.

Thanks!



================
Comment at: clang/include/clang/Tooling/Syntax/Tokens.h:201
+  /// Returns the subrange of spelled tokens corresponding to AST node spanning
+  /// \p Expanded. If \p Expanded is empty, the returned value is llvm::None.
   ///
----------------
Can we add the motivating use case?
e.g. between the two sentences: "This is the text that should be replaced if a refactoring were to rewrite the node."


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75446





More information about the cfe-commits mailing list