[all-commits] [llvm/llvm-project] 2c2fb8: [clang-format] Treat empty for/while loops as shor...
Owen Pan via All-commits
all-commits at lists.llvm.org
Thu Nov 2 14:09:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2c2fb8e10a12774bae86a5ff60fd67c5dc5e220f
https://github.com/llvm/llvm-project/commit/2c2fb8e10a12774bae86a5ff60fd67c5dc5e220f
Author: Owen Pan <owenpiano at gmail.com>
Date: 2023-11-02 (Thu, 02 Nov 2023)
Changed paths:
M clang/lib/Format/UnwrappedLineParser.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Treat empty for/while loops as short loops (#70768)
A for/while loop with only a semicolon as its body should be treated as
an empty loop.
Fixes #61708.
More information about the All-commits
mailing list