diff options
author | Naveen Seth Hanig <naveen.hanig@outlook.com> | 2025-06-25 09:13:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-25 18:13:00 +0200 |
commit | dd47b845a62cdaf4a1b0aba354cd80a4eabd9570 (patch) | |
tree | db42d57fff968c972928473d7d48271ebe2c65e0 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 9a7720ad2f96fc5911be3ed2c53ec2bdf6fbd9a6 (diff) | |
download | llvm-dd47b845a62cdaf4a1b0aba354cd80a4eabd9570.zip llvm-dd47b845a62cdaf4a1b0aba354cd80a4eabd9570.tar.gz llvm-dd47b845a62cdaf4a1b0aba354cd80a4eabd9570.tar.bz2 |
[clang-format] Handle Trailing Whitespace After Line Continuation (P2223R2) (#145243)
Fixes #145226.
Implement
[P2223R2](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2223r2.pdf)
in clang-format to correctly handle cases where a backslash '\\' is
followed by trailing whitespace before the newline.
Previously, `clang-format` failed to properly detect and handle such
cases, leading to misformatted code.
With this, `clang-format` matches the behavior already implemented in
Clang's lexer and `DependencyDirectivesScanner.cpp`, which allow
trailing whitespace after a line continuation in any C++ standard.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions