aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/android/CloexecPipeCheck.cpp
diff options
context:
space:
mode:
authorBaranov Victor <bar.victor.2002@gmail.com>2025-06-08 23:22:05 +0300
committerGitHub <noreply@github.com>2025-06-08 23:22:05 +0300
commitce46adb8b7ce645353eccaedf31ed9765dab77bb (patch)
treed669bfb70192052fa39d7a935102e7a29db40515 /clang-tools-extra/clang-tidy/android/CloexecPipeCheck.cpp
parent65d66625b3e2b8322ed99d82edabecbafcd0885b (diff)
downloadllvm-ce46adb8b7ce645353eccaedf31ed9765dab77bb.zip
llvm-ce46adb8b7ce645353eccaedf31ed9765dab77bb.tar.gz
llvm-ce46adb8b7ce645353eccaedf31ed9765dab77bb.tar.bz2
[clang-tidy][NFC] run clang-format over 'android', 'boost' and 'bugprone' checks (#143315)
Diffstat (limited to 'clang-tools-extra/clang-tidy/android/CloexecPipeCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/android/CloexecPipeCheck.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang-tools-extra/clang-tidy/android/CloexecPipeCheck.cpp b/clang-tools-extra/clang-tidy/android/CloexecPipeCheck.cpp
index 9085be6..c59b127 100644
--- a/clang-tools-extra/clang-tidy/android/CloexecPipeCheck.cpp
+++ b/clang-tools-extra/clang-tidy/android/CloexecPipeCheck.cpp
@@ -14,19 +14,19 @@ using namespace clang::ast_matchers;
namespace clang::tidy::android {
void CloexecPipeCheck::registerMatchers(MatchFinder *Finder) {
- registerMatchersImpl(Finder,
- functionDecl(returns(isInteger()), hasName("pipe"),
- hasParameter(0, hasType(pointsTo(isInteger())))));
+ registerMatchersImpl(
+ Finder, functionDecl(returns(isInteger()), hasName("pipe"),
+ hasParameter(0, hasType(pointsTo(isInteger())))));
}
void CloexecPipeCheck::check(const MatchFinder::MatchResult &Result) {
std::string ReplacementText =
(Twine("pipe2(") + getSpellingArg(Result, 0) + ", O_CLOEXEC)").str();
- replaceFunc(
- Result,
- "prefer pipe2() with O_CLOEXEC to avoid leaking file descriptors to child processes",
- ReplacementText);
+ replaceFunc(Result,
+ "prefer pipe2() with O_CLOEXEC to avoid leaking file descriptors "
+ "to child processes",
+ ReplacementText);
}
} // namespace clang::tidy::android