llvm-project/clang/tools/clang-format
Zequan Wu f93169226a [clang-format-diff] Fix missing formatting for zero length git diff lines
If we only delete lines that are outer block statements (if, while, etc),
clang-format-diff.py can't format the statements inside the block statements.

An example to repro:
1. Delete the if statment at line 118 in llvm/lib/CodeGen/Analysis.cpp.
2. Run `git diff -U0 --no-color HEAD^ | clang/tools/clang-format/clang-format-diff.py -i -p1`

It fails to format the statement after if.

Differential Revision: https://reviews.llvm.org/D111273
2021-10-08 10:25:54 -07:00
..
fuzzer Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt Revert "clang-format: Add a consumer to diagnostics engine" 2020-10-29 10:29:53 -04:00
ClangFormat.cpp [clang-format] allow clang-format to be passed a file of filenames so we can add a regression suite of "clean clang-formatted files" from LLVM 2021-10-03 12:10:33 +01:00
clang-format-bbedit.applescript
clang-format-diff.py [clang-format-diff] Fix missing formatting for zero length git diff lines 2021-10-08 10:25:54 -07:00
clang-format-sublime.py [ClangFormat] Editor integrations inherit default style from clang-format binary 2019-05-17 07:22:55 +00:00
clang-format-test.el [Format] Fix clang-format.el unit tests after commit f349cc37cc 2019-11-11 17:55:38 +01:00
clang-format.el clang-format: Add a fallback style to Emacs mode 2019-11-06 09:50:54 +00:00
clang-format.py [Format] Work around current vim bugs in clang-format.py 2020-04-15 20:11:14 +02:00
git-clang-format [clang-format-diff] Fix missing formatting for zero length git diff lines 2021-10-08 10:25:54 -07:00