clang-tidy-readability-iden.../expected/LocalConstantPointer.cpp

7 lines
159 B
C++
Raw Normal View History

void* functionWithLocalConstPointer() {
void* pointer = nullptr;
void* const localConstPointer = pointer;
return localConstPointer;
}