diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 |
commit | cfca06d7963fa0909f90483b42a6d7d194d01e08 (patch) | |
tree | 209fb2a2d68f8f277793fc8df46c753d31bc853b /clang/lib/ASTMatchers/Dynamic/VariantValue.cpp | |
parent | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (diff) |
Notes
Diffstat (limited to 'clang/lib/ASTMatchers/Dynamic/VariantValue.cpp')
-rw-r--r-- | clang/lib/ASTMatchers/Dynamic/VariantValue.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp b/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp index 118ca2a41cb1..866e2d0e3491 100644 --- a/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp +++ b/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp @@ -1,4 +1,4 @@ -//===--- VariantValue.cpp - Polymorphic value type -*- C++ -*-===/ +//===--- VariantValue.cpp - Polymorphic value type --------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -101,8 +101,7 @@ public: return llvm::None; } - bool isConvertibleTo(ast_type_traits::ASTNodeKind Kind, - unsigned *Specificity) const override { + bool isConvertibleTo(ASTNodeKind Kind, unsigned *Specificity) const override { return ArgKind(Matcher.getSupportedKind()) .isConvertibleTo(Kind, Specificity); } @@ -159,8 +158,7 @@ public: return llvm::None; } - bool isConvertibleTo(ast_type_traits::ASTNodeKind Kind, - unsigned *Specificity) const override { + bool isConvertibleTo(ASTNodeKind Kind, unsigned *Specificity) const override { unsigned MaxSpecificity = 0; for (const DynTypedMatcher &Matcher : Matchers) { unsigned ThisSpecificity; @@ -202,8 +200,7 @@ public: return Ops.constructVariadicOperator(Op, Args); } - bool isConvertibleTo(ast_type_traits::ASTNodeKind Kind, - unsigned *Specificity) const override { + bool isConvertibleTo(ASTNodeKind Kind, unsigned *Specificity) const override { for (const VariantMatcher &Matcher : Args) { if (!Matcher.isConvertibleTo(Kind, Specificity)) return false; |