<p dir="ltr">Cheesy as it is, when I've had to deal with tools like this, I've just marked all files as open, done the changes, then unopened any files that didn't have changes (or, some tools like this have an option to force write a file that's not open, then to list the files that have changes but aren't open - so simply pipe that list to the open command)</p>
<p dir="ltr">But yeah, may not be applicable to all such environments, and either option is hardly 'clean'</p>
<div class="gmail_quote">On Mar 4, 2016 9:20 AM, "Eugene Zelenko via cfe-dev" <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
My work code base is stored in ClearCase, and files need to be checked<br>
out before making changes. This need to be done before allowing<br>
Clang-tidy to do automatic fixes.<br>
<br>
My previous work database used CVS set up in such way, so write<br>
permission need to be added manually.<br>
<br>
I think will be good idea to provide possibility in CLang-tidy to call<br>
arbitrary script with file name as parameter which will make necessary<br>
preparation steps in version control software before making changes in<br>
this particular file.<br>
<br>
Other tools like Include What You Use or Clazy could benefit from this too.<br>
<br>
Eugene.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>