diff options
| author | r4nt <klimek@google.com> | 2024-01-11 13:28:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-11 13:28:45 +0100 |
| commit | b7770befee37feca3d732d6daf9513c62f75c5f0 (patch) | |
| tree | 2fc0d2fbbc24523f6b8df3e160f4d0a21de54da8 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 5e406615fea185656786e8a5e72b6f12fd7706d5 (diff) | |
| download | llvm-b7770befee37feca3d732d6daf9513c62f75c5f0.zip llvm-b7770befee37feca3d732d6daf9513c62f75c5f0.tar.gz llvm-b7770befee37feca3d732d6daf9513c62f75c5f0.tar.bz2 | |
[ClangFormat] Fix formatting bugs. (#76245)
1. There are multiple calls to addFakeParenthesis; move the guard to not
assign fake parenthesis into the function to make sure we cover all
calls.
2. MustBreakBefore can be set on a token in two cases: either during
unwrapped line parsing, or later, during token annotation. We must
keep the latter, but reset the former.
3. Added a test to document that the intended behavior of preferring not
to break between a return type and a function identifier.
For example, with MOCK_METHOD(r, n, a)=r n a, the code
MOCK_METHOD(void, f, (int a, int b)) should prefer the same breaks as
the expanded void f(int a, int b).
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
