Closed llvmbot closed 7 years ago
This bug has been marked as a duplicate of bug llvm/llvm-project#27742
Tested on version 5.0 and there is also the same problem.
Problem does not exist if fixes are applied directly by 'clang-tidy' without running 'run-clang-tidy.py' script or without exporting fixes to a yaml file by option "-export-fixes=" and using 'clang-apply-replacements' afterwards.
Extended Description
Tested on version 4.0
call: ./run-clang-tidy.py -fix -p build/ -checks=readability-braces-around-statements main.cpp
Input:
int main() { bool check1 = false; bool check2 = false;
}
After fixes:
int main() { bool check1 = false; bool check2 = false;
}
}
The last brace for the second if-statement is missing after applying fix.