steakhal added inline comments.
================ Comment at: clang-tools-extra/clang-tidy/bugprone/NonportableintegerconstantCheck.cpp:54 + + MaskStr = StringRef(MaskStr.lower()); + if (!MaskStr.consume_front("0x")) ---------------- You are assigning a pointer to a temporal std::string. It will dangle. ================ Comment at: clang-tools-extra/clang-tidy/bugprone/NonportableintegerconstantCheck.cpp:58 + + MaskStr = MaskStr.take_while(llvm::isHexDigit); + ---------------- There could be digit separator apostrophes. E.g.: `0x44'4'4`. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90399/new/ https://reviews.llvm.org/D90399 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits