alexfh added a comment. A couple of nits for now. Will take a closer look later.
================ Comment at: clang-tidy/misc/StringLiteralWithEmbeddedNulCheck.cpp:22 @@ +21,3 @@ +static unsigned int GetCharAt(const StringLiteral *SL, size_t offset) { + if (offset >= SL->getLength()) return 0; + return SL->getCodeUnit(offset); ---------------- Should this be an assert instead? ================ Comment at: clang-tidy/misc/StringLiteralWithEmbeddedNulCheck.cpp:38 @@ +37,3 @@ + // The remaining checks only apply to C++. + if (!getLangOpts().CPlusPlus) return; + ---------------- clang-format -style=LLVM (or -style=file), please. http://reviews.llvm.org/D18783 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits