Skip to content

Commit 6a652cd

Browse files
[clang-tidy] Apply suggestions from code review
Co-authored-by: Victor Chernyakin <[email protected]>
1 parent 40570f9 commit 6a652cd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clang-tools-extra/clang-tidy/bugprone/InconsistentIfelseBracesCheck.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace clang::tidy::bugprone {
1717
/// does not.
1818
///
1919
/// For the user-facing documentation see:
20-
/// http://clang.llvm.org/extra/clang-tidy/checks/bugprone/inconsistent-ifelse-braces.html
20+
/// https://clang.llvm.org/extra/clang-tidy/checks/bugprone/inconsistent-ifelse-braces.html
2121
class InconsistentIfelseBracesCheck : public ClangTidyCheck {
2222
public:
2323
InconsistentIfelseBracesCheck(StringRef Name, ClangTidyContext *Context)
@@ -30,7 +30,7 @@ class InconsistentIfelseBracesCheck : public ClangTidyCheck {
3030
const IfStmt *If);
3131
void checkStmt(const ast_matchers::MatchFinder::MatchResult &Result,
3232
const Stmt *S, SourceLocation StartLoc,
33-
SourceLocation EndLocHint = SourceLocation());
33+
SourceLocation EndLocHint = {});
3434
};
3535

3636
} // namespace clang::tidy::bugprone

clang-tools-extra/docs/clang-tidy/checks/list.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Clang-Tidy Checks
257257
:doc:`llvm-prefer-static-over-anonymous-namespace <llvm/prefer-static-over-anonymous-namespace>`,
258258
:doc:`llvm-twine-local <llvm/twine-local>`, "Yes"
259259
:doc:`llvm-use-new-mlir-op-builder <llvm/use-new-mlir-op-builder>`, "Yes"
260-
:doc:`llvm-use-ranges <llvm/use-ranges>`,
260+
:doc:`llvm-use-ranges <llvm/use-ranges>`, "Yes"
261261
:doc:`llvmlibc-callee-namespace <llvmlibc/callee-namespace>`,
262262
:doc:`llvmlibc-implementation-in-namespace <llvmlibc/implementation-in-namespace>`,
263263
:doc:`llvmlibc-inline-function-decl <llvmlibc/inline-function-decl>`, "Yes"

clang-tools-extra/test/clang-tidy/checkers/bugprone/inconsistent-ifelse-braces.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %check_clang_tidy %s bugprone-inconsistent-ifelse-braces %t
1+
// RUN: %check_clang_tidy -std=c++98-or-later %s bugprone-inconsistent-ifelse-braces %t
22

33
bool cond(const char *) { return false; }
44

0 commit comments

Comments
 (0)