[PATCH] D54395: [clang-tidy] implement utility-function to add 'const' to variables
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 12 02:00:25 PST 2018
alexfh added inline comments.
================
Comment at: unittests/clang-tidy/AddConstTest.cpp:733
+ StringRef T = "template <typename T> void f(T v) \n";
+ StringRef S = "{ T target = v; }";
+ auto Cat = [&T](StringRef S) { return (T + S).str(); };
----------------
It would be interesting to see test cases with multiple instantiations of the template the fix applies to.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D54395
More information about the cfe-commits
mailing list