> 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) {

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to