Skip to content

Commit 6873c7f

Browse files
committed
fixup! [clang-reorder-fields] Prevent rewriting unsupported cases
1 parent e7bff07 commit 6873c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-reorder-fields/ReorderFieldsAction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static bool isSafeToRewrite(const RecordDecl *Decl, const ASTContext &Context) {
8383
// start of the first field and the end of last field.
8484
const SourceManager &SM = Context.getSourceManager();
8585
std::pair<FileID, unsigned> FileAndOffset =
86-
SM.getDecomposedLoc(Decl->field_begin()->getBeginLoc());
86+
SM.getDecomposedLoc(Decl->field_begin()->getBeginLoc());
8787
auto LastField = Decl->field_begin();
8888
while (std::next(LastField) != Decl->field_end())
8989
++LastField;

0 commit comments

Comments
 (0)