================
@@ -18,7 +18,7 @@ using namespace clang::ast_matchers;
namespace clang::tidy::modernize {
-static const char SpecialFunction[] = "SpecialFunction";
+static constexpr char SpecialFunction[] = "SpecialFunction";
----------------
carlosgalvezp wrote:
Off topic: constant/variables that are just a literal copy of their contents is
a bit of an antipattern, since they need to change name anytime the contents
change. One might as well just use the literal string where needed instead.
https://github.com/llvm/llvm-project/pull/173406
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits