mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
[include-cleaner] No need to overwrite the source file if there is no
cleanups
This commit is contained in:
parent
cd116e0460
commit
e339b07944
@ -148,7 +148,7 @@ class Action : public clang::ASTFrontendAction {
|
||||
}
|
||||
}
|
||||
|
||||
if (Edit) {
|
||||
if (Edit && (!Results.Missing.empty() || !Results.Unused.empty())) {
|
||||
if (auto Err = llvm::writeToOutput(
|
||||
Path, [&](llvm::raw_ostream &OS) -> llvm::Error {
|
||||
OS << Final;
|
||||
|
Loading…
Reference in New Issue
Block a user