File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -867,7 +867,7 @@ class HeaderSearch {
867
867
// / path is relative to a system header directory.
868
868
std::string suggestPathToFileForDiagnostics (const FileEntry *File,
869
869
llvm::StringRef MainFile,
870
- bool *IsSystem = nullptr );
870
+ bool *IsSystem = nullptr ) const ;
871
871
872
872
// / Suggest a path by which the specified file could be found, for use in
873
873
// / diagnostics to suggest a #include. Returned path will only contain forward
@@ -881,7 +881,7 @@ class HeaderSearch {
881
881
std::string suggestPathToFileForDiagnostics (llvm::StringRef File,
882
882
llvm::StringRef WorkingDir,
883
883
llvm::StringRef MainFile,
884
- bool *IsSystem = nullptr );
884
+ bool *IsSystem = nullptr ) const ;
885
885
886
886
void PrintStats ();
887
887
Original file line number Diff line number Diff line change @@ -1919,7 +1919,7 @@ void HeaderSearch::loadSubdirectoryModuleMaps(DirectoryLookup &SearchDir) {
1919
1919
}
1920
1920
1921
1921
std::string HeaderSearch::suggestPathToFileForDiagnostics (
1922
- const FileEntry *File, llvm::StringRef MainFile, bool *IsSystem) {
1922
+ const FileEntry *File, llvm::StringRef MainFile, bool *IsSystem) const {
1923
1923
// FIXME: We assume that the path name currently cached in the FileEntry is
1924
1924
// the most appropriate one for this analysis (and that it's spelled the
1925
1925
// same way as the corresponding header search path).
@@ -1929,7 +1929,7 @@ std::string HeaderSearch::suggestPathToFileForDiagnostics(
1929
1929
1930
1930
std::string HeaderSearch::suggestPathToFileForDiagnostics (
1931
1931
llvm::StringRef File, llvm::StringRef WorkingDir, llvm::StringRef MainFile,
1932
- bool *IsSystem) {
1932
+ bool *IsSystem) const {
1933
1933
using namespace llvm ::sys;
1934
1934
1935
1935
llvm::SmallString<32 > FilePath = File;
You can’t perform that action at this time.
0 commit comments