GET_ARG_AFTER(opt, "-include");
add_flag(&cppflags_obst, "-include");
add_flag(&cppflags_obst, "%s", opt);
+ } else if (streq(option, "idirafter")) {
+ const char *opt;
+ GET_ARG_AFTER(opt, "-idirafter");
+ add_flag(&cppflags_obst, "-idirafter");
+ add_flag(&cppflags_obst, "%s", opt);
+ append_include_path(&after_searchpath, opt);
} else if (streq(option, "isystem")) {
const char *opt;
GET_ARG_AFTER(opt, "-isystem");
searchpath_t bracket_searchpath = { NULL, &bracket_searchpath.first, false };
searchpath_t quote_searchpath = { NULL, "e_searchpath.first, false };
searchpath_t system_searchpath = { NULL, &system_searchpath.first, true };
+searchpath_t after_searchpath = { NULL, &after_searchpath.first, true };
static whitespace_info_t next_info; /* valid if had_whitespace is true */
static whitespace_info_t info;
c_mode & _CXX ? "CPLUS_INCLUDE_PATH" : "C_INCLUDE_PATH");
/* append system search path to bracket searchpath */
+ append_searchpath(&system_searchpath, &after_searchpath);
append_searchpath(&bracket_searchpath, &system_searchpath);
append_searchpath("e_searchpath, &bracket_searchpath);
}
extern searchpath_t quote_searchpath; /**< paths for " " includes */
extern searchpath_t system_searchpath; /**< system searchpath (appended to
quote searchpath) */
+extern searchpath_t after_searchpath; /**< searchpath for -idirafter (also system paths) */
void init_include_paths(void);
void append_include_path(searchpath_t *searchpath, const char *path);