[PATCH] D62954: [Syntax] Add a helper to find expansion by its first spelled token
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 18 09:15:40 PDT 2019
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/lib/Tooling/Syntax/Tokens.cpp:207
+ auto FileIt = Files.find(SourceMgr->getFileID(Spelled->location()));
+ assert(FileIt != Files.end());
+
----------------
This assert could use a message
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