ymandel added a comment.

CJ -- please mention "bugprone-stringview-nullptr" explicitly and explain that 
it will cover those features, etc.  so that the description will be clear on 
its own. Thanks!



================
Comment at: 
clang-tools-extra/clang-tidy/bugprone/StringConstructorCheck.cpp:173-176
+      const auto *StringViewType =
+          Result.Nodes.getNodeAs<CXXRecordDecl>("basic_string_view_decl");
+      // Filter out basic_string_view to avoid conflicts with
+      // bugprone-stringview-nullptr
----------------
Slightly prefer an early return here:
// Filter out basic_string_view to avoid conflicts with
// bugprone-stringview-nullptr
if (Result.Nodes.getNodeAs<CXXRecordDecl>("basic_string_view_decl") != nullptr)
  return;



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114823

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

Reply via email to