Skip to content

Commit

Permalink
[Tooling] NFC, use const HeaderSearch for isSelfContainedHeader.
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed Jun 1, 2023
1 parent e939dbc commit 3ddd186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/include/clang/Tooling/Inclusions/HeaderAnalysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace tooling {
/// This function can be expensive as it may scan the source code to find out
/// dont-include-me pattern heuristically.
bool isSelfContainedHeader(const FileEntry *FE, const SourceManager &SM,
HeaderSearch &HeaderInfo);
const HeaderSearch &HeaderInfo);

/// This scans the given source code to see if it contains #import(s).
bool codeContainsImports(llvm::StringRef Code);
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Tooling/Inclusions/HeaderAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ llvm::StringRef getFileContents(const FileEntry *FE, const SourceManager &SM) {
} // namespace

bool isSelfContainedHeader(const FileEntry *FE, const SourceManager &SM,
HeaderSearch &HeaderInfo) {
const HeaderSearch &HeaderInfo) {
assert(FE);
if (!HeaderInfo.isFileMultipleIncludeGuarded(FE) &&
!HeaderInfo.hasFileBeenImported(FE) &&
Expand Down

0 comments on commit 3ddd186

Please sign in to comment.