[PATCH] D97445: [clang][sema] Ignore xor-used-as-pow if both sides are macros

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 25 05:04:32 PST 2021


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

LGTM with a small nit, thanks!



================
Comment at: clang/lib/Sema/SemaExpr.cpp:12105
 
+  // Do not diagnose if both LHS and RHS are macros
+  if (XorLHS.get()->getExprLoc().isMacroID() &&
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97445



More information about the cfe-commits mailing list