<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<br><br>    I have managed to compile clang-rename and to get it to rename some symbols.<div><br></div><div>I have simple example I cant get to work correctly if anyone can help me out it would be greatly appreciated.</div><div><br></div><div>3 files:</div><div><br></div><div>[foo.c]</div><div>int foo (int x, int y)</div><div>{</div><div>    return x + y;</div><div>}</div><div><br></div><div>[foo.h]</div><div>extern int foo (int x, int y);</div><div><br></div><div>[main.c]</div><div>#include "foo.h"</div><div>int main (void)</div><div>{</div><div><span style="font-size: 12pt;">    return foo(1, 1);</span></div><div>}</div><div><br></div><div>[compile_commands.json]</div><div><div>[</div><div>{</div><div>  "directory": "c:\\ClangRenameTest\\",</div><div>  "command": "clang main.c",</div><div>  "file": "main.c"</div><div>},</div><div>{</div><div>  "directory": "c:\\ClangRenameTest\\",</div><div>  "command": "clang foo.c",</div><div>  "file": "foo.c"</div><div>}</div><div>]</div></div><div><br></div><div>I run clang-rename with the following arguments:</div><div><br></div><div>"clang-rename main.c -offset=50 -i -new-name=sum -pl"<br><br>All the instances of foo are renamed to sum except in foo.c.<br><br>Can anyone help me how to get clang-rename to work for foo.c also?</div><div><br></div><div>Any advice is greatly appreciated.</div><div><br></div><div>Dan</div>                                          </div></body>
</html>