Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Downing-memory.cpp23 void takes_pointer(int *unowned_int) { in takes_pointer() function
187 takes_pointer(&stack_int); // Ok in test_unowned_function_calls()
188 takes_pointer(unowned_int1); // Ok in test_unowned_function_calls()
189 takes_pointer(owned_int1); // Ok in test_unowned_function_calls()
190 takes_pointer(new int(42)); // Bad, since new creates and owner in test_unowned_function_calls()
193 takes_pointer(returns_owner1()); // Bad in test_unowned_function_calls()
196 takes_pointer(returns_no_owner1()); // Ok in test_unowned_function_calls()
219 takes_pointer(HeapInt1); // Ok