sepertate the code by the macro

Hi,guys:
I am interesting to separate the code by the clang .

such as:

void a() {

}

#ifdef Test
void b() {
}
#endif

void c() {

}

Is there some method for me to get the code in the region of TEST ?
Thanks,
Yao.