MaskRay marked 2 inline comments as done.
MaskRay added inline comments.

Comment at: clang-tidy/portability/SIMDIntrinsicsCheck.cpp:141
   if (!New.empty()) {
     std::string Message;
     // If Suggest is true, give a P0214 alternative, otherwise point it out it
lebedev.ri wrote:
> Here too, surely some sane static size can be picked?
Changed to   `llvm::SmallString<32> Std;`

The choices can be:

"dimsum" (

strlen("std::experimental") = 17 is the longest. Raise to 32 because the <32u> 
template instantiation has been used elsewhere.

Comment at: clang-tidy/portability/SIMDIntrinsicsCheck.h:32
+  std::string Std;
   const bool Suggest;
lebedev.ri wrote:
> This could be `llvm::SmallString<32> Std;`, actually. (or 
> `strlen("std::experimental")`)
Answered above.

  rCTE Clang Tools Extra

cfe-commits mailing list

Reply via email to