diff --git a/tools/clang-tidy-plugin/HeaderGuardCheck.cpp b/tools/clang-tidy-plugin/HeaderGuardCheck.cpp index edfbbbaa56d6..2786abeb20e2 100644 --- a/tools/clang-tidy-plugin/HeaderGuardCheck.cpp +++ b/tools/clang-tidy-plugin/HeaderGuardCheck.cpp @@ -49,9 +49,8 @@ static std::string getHeaderGuard( StringRef Filename ) bool Found = false; while( std::string::npos != ( LastSlash = TopDir.find_last_of( "/\\" ) ) ) { TopDir = TopDir.substr( 0, LastSlash ); - // Either the root source dir (containing .travis.yml) or the root build - // dir (containing CMakeCache.txt) - if( pathExists( TopDir + "/.travis.yml" ) || pathExists( TopDir + "/CMakeCache.txt" ) ) { + // root build dir (containing CMakeCache.txt) + if( pathExists( TopDir + "/.astylerc" ) || pathExists( TopDir + "/CMakeCache.txt" ) ) { Found = true; break; }