Home
last modified time | relevance | path

Searched refs:__func__ (Results 1 – 25 of 109) sorted by relevance

12345

/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Dpredefined-expr.m3 // CHECK: @"__func__.-[Foo instanceTest1]" = private unnamed_addr constant [21 x i8] c"-[Foo instan…
22 printf("__func__: %s\n", __func__);
28 printf("__func__: %s\n", __func__);
34 printf("__func__: %s\n", __func__);
40 printf("__func__: %s\n", __func__);
47 printf("__func__: %s\n", __func__);
53 printf("__func__: %s\n", __func__);
59 printf("__func__: %s\n", __func__);
65 printf("__func__: %s\n", __func__);
79 printf("__func__: %s\n", __func__);
[all …]
H A Dmangle-blocks.m14 __assert_rtn(__func__, __FILE__, __LINE__, "mangle");
20 // CHECK: @"__func__.__14-[Test mangle]_block_invoke_2" = private unnamed_addr constant [30 x i8] c…
27 …_assert_rtn(i8* noundef getelementptr inbounds ([30 x i8], [30 x i8]* @"__func__.__14-[Test mangle…
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dpredefined-expr.cpp108 printf("__func__ %s\n", __func__); in topLevelNamespaceFunction()
133 printf("__func__ %s\n", __func__); in classTemplateFunction()
142 printf("__func__ %s\n", __func__); in staticFunction()
148 printf("__func__ %s\n", __func__);
154 printf("__func__ %s\n", __func__); in virtualFunction()
160 printf("__func__ %s\n", __func__); in functionWithParameters()
166 printf("__func__ %s\n", __func__); in functionReturningClass()
173 printf("__func__ %s\n", __func__); in variadicFunction()
179 printf("__func__ %s\n", __func__); in withTemplateParameter1()
185 printf("__func__ %s\n", __func__); in withTemplateParameter2()
[all …]
H A Dpredefined-expr-cxx14.cpp30 printf("__func__ %s\n", __func__); in topLevelNamespaceFunction()
37 printf("__func__ %s\n", __func__); in variadicFunction()
45 printf("__func__ %s\n", __func__); in functionTemplate()
56 printf("__func__ %s\n", __func__); in classTemplateFunction()
67 return __func__; in ClassBlockConstr()
73 return __func__; in ~ClassBlockConstr()
84 FuncTemplate() : Func(__func__) {} in FuncTemplate()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dpredefined-expr.cpp6 static_assert(sizeof(__func__) == 4, "foo"); in foo()
13 static_assert(sizeof(__func__) == 4, "bar"); in bar()
22 static_assert(sizeof(__func__) == 4, "baz"); in baz()
27 static_assert(sizeof(__func__) == 11, "operator()"); in baz()
36 static_assert(sizeof(__func__) == 17, "baz_block_invoke"); in baz()
43 static_assert(sizeof(__func__) == 4, "baz"); in baz()
52 static_assert(sizeof(__func__) == 5, "main"); in main()
57 static_assert(sizeof(__func__) == 11, "operator()"); in main()
73 static_assert(sizeof(__func__) == 5, "main"); in main()
79 static_assert(sizeof(__func__) == 5, "main"); in main()
[all …]
/llvm-project-15.0.7/clang/unittests/Tooling/RecursiveASTVisitorTests/
H A DCallbacksCallExpr.cpp18 recordCallback(__func__, CE, in TEST()
24 recordCallback(__func__, S, in TEST()
79 recordCallback(__func__, CE, in TEST()
85 recordCallback(__func__, S, in TEST()
91 recordCallback(__func__, E, in TEST()
97 recordCallback(__func__, CE, in TEST()
172 recordCallback(__func__, S, in TEST()
178 recordCallback(__func__, E, in TEST()
184 recordCallback(__func__, CE, in TEST()
H A DCallbacksCompoundAssignOperator.cpp18 recordCallback(__func__, CAO, [&]() { in TEST()
25 recordCallback(__func__, S, in TEST()
73 recordCallback(__func__, CAO, [&]() { in TEST()
80 recordCallback(__func__, S, in TEST()
86 recordCallback(__func__, E, in TEST()
92 recordCallback(__func__, CAO, [&]() { in TEST()
151 recordCallback(__func__, S, in TEST()
157 recordCallback(__func__, E, in TEST()
163 recordCallback(__func__, CAO, [&]() { in TEST()
H A DCallbacksLeaf.cpp18 recordCallback(__func__, IL, [&]() { in TEST()
25 recordCallback(__func__, S, in TEST()
88 recordCallback(__func__, IL, [&]() { in TEST()
95 recordCallback(__func__, S, in TEST()
101 recordCallback(__func__, E, in TEST()
107 recordCallback(__func__, IL, [&]() { in TEST()
199 recordCallback(__func__, S, in TEST()
205 recordCallback(__func__, E, in TEST()
211 recordCallback(__func__, IL, [&]() { in TEST()
H A DCallbacksBinaryOperator.cpp18 recordCallback(__func__, BO, [&]() { in TEST()
25 recordCallback(__func__, S, in TEST()
72 recordCallback(__func__, BO, [&]() { in TEST()
79 recordCallback(__func__, S, in TEST()
85 recordCallback(__func__, E, in TEST()
91 recordCallback(__func__, BO, [&]() { in TEST()
150 recordCallback(__func__, S, in TEST()
156 recordCallback(__func__, E, in TEST()
162 recordCallback(__func__, BO, [&]() { in TEST()
H A DCallbacksUnaryOperator.cpp18 recordCallback(__func__, UO, [&]() { in TEST()
25 recordCallback(__func__, S, in TEST()
70 recordCallback(__func__, UO, [&]() { in TEST()
77 recordCallback(__func__, S, in TEST()
83 recordCallback(__func__, E, in TEST()
89 recordCallback(__func__, UO, [&]() { in TEST()
144 recordCallback(__func__, S, in TEST()
150 recordCallback(__func__, E, in TEST()
156 recordCallback(__func__, UO, [&]() { in TEST()
/llvm-project-15.0.7/clang/test/CXX/drs/
H A Ddr177x.cpp11 auto x = []() { __func__; }; in __anona854b8da0102()
21 (void)[]() { __func__; }; in func()
40 __func__; in FuncTemplate()
53 __func__; in MemFunc()
62 __func__; in OutOfLineMemFunc()
75 __func__; in contains_generic_lambda()
/llvm-project-15.0.7/clang/test/Sema/
H A Dpredef.c4 const char (*ss)[12] = &__func__; in abcdefghi12()
5 static int arr[sizeof(__func__)==12 ? 1 : -1]; in abcdefghi12()
8 char *X = __func__; // expected-warning {{predefined identifier is only valid}} \
12 __func__[0] = 'a'; // expected-error {{variable is not assignable}} in a()
16 const char *b = __func__; // expected-warning {{predefined identifier is only valid}}
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dpredefined-expr.c18 printf("__func__ %s\n", __func__); in plainFunction()
24 printf("__func__ %s\n", __func__); in externFunction()
30 printf("__func__ %s\n", __func__); in privateExternFunction()
38 printf("__func__ %s\n", __func__); in functionWithCapturedStmt()
45 printf("__func__ %s\n", __func__); in staticFunction()
H A Dblock-with-perdefinedexpr.cpp39 return __func__; in Foo()
47 return __func__; in ~Foo()
65 return __func__; in bar()
80 return __func__; in inside_lambda()
H A Dfunc-in-block.c9 PRINTF(__func__); in main()
12 PRINTF(__func__); in main()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dlambda-function-name.cpp5 #define FUNC_MACRO Foo(__func__, "", 0)
10 [] { __func__; }(); in Positives()
22 #define FUNC_MACRO_WITH_FILE_AND_LINE Foo(__func__, __FILE__, __LINE__)
27 __func__; in Negatives()
/llvm-project-15.0.7/libunwind/test/
H A Dlibunwind_01.pass.cpp50 fprintf(stderr, "starting %s\n", __func__); in test1()
52 fprintf(stderr, "finished %s\n", __func__); // ensure return address is saved in test1()
56 fprintf(stderr, "starting %s\n", __func__); in test2()
59 fprintf(stderr, "finished %s\n", __func__); // ensure return address is saved in test2()
63 fprintf(stderr, "starting %s\n", __func__); in test3()
66 fprintf(stderr, "finished %s\n", __func__); // ensure return address is saved in test3()
/llvm-project-15.0.7/clang/test/Analysis/
H A Deval-predefined-exprs.cpp12 clang_analyzer_dump(__func__); in func()
32 clang_analyzer_dump(__func__); in foo()
55 clang_analyzer_dump(__func__); in A()
74 clang_analyzer_dump(__func__); in ~A()
H A Dtrack-control-dependency-conditions.cpp727 ((expr) ? (void)(0) : __assert_fail(#expr, __FILE__, __LINE__, __func__))
762 ((expr) ? (void)(0) : __assert_fail(#expr, __FILE__, __LINE__, __func__))
802 ((expr) ? (void)(0) : __assert_fail(#expr, __FILE__, __LINE__, __func__))
842 __assert_fail(#expr, __FILE__, __LINE__, __func__); \
881 __assert_fail(#expr, __FILE__, __LINE__, __func__); \
925 __assert_fail(#expr, __FILE__, __LINE__, __func__); \
/llvm-project-15.0.7/clang/tools/scan-build-py/lib/libear/
H A Dear.c156 bear_report_call(__func__, (char const *const *)argv); in execve()
166 bear_report_call(__func__, (char const *const *)argv); in execv()
174 bear_report_call(__func__, (char const *const *)argv); in execvpe()
181 bear_report_call(__func__, (char const *const *)argv); in execvp()
188 bear_report_call(__func__, (char const *const *)argv); in execvP()
195 bear_report_call(__func__, (char const *const *)argv); in exect()
210 bear_report_call(__func__, (char const *const *)argv); in execl()
229 bear_report_call(__func__, (char const *const *)argv); in execlp()
249 bear_report_call(__func__, (char const *const *)argv); in execle()
263 bear_report_call(__func__, (char const *const *)argv); in posix_spawn()
[all …]
/llvm-project-15.0.7/clang/test/SemaOpenCL/
H A Dpredefined-expr.cl5 …char *f1 = __func__; //expected-error-re{{initializing '{{__generic|__private}} char *__p…
6 …constant char *f2 = __func__; //expected-warning{{initializing '__constant char *__private' with a…
7 constant const char *f3 = __func__;
/llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.general/
H A Dp8.cpp16 check<decltype(__func__)>(); in foo()
17 static_assert(contains(__func__, "foo"), ""); in foo()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dtemp_arg_nontype_cxx20.cpp286 Y<__func__>(); // expected-error {{pointer to subobject of predefined '__func__' variable}} in f()
288 Y<(__func__)>(); // expected-error {{reference to predefined '__func__' variable}} in f()
289 Y<&__func__>(); // expected-error {{pointer to predefined '__func__' variable}} in f()
290 Y<*&__func__>(); // expected-error {{reference to predefined '__func__' variable}} in f()
291 Y<A{__func__}>(); // expected-error {{pointer to subobject of predefined '__func__' variable}} in f()
292 …Y<B{__func__[0]}>(); // expected-error {{reference to subobject of predefined '__func__' variable}} in f()
/llvm-project-15.0.7/compiler-rt/lib/asan/tests/
H A Dasan_racy_double_free_test.cpp10 fprintf(stderr, "%s %d\n", __func__, i); in Thread1()
18 fprintf(stderr, "%s %d\n", __func__, i); in Thread2()
/llvm-project-15.0.7/openmp/libomptarget/src/
H A Dapi.cpp50 return targetAllocExplicit(Size, DeviceNum, TARGET_ALLOC_DEFAULT, __func__); in omp_target_alloc()
54 return targetAllocExplicit(Size, DeviceNum, TARGET_ALLOC_DEVICE, __func__); in llvm_omp_target_alloc_device()
58 return targetAllocExplicit(Size, DeviceNum, TARGET_ALLOC_HOST, __func__); in llvm_omp_target_alloc_host()
62 return targetAllocExplicit(Size, DeviceNum, TARGET_ALLOC_SHARED, __func__); in llvm_omp_target_alloc_shared()

12345