Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 443 Bytes

README.md

File metadata and controls

30 lines (26 loc) · 443 Bytes

Disable clang-format for sections

Special comments can be added around sections are hand-formatted and you do not want to be reformatted be clang-format.

Like this:

// clang-format off
std::vector<int> testcases[][2] = {
  {
    {1, 3} , {2}
  },
  {
    {1, 2}, {3, 4}
  },
  {
    {0, 0}, {0, 0}
  },
  {
    {}, {1}
  },
  {
    {2}, {}
  }
};
// clang-format on

Note that the single space after the // is important.