]> git.tdb.fi Git - builder.git/blobdiff - source/virtualfilesystem.h
Don't pass including file location to find_header
[builder.git] / source / virtualfilesystem.h
index 16f8c6d9e7e2a3e0bfafd3fb5a7f9a01c0828d62..592f6bfdf0603098b9612466d0fc25165a0d0989 100644 (file)
@@ -7,6 +7,7 @@
 
 class Builder;
 class FileTarget;
+class Pattern;
 
 class VirtualFileSystem
 {
@@ -32,7 +33,7 @@ public:
        path.  Considers known targets as well as existing files.  If a matching
        target is not found but a file exists, a new SystemHeader target will be
        created and returned. */
-       FileTarget *find_header(const std::string &, const Msp::FS::Path &, const SearchPath &);
+       FileTarget *find_header(const std::string &, const SearchPath &);
 
        /** Tries to locate a library in a library path.  The library name should be
        the same as would be given to the linker with -l, i.e. without the "lib"
@@ -50,6 +51,8 @@ private:
        FileTarget *get_header(const Msp::FS::Path &);
 
        FileTarget *get_library(const std::string &, const Msp::FS::Path &, LibMode);
+
+       Msp::FS::Path try_patterns(const Msp::FS::Path &, const std::list<Pattern> &, const std::string &);
 };
 
 #endif