We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a36c72 commit efb284cCopy full SHA for efb284c
clang/lib/Format/QualifierAlignmentFixer.cpp
@@ -406,9 +406,9 @@ void QualifierAlignmentFixer::PrepareLeftRightOrdering(
406
// Depending on the position of type in the order you need
407
// To iterate forward or backward through the order list as qualifier
408
// can push through each other.
409
- auto type = std::find(Order.begin(), Order.end(), "type");
410
// The Order list must define the position of "type" to signify
411
- assert(type != Order.end() && "QualifierOrder must contain type");
+ assert(std::find(Order.begin(), Order.end(), "type") != Order.end() &&
+ "QualifierOrder must contain type");
412
// Split the Order list by type and reverse the left side.
413
414
bool left = true;
0 commit comments