Skip to content

Commit 2ccb074

Browse files
committed
[clang] NFC, make more HeaderSearch methods const.
1 parent 559d47a commit 2ccb074

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/include/clang/Lex/HeaderSearch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,10 @@ class HeaderSearch {
553553
/// macro.
554554
///
555555
/// This routine does not consider the effect of \#import
556-
bool isFileMultipleIncludeGuarded(const FileEntry *File);
556+
bool isFileMultipleIncludeGuarded(const FileEntry *File) const;
557557

558558
/// Determine whether the given file is known to have ever been \#imported.
559-
bool hasFileBeenImported(const FileEntry *File) {
559+
bool hasFileBeenImported(const FileEntry *File) const {
560560
const HeaderFileInfo *FI = getExistingFileInfo(File);
561561
return FI && FI->isImport;
562562
}

clang/lib/Lex/HeaderSearch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ HeaderSearch::getExistingFileInfo(const FileEntry *FE,
13751375
return HFI;
13761376
}
13771377

1378-
bool HeaderSearch::isFileMultipleIncludeGuarded(const FileEntry *File) {
1378+
bool HeaderSearch::isFileMultipleIncludeGuarded(const FileEntry *File) const {
13791379
// Check if we've entered this file and found an include guard or #pragma
13801380
// once. Note that we dor't check for #import, because that's not a property
13811381
// of the file itself.

0 commit comments

Comments
 (0)