aaron.ballman added inline comments.
================ Comment at: clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp:226 + DiagnosticBuilder &Diag) { + if (getLangOpts().CPlusPlus11) { + StringRef NewFuncName = (Name[0] != 'w') ? "strncpy_s" : "wcsncpy_s"; ---------------- Charusso wrote: > aaron.ballman wrote: > > What about C? > The `else` part would fire. I think this comment got moved to an unrelated area. I was talking about `NotNullTerminatedResultCheck::memmoveFix()`, where there is no `else` clause. However, I'm also not entirely certain why you are assuming the _s versions of those functions are available in C++ (they're in Annex K for C, which is an optional annex). https://reviews.llvm.org/D45050 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits