Home | History | Annotate | only in /external/clang/examples/PrintFunctionNames
Up to higher level directory
NameDateSize
CMakeLists.txt20-Jun-2014435
Makefile20-Jun-2014756
PrintFunctionNames.cpp20-Jun-20142.1K
PrintFunctionNames.exports20-Jun-201419
README.txt20-Jun-20141K

README.txt

      1 This is a simple example demonstrating how to use clang's facility for
      2 providing AST consumers using a plugin.
      3 
      4 Build the plugin by running `make` in this directory.
      5 
      6 Once the plugin is built, you can run it using:
      7 --
      8 Linux:
      9 $ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.so -plugin print-fns some-input-file.c
     10 $ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.so -plugin print-fns -plugin-arg-print-fns help -plugin-arg-print-fns --example-argument some-input-file.c
     11 $ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.so -plugin print-fns -plugin-arg-print-fns -an-error some-input-file.c
     12 
     13 Mac:
     14 $ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.dylib -plugin print-fns some-input-file.c
     15 $ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.dylib -plugin print-fns -plugin-arg-print-fns help -plugin-arg-print-fns --example-argument some-input-file.c
     16 $ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.dylib -plugin print-fns -plugin-arg-print-fns -an-error some-input-file.c
     17