Get the location of a previous token in Clang

Dear all,

I am currently writing a libtooling tool.

Suppose a ‘pragma’ like following is registered:

#pragma tool

It is easily to get the location of token ‘tool’, but how to get the location
of token ‘pragma’ ? Which API should I use?

Thanks in advance!

Best
James