aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorsstwcw <su3e8a96kzlver@posteo.net>2023-11-29 15:19:13 +0000
committerGitHub <noreply@github.com>2023-11-29 15:19:13 +0000
commit9fa2d74be415a3e30d811c0acc05c45e1c55759e (patch)
tree30f38c0af77145e7e7e06380b76a4f0467438b34 /flang/lib/Frontend/CompilerInvocation.cpp
parent3af82b3962c443d43edba1abb50a82fb3048999a (diff)
downloadllvm-9fa2d74be415a3e30d811c0acc05c45e1c55759e.zip
llvm-9fa2d74be415a3e30d811c0acc05c45e1c55759e.tar.gz
llvm-9fa2d74be415a3e30d811c0acc05c45e1c55759e.tar.bz2
[clang-format] Indent Verilog case statements with comments (#71353)
If a line contains a comment outside of (fake) parentheses, the part following it is indented according to `CurrentState.Indent`. A Verilog case label and the statement that follows are broken with mustBreakBefore. So the part that follows the case label needs some special handling. Previously, that variable was left out. So the indentation was wrong when there was a comment. old: ```Verilog case (data) 16'd0: result = // 10'b0111111111; endcase case (data) 16'd0: // // result = // 10'b0111111111; endcase ``` new: ```Verilog case (data) 16'd0: result = // 10'b0111111111; endcase case (data) 16'd0: // // result = // 10'b0111111111; endcase ```
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions