comparison clang-tools-extra/clang-tidy/readability/RedundantControlFlowCheck.cpp @ 252:1f2b6ac9f198 llvm-original

LLVM16-1
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 18 Aug 2023 09:04:13 +0900
parents c4bab56944e8
children
comparison
equal deleted inserted replaced
237:c80f45b162ad 252:1f2b6ac9f198
11 #include "clang/ASTMatchers/ASTMatchFinder.h" 11 #include "clang/ASTMatchers/ASTMatchFinder.h"
12 #include "clang/Lex/Lexer.h" 12 #include "clang/Lex/Lexer.h"
13 13
14 using namespace clang::ast_matchers; 14 using namespace clang::ast_matchers;
15 15
16 namespace clang { 16 namespace clang::tidy::readability {
17 namespace tidy {
18 namespace readability {
19 17
20 namespace { 18 namespace {
21 19
22 const char *const RedundantReturnDiag = "redundant return statement at the end " 20 const char *const RedundantReturnDiag = "redundant return statement at the end "
23 "of a function with a void return type"; 21 "of a function with a void return type";
89 /*SkipTrailingWhitespaceAndNewLine=*/true)); 87 /*SkipTrailingWhitespaceAndNewLine=*/true));
90 88
91 diag(StmtRange.getBegin(), Diag) << FixItHint::CreateRemoval(RemovedRange); 89 diag(StmtRange.getBegin(), Diag) << FixItHint::CreateRemoval(RemovedRange);
92 } 90 }
93 91
94 } // namespace readability 92 } // namespace clang::tidy::readability
95 } // namespace tidy
96 } // namespace clang