Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sesiuni:llvm:libtooling [2015/09/08 10:42]
freescale [Clang LibTooling] Use bold for ClangTool
sesiuni:llvm:libtooling [2015/09/08 10:44] (current)
freescale [ClangTools] Make the double dash look more like a double dash
Line 12: Line 12:
 </​code>​ </​code>​
  
-The purpose of the **CompilationDatabase** is to store all the build commands, so that it may instantiate the Clang infrastructure with the correct parameters for each file that is processed. We will obtain a **CompilationDatabase** from the command line arguments, by using a **CommonOptionsParser** object. In the simplest scenario, the **CommonOptionsParser** will look for an argument consisting of a double dash (--). Arguments following the double dash are compilation arguments (“-I”, “-D” etc) and will be passed on to the Clang infrastructure,​ whereas the arguments that come before the double dash are tool-specific arguments (see LLVM's [[http://​llvm.org/​docs/​CommandLine.html | command line library]]). The input source files should come before the double dash.+The purpose of the **CompilationDatabase** is to store all the build commands, so that it may instantiate the Clang infrastructure with the correct parameters for each file that is processed. We will obtain a **CompilationDatabase** from the command line arguments, by using a **CommonOptionsParser** object. In the simplest scenario, the **CommonOptionsParser** will look for an argument consisting of a double dash (//--//--). Arguments following the double dash are compilation arguments (“-I”, “-D” etc) and will be passed on to the Clang infrastructure,​ whereas the arguments that come before the double dash are tool-specific arguments (see LLVM's [[http://​llvm.org/​docs/​CommandLine.html | command line library]]). The input source files should come before the double dash.
  
 <code bash> <code bash>
sesiuni/llvm/libtooling.txt · Last modified: 2015/09/08 10:44 by freescale