1

I want to capture the source files error and warnings when I give it as a input to my libtooling tool.

For example consider the program

main.c

int main()
{
   printf("hello");
   return 0;
} 

so clang throws warning implicitly declaring library function 'printf' with type 'int'.

How to capture these warnings in clang libtooling with DiagnosticConsumer?

Paul Floyd
  • 5,530
  • 5
  • 29
  • 43
Jon marsh
  • 279
  • 7
  • 12

0 Answers0