Wei Yi Tee | 543af74 | 2022-06-01 06:52:24 -0700 | [diff] [blame] | 1 | // Part of the Crubit project, under the Apache License v2.0 with LLVM |
| 2 | // Exceptions. See /LICENSE for license information. |
| 3 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 4 | |
| 5 | #ifndef CRUBIT_NULLABILITY_VERIFICATION_POINTER_NULLABILITY_MATCHERS_H_ |
| 6 | #define CRUBIT_NULLABILITY_VERIFICATION_POINTER_NULLABILITY_MATCHERS_H_ |
| 7 | |
| 8 | #include "clang/ASTMatchers/ASTMatchersInternal.h" |
| 9 | |
| 10 | namespace clang { |
| 11 | namespace tidy { |
| 12 | namespace nullability { |
| 13 | |
Wei Yi Tee | 1cd62af | 2022-06-09 00:56:46 -0700 | [diff] [blame] | 14 | ast_matchers::internal::Matcher<Stmt> isPointerVariableReference(); |
Wei Yi Tee | 8b58e19 | 2022-08-02 10:15:40 -0700 | [diff] [blame] | 15 | ast_matchers::internal::Matcher<Stmt> isMemberOfPointerType(); |
| 16 | ast_matchers::internal::Matcher<Stmt> isPointerArrow(); |
Wei Yi Tee | cebc226 | 2022-06-10 04:27:57 -0700 | [diff] [blame] | 17 | ast_matchers::internal::Matcher<Stmt> isCXXThisExpr(); |
Wei Yi Tee | 1cd62af | 2022-06-09 00:56:46 -0700 | [diff] [blame] | 18 | ast_matchers::internal::Matcher<Stmt> isNullPointerLiteral(); |
| 19 | ast_matchers::internal::Matcher<Stmt> isAddrOf(); |
Wei Yi Tee | 543af74 | 2022-06-01 06:52:24 -0700 | [diff] [blame] | 20 | ast_matchers::internal::Matcher<Stmt> isPointerDereference(); |
Wei Yi Tee | 1cd62af | 2022-06-09 00:56:46 -0700 | [diff] [blame] | 21 | ast_matchers::internal::Matcher<Stmt> isPointerCheckBinOp(); |
| 22 | ast_matchers::internal::Matcher<Stmt> isImplicitCastPointerToBool(); |
Wei Yi Tee | c1e1d86 | 2022-08-19 14:11:28 -0700 | [diff] [blame] | 23 | ast_matchers::internal::Matcher<Stmt> isCallExpr(); |
Wei Yi Tee | ed480d6 | 2022-08-26 03:19:54 -0700 | [diff] [blame] | 24 | ast_matchers::internal::Matcher<Stmt> isPointerReturn(); |
Wei Yi Tee | c1e1d86 | 2022-08-19 14:11:28 -0700 | [diff] [blame] | 25 | |
Wei Yi Tee | 543af74 | 2022-06-01 06:52:24 -0700 | [diff] [blame] | 26 | } // namespace nullability |
| 27 | } // namespace tidy |
| 28 | } // namespace clang |
| 29 | |
| 30 | #endif // CRUBIT_NULLABILITY_VERIFICATION_POINTER_NULLABILITY_MATCHERS_H_ |