[PATCH] D147615: [clang][Sema][NFC] Save token name instead of the full token

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 5 18:56:51 PDT 2023


shafik added inline comments.


================
Comment at: clang/lib/Parse/ParseDeclCXX.cpp:962
+  // Save the token name used for static assertion.
+  const char *TokName = Tok.getName();
 
----------------
It looks like this comes from a static array so it should be fine but let's see what Aaron says.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147615



More information about the cfe-commits mailing list