[cfe-dev] xml parse library in checkers

Dmitri Gribenko gribozavr at gmail.com
Thu Mar 12 02:06:33 PDT 2015


On Wed, Mar 11, 2015 at 5:00 PM, Francisco Chiotta
<franchiotta at gmail.com> wrote:
> I don't really know how to include it. Could you please explain me briefly
> how to do that in order to use it from a checker?

tools/c-index-test/c-index-test.c does this:

#include <libxml/parser.h>

> Do I have to download the libxml2 project under llvm/tools? modify
> configurations file?

You need to install it before invoking cmake for LLVM.  If libxml2 is
properly installed on the system, LLVM will detect it automatically.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-dev mailing list