title: How to add an int parameter to a function in clang using libTooling?
body: <p>I'm trying to implement a source-to-source compiler using Clang. How can I add an integer parameter to a specific function (e.g., identified by its name)? </p>
  
  <p>For example, the original function definition is:</p>
  
  <pre><code>int foo(int a)
  {
      return a+1;
  }
  </code></pre>
  
  <p>The transformed code should be:</p>
  
  <pre><code>int foo(int a, int b)
  {
      return a+b+1;
  }
  </code></pre>