Skip to content

Commit 7fd4409

Browse files
committed
add codestyle violation
1 parent 496d071 commit 7fd4409

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

clang-tools-extra/clang-tidy/ClangTidy.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ class ErrorReporter {
270270
const llvm::StringMap<Replacements> &Fix) {
271271
for (const auto &FileAndReplacements : Fix) {
272272
for (const auto &Repl : FileAndReplacements.second) {
273-
if (!Repl.isApplicable())
274-
continue;
273+
if (!Repl.isApplicable()) continue;
275274
FileByteRange FBR;
276275
FBR.FilePath = Repl.getFilePath().str();
277276
FBR.FileOffset = Repl.getOffset();

llvm/utils/git/code-lint-helper.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,8 @@ def run_clang_tidy(changed_files: List[str], args: LintArgs) -> Optional[str]:
206206
proc = subprocess.run(
207207
tidy_diff_cmd,
208208
input=diff_content,
209-
stdout=subprocess.PIPE,
210-
stderr=subprocess.PIPE,
211-
text=True,
212-
check=False,
209+
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
210+
text=True, check=False,
213211
)
214212

215213
return clean_clang_tidy_output(proc.stdout.strip())

0 commit comments

Comments
 (0)