|
From: | grischka |
Subject: | Re: [Tinycc-devel] #include_next troubles |
Date: | Tue, 20 Oct 2015 18:47:22 +0200 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
Sergey Korshunoff wrote:
You could refer to GCC's source and test suite From the clang code:... // If this is a system #include, ignore the user #include locs. unsigned i = isAngled ? SystemDirIdx : 0; ... // If this is a #include_next request, start searching after the directory the // file was found in. if (FromDir) i = FromDir-&SearchDirs[0]; ... // Check each directory in sequence to see if it contains this file. for (; i != SearchDirs.size(); ++i) {
That looks much better than what we have. -- gr
[Prev in Thread] | Current Thread | [Next in Thread] |