PiotrZSL accepted this revision. PiotrZSL added a comment. This revision is now accepted and ready to land.
LGTM ================ Comment at: clang-tools-extra/clang-tidy/readability/MagicNumbersCheck.h:52-59 + bool isUserDefinedLiteral( + const clang::ast_matchers::MatchFinder::MatchResult &Result, + const clang::Expr *Literal) const { + auto Parents = Result.Context->getParents(*Literal); + if (Parents.empty()) + return false; + return Parents[0].get<UserDefinedLiteral>() != nullptr; ---------------- Move this to CPP. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D146913/new/ https://reviews.llvm.org/D146913 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits