LLVM Compiler/Clang Plugins

From Wikibooks, open books for an open world
Jump to navigation Jump to search

How to Debug a Plugin[edit | edit source]

There are two ways to run a Clang plugin:

  • call the clang frontend directly: clang -cc1 ...
  • call the compiler driver, clang -v, to find out real command lines