Skip to content

Commit

Permalink
test: remove travis and rollback astylerc
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 and olanti-p committed Aug 6, 2023
1 parent 2c54aa7 commit bcdefab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/clang-tidy-plugin/HeaderGuardCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bcdefab

Please sign in to comment.