aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorMarek Kurdej <marek.kurdej+llvm.org@gmail.com>2022-01-28 10:37:22 +0100
committerMarek Kurdej <marek.kurdej+llvm.org@gmail.com>2022-01-28 22:28:48 +0100
commit64df51624f08f3b8d7370f820ab3545b1de98a0e (patch)
tree0e1252ec880be49e76a25c2c4df1b5559f1b86ce /clang/lib/Frontend/InitPreprocessor.cpp
parentbe2147db054ec096199d1251bfab9065c7e0f29b (diff)
downloadllvm-64df51624f08f3b8d7370f820ab3545b1de98a0e.zip
llvm-64df51624f08f3b8d7370f820ab3545b1de98a0e.tar.gz
llvm-64df51624f08f3b8d7370f820ab3545b1de98a0e.tar.bz2
[clang-format] Fix misaligned trailing comments in the presence of an empty block comment.
Fixes https://github.com/llvm/llvm-project/issues/53441. Expected code: ``` /**/ // int a; // ``` was before misformatted to: ``` /**/ // int a; // ``` Because the "remaining length" (after the starting `/*`) of an empty block comment `/**/` was computed to be 0 instead of 2. Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan Differential Revision: https://reviews.llvm.org/D118475
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions