Closed xgupta closed 3 years ago
Thanks @banach-space for reviewing! please merge the PR.
Hm, IIUC all changes related to CMAKE_EXPORT_COMPILE_COMMANDS
can be skipped.
Basically, either we require CMAKE_EXPORT_COMPILE_COMMANDS
(which generates compile_commands.json
) or all tools should be run with --
at the end, e.g.:
<build_dir>/bin/ct-code-refactor --class-name=Base --new-name=bar --old-name=foo file.cpp --
I think that the latter is cleaner as ct-code-refactor
won't use ompile_commands.json
anyway.
Sorry for not making it clearer in my earlier comment.
Would you mind squashing? Then I can merge. I don't want to rely on GitHub's UI (and I want to avoid merge commits too). Thanks a bunch!
Edit: basically, rebase+squash and then force push to your own branch so that there's only one commit with all your changes.
Sorry for not making it clearer in my earlier comment.
No problem -:)
Your patience is much appreciated! :)
Thanks a ton for submitting this! Quite embarrassing how much I missed!
Is
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
really needed there? Personally I prefer to keep the description ofHelloWorld
to the required minimum. But I might be missing something here!-Andrzej