Web Service

Requests can be made to this URL via POST, supplying a source code file to be processed. The result is returned in plain/text.

An example using curl, given the file source.c:

$ curl -F "upload_file=@source.c" http://conclave.di.uminho.pt/clang/ws

Produces the following output:

# TYPE, UID, ID, CTX, FILE, LINESTART, LINEEND
Macro,source.c::MYINT::2,MYINT,,source.c,2,2
GlobalVariable,source.c::tglobal::4,tglobal,,source.c,4,4
Function,source.c::add::6,add,,source.c,6,8
Parameter,source.c::x::6,x,source.c::add::6,source.c,6,6
Parameter,source.c::y::6,y,source.c::add::6,source.c,6,6
Function,source.c::sub::10,sub,,source.c,10,13
Parameter,source.c::x::10,x,source.c::sub::10,source.c,10,10
Parameter,source.c::y::10,y,source.c::sub::10,source.c,10,10
LocalVariable,source.c::tmp::11,tmp,source.c::sub::10,source.c,11,11
Function,source.c::main::15,main,,source.c,15,19
LocalVariable,source.c::total::16,total,source.c::main::15,source.c,16,16
hasFunctionCall,source.c::add::16,-,source.c::main::15,source.c,16,16
hasFunctionCall,source.c::printf::18,-,source.c::main::15,source.c,18,18