Skip to content

Commit

Permalink
Exclude the padding string from be formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
Lai-YT authored and leewei05 committed Aug 11, 2023
1 parent a358fbc commit 18799c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
#include <utility>
#include <vector>

// clang-format off
// Not to format the padding to emphasize the actual length.

// 80 spaces for padding 01234567890123456789012345678901234567890123456789012345678901234567890123456789
static const char* padding = " ";

// clang-format on

/// @param n The length of the padding, saturated on the boundary of [0, 80].
static const char* Pad(int n);

Expand Down

0 comments on commit 18799c2

Please sign in to comment.