================
@@ -115,6 +134,7 @@ unsigned getOffsetAfterHeaderGuardsAndComments(StringRef
FileName,
return SM.getFileOffset(Tok.getLocation());
return 0;
}));
+ return std::max(HeaderAndPPOffset, ModuleDecl);
----------------
HighCommander4 wrote:
Technically, this function is no longer doing what its name says,
`getOffsetAfterHeaderGuardsAndComments`.
Can we rename it to `getMinHeaderInsertionOffset`?
https://github.com/llvm/llvm-project/pull/151624
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits