From bcdefab1c3e56592928826de60e5b6b22072abb8 Mon Sep 17 00:00:00 2001 From: scarf Date: Sun, 6 Aug 2023 11:22:38 +0900 Subject: [PATCH] test: remove travis and rollback astylerc see: https://github.com/cataclysmbnteam/Cataclysm-BN/pull/3028#discussion_r1274077289 Co-authored-by: Olanti --- tools/clang-tidy-plugin/HeaderGuardCheck.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }