Mercurial > hg > CbC > CbC_llvm
comparison clang-tools-extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.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 | 79ff65ed7e25 |
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::modernize { |
17 namespace tidy { | |
18 namespace modernize { | |
19 | 17 |
20 void UseUncaughtExceptionsCheck::registerMatchers(MatchFinder *Finder) { | 18 void UseUncaughtExceptionsCheck::registerMatchers(MatchFinder *Finder) { |
21 std::string MatchText = "::std::uncaught_exception"; | 19 std::string MatchText = "::std::uncaught_exception"; |
22 | 20 |
23 // Using declaration: warning and fix-it. | 21 // Using declaration: warning and fix-it. |
95 "std::uncaught_exceptions() > 0"); | 93 "std::uncaught_exceptions() > 0"); |
96 } | 94 } |
97 } | 95 } |
98 } | 96 } |
99 | 97 |
100 } // namespace modernize | 98 } // namespace clang::tidy::modernize |
101 } // namespace tidy | |
102 } // namespace clang |