Skip to content

Commit 95c12ba

Browse files
committed
Remove a (useless) 3-octet offset at the beginning of the file when extracting comments
1 parent 1f9126a commit 95c12ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CPP2D/DPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ bool DPrinter::TraverseTranslationUnitDecl(TranslationUnitDecl* Decl)
685685
pushStream();
686686

687687
if (locStart.isInvalid())
688-
locStart = sm.getLocForStartOfFile(sm.getMainFileID()).getLocWithOffset(3);
688+
locStart = sm.getLocForStartOfFile(sm.getMainFileID());
689689

690690
printStmtComment(locStart,
691691
c->getSourceRange().getBegin(),

0 commit comments

Comments
 (0)