[PATCH] D157905: [include-cleaner] Filter references to identity macros

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 17 09:37:35 PDT 2023


sammccall accepted this revision.
sammccall added inline comments.


================
Comment at: clang-tools-extra/include-cleaner/lib/Analysis.cpp:44
+  // not the macro definition. So ignore such macros.
+  return MI && MI->getNumTokens() == 1 && MI->isObjectLike() &&
+         MI->getReplacementToken(0).getIdentifierInfo() == M.Name;
----------------
still call out stdout/stderr?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157905



More information about the cfe-commits mailing list