mirror of
https://github.com/nasa/trick.git
synced 2025-02-06 10:59:27 +00:00
parent
c82ff9a72b
commit
10b16d9f31
@ -246,6 +246,11 @@ bool HeaderSearchDirs::isPathInUserDir (const std::string& in_dir ) {
|
|||||||
|
|
||||||
bool HeaderSearchDirs::isPathInUserOrTrickDir (const std::string& in_dir ) {
|
bool HeaderSearchDirs::isPathInUserOrTrickDir (const std::string& in_dir ) {
|
||||||
|
|
||||||
|
const std::string trick_home{getenv("TRICK_HOME")};
|
||||||
|
if ( ! in_dir.compare(0, trick_home.size(), trick_home)) {
|
||||||
|
return true ;
|
||||||
|
}
|
||||||
|
|
||||||
clang::HeaderSearch::search_dir_iterator sdi ;
|
clang::HeaderSearch::search_dir_iterator sdi ;
|
||||||
for ( sdi = hs.system_dir_begin() ; sdi != hs.system_dir_end() ; sdi++ ) {
|
for ( sdi = hs.system_dir_begin() ; sdi != hs.system_dir_end() ; sdi++ ) {
|
||||||
#if (LIBCLANG_MAJOR < 4) // TODO delete when RHEL 7 no longer supported
|
#if (LIBCLANG_MAJOR < 4) // TODO delete when RHEL 7 no longer supported
|
||||||
|
Loading…
x
Reference in New Issue
Block a user