johannes accepted this revision.
johannes added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/Tooling/ASTDiff/ASTDiff.cpp:477
+      } else if (String->isUTF16()) {
+        const auto *Chars = reinterpret_cast<const unsigned short *>(Bytes);
+        if (!convertUTF16ToUTF8String(ArrayRef<UTF16>(Chars, NumChars),
----------------
Nit: I wonder if we should use `UTF16` instead of `unsigned int`. Is there a 
guiding principle?


================
Comment at: clang/lib/Tooling/ASTDiff/ASTDiff.cpp:478
+        const auto *Chars = reinterpret_cast<const unsigned short *>(Bytes);
+        if (!convertUTF16ToUTF8String(ArrayRef<UTF16>(Chars, NumChars),
+                                      UTF8Str))
----------------
Nit: is there a reason for explicitly writing the ArrayRef type? Maybe it's an 
LLVM convention?


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

https://reviews.llvm.org/D126651

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to