File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
2121class InconsistentIfelseBracesCheck : public ClangTidyCheck {
2222public:
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
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change 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
33bool cond (const char *) { return false ; }
44
You can’t perform that action at this time.
0 commit comments