Commit 7a00808f authored by Will Cassella's avatar Will Cassella Committed by Commit Bot

Suppress clangd errors for bitwise-or on different enum types

Clangd generates error messages for any files that include
'third_party/blink/renderer/core/style/computed_style_constants.h' due
to it using the `|` operator between two instances of
`InternalGridAutoFlowAlgorithm` and `InternalGridAutoFlowDirection`.
Super annoying, so this CL explicitly casts them to integers to fix
that.

Change-Id: I79cc9f263ebfb8bd8ee5902741e857dac77138d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2015550Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Will Cassella <cassew@google.com>
Cr-Commit-Position: refs/heads/master@{#734585}
parent 5879949b
...@@ -152,14 +152,14 @@ enum InternalGridAutoFlowDirection { ...@@ -152,14 +152,14 @@ enum InternalGridAutoFlowDirection {
}; };
enum GridAutoFlow { enum GridAutoFlow {
kAutoFlowRow = kAutoFlowRow = int(kInternalAutoFlowAlgorithmSparse) |
kInternalAutoFlowAlgorithmSparse | kInternalAutoFlowDirectionRow, int(kInternalAutoFlowDirectionRow),
kAutoFlowColumn = kAutoFlowColumn = int(kInternalAutoFlowAlgorithmSparse) |
kInternalAutoFlowAlgorithmSparse | kInternalAutoFlowDirectionColumn, int(kInternalAutoFlowDirectionColumn),
kAutoFlowRowDense = kAutoFlowRowDense =
kInternalAutoFlowAlgorithmDense | kInternalAutoFlowDirectionRow, int(kInternalAutoFlowAlgorithmDense) | int(kInternalAutoFlowDirectionRow),
kAutoFlowColumnDense = kAutoFlowColumnDense = int(kInternalAutoFlowAlgorithmDense) |
kInternalAutoFlowAlgorithmDense | kInternalAutoFlowDirectionColumn int(kInternalAutoFlowDirectionColumn)
}; };
static const size_t kContainmentBits = 4; static const size_t kContainmentBits = 4;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment