How do I create a an Object of a statement declaration

Hi,

I wanted to know how do I create a statement object of type DeclStmt for
a given declaration.
For Example I have to create a declaration statement "int x;". Could you
please tell me the various steps involved in creating a statement object
of this kind.

Thank You,
Regards,
Shashank