[all-commits] [llvm/llvm-project] 8e8573: [clang-format] Don't finalize #if, #else, #endif, ...
Owen via All-commits
all-commits at lists.llvm.org
Wed Jun 21 15:16:14 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8e85739a5f24e34cb22768fe6ef33b593ed054df
https://github.com/llvm/llvm-project/commit/8e85739a5f24e34cb22768fe6ef33b593ed054df
Author: Owen Pan <owenpiano at gmail.com>
Date: 2023-06-21 (Wed, 21 Jun 2023)
Changed paths:
M clang/lib/Format/UnwrappedLineFormatter.cpp
M clang/lib/Format/WhitespaceManager.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Don't finalize #if, #else, #endif, etc.
Don't finalize a preprocessor branch directive if it's the first
token of an annotated line. See the rationale at
https://reviews.llvm.org/D150057#inline-1449546.
Fixes #63379
Differential Revision: https://reviews.llvm.org/D153243
More information about the All-commits
mailing list