Skip to content

Commit 908392a

Browse files
committed
Add comment from code review
1 parent dc275e9 commit 908392a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Tooling/Inclusions/HeaderIncludes.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ bool checkAndConsumeModuleDecl(const SourceManager &SM, Lexer &Lex,
8888
// - after `#pragma once`
8989
// - after header guards (`#ifdef` and `#define`)
9090
// - after opening global module (`module;`)
91+
// - after any comments at the start of the file or immediately following one of
92+
// the above constructs
9193
unsigned getMinHeaderInsertionOffset(StringRef FileName, StringRef Code,
9294
const IncludeStyle &Style) {
9395
// \p Consume returns location after header guard or 0 if no header guard is

0 commit comments

Comments
 (0)