Home
last modified time | relevance | path

Searched refs:StrCat (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/abseil/
H A Dredundant-strcat-calls.cpp124 string StrCat();
125 string StrCat(const AlphaNum &A);
153 using absl::StrCat;
156 string S = StrCat(1, StrCat("A", StrCat(1.1))); in Positives()
160 S = StrCat(StrCat(StrCat(StrCat(StrCat(1))))); in Positives()
170 StrAppend(&S, 001, StrCat(1, 2, "3"), StrCat("FOO")); in Positives()
174 StrAppend(&S, 001, StrCat(StrCat(1, 2), "3"), StrCat("FOO")); in Positives()
179 S = StrCat(1, 2, StrCat(3, 4, 5, 6, 7), 8, 9, 10, in Positives()
183 StrAppend(&S, StrCat(1, 2, 3, 4, 5), StrCat(6, 7, 8, 9, 10)); in Positives()
187 StrCat(1, StrCat()); in Positives()
[all …]
H A Dstr-cat-append.cpp83 std::string StrCat(const AlphaNum& A);
88 a = StrCat(a); in Foo()
95 std::string C = StrCat(A); in Bar()
96 A = StrCat(A); in Bar()
98 A = StrCat(A, B); in Bar()
101 B = StrCat(A, B); in Bar()
103 #define M(X) X = StrCat(X, A) in Bar()
111 A = StrCat(A, A); in Regression_SelfAppend()
118 A = absl::StrCat(A, B); in OutsideAbsl()
125 using absl::StrCat; in OutsideUsingAbsl()
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/abseil/
H A Dredundant-strcat-calls.rst6 Suggests removal of unnecessary calls to ``absl::StrCat`` when the result is
7 being passed to another call to ``absl::StrCat`` or ``absl::StrAppend``.
16 std::string s = absl::StrCat("A", absl::StrCat("B", absl::StrCat("C", "D")));
19 std::string s = absl::StrCat("A", "B", "C", "D");
22 absl::StrAppend(&s, absl::StrCat("E", "F", "G"));
H A Dstr-cat-append.rst6 Flags uses of ``absl::StrCat()`` to append to a ``std::string``. Suggests
14 a = absl::StrCat(a, b); // Use absl::StrAppend(&a, b) instead.
16 Does not diagnose cases where ``absl::StrCat()`` is used as a template
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DStrCatAppendCheck.cpp45 const auto StrCat = functionDecl(hasName("::absl::StrCat")); in registerMatchers() local
68 callExpr(callee(StrCat), hasArgument(0, AlphaNum), in registerMatchers()
/llvm-project-15.0.7/third-party/benchmark/src/
H A Dsysinfo.cc19 #undef StrCat // Don't let StrCat in string_util.h be renamed to lstrcatA
227 StrCat("/sys/devices/system/cpu/cpu", cpu, "/cpufreq/scaling_governor"); in CpuScaling()
263 std::string FPath = StrCat(dir, "index", Idx++, "/"); in GetCacheSizesFromKVFS()
264 std::ifstream f(StrCat(FPath, "size").c_str()); in GetCacheSizesFromKVFS()
280 if (!ReadFromFile(StrCat(FPath, "type"), &info.type)) in GetCacheSizesFromKVFS()
282 if (!ReadFromFile(StrCat(FPath, "level"), &info.level)) in GetCacheSizesFromKVFS()
285 if (!ReadFromFile(StrCat(FPath, "shared_cpu_map"), &map_str)) in GetCacheSizesFromKVFS()
H A Dstring_util.h35 inline std::string StrCat(Args&&... args) { in StrCat() function
H A Dtimers.cc21 #undef StrCat // Don't let StrCat in string_util.h be renamed to lstrcatA