[PATCH] D119949: [Clang-tidy] Check the existence of ElaboratedType's qualifiers

Richard via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 1 07:10:22 PST 2022


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

Fix one nit and ship



================
Comment at: clang-tools-extra/clang-tidy/readability/StaticAccessedThroughInstanceCheck.cpp:74
+  PrintingPolicyWithSupressedTag.PrintCanonicalTypes =
+      BaseExpr->getType()->isTypedefNameType() ? false : true;
+
----------------
Simplify to `!BaseExpr->getType()->isTypedefNameType();`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119949



More information about the cfe-commits mailing list