Skip to content

Commit

Permalink
clang format hates 'force inline'
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfucn committed Nov 27, 2023
1 parent 96e4826 commit 81a3ed9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions onnxruntime/core/util/matrix_layout.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@

namespace onnxruntime {

//
// Clang-format doesn't handle force inline decorator well, it insists on
// adding extra indentation to the next line, making it very confusing
// to read. So we turn it off for this file.
// clang-format off
//

/**
* @brief A tuple of integers to represent tensor coordinates
*/
Expand Down Expand Up @@ -463,5 +470,6 @@ make_MatrixRef(
return MatrixRef<Element, Layout, ExtraBoundsCheck>(span, shape);
}

// clang-format off

} // namespace onnxruntime

0 comments on commit 81a3ed9

Please sign in to comment.