diff options
| author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-01-26 19:01:06 +0000 |
|---|---|---|
| committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-01-26 19:01:06 +0000 |
| commit | 1660a5d2983030e92c372be4746adc35489e552e (patch) | |
| tree | 5b61cc6278e1de71ae78a018c537d69af70bfb9a /clang/lib/ASTMatchers | |
| parent | 2c8592a80f8be40f9a3e1289c8eaa8abaa9f6d9e (diff) | |
| download | bcm5719-llvm-1660a5d2983030e92c372be4746adc35489e552e.tar.gz bcm5719-llvm-1660a5d2983030e92c372be4746adc35489e552e.zip | |
Fix Clang-tidy modernize-use-nullptr warnings; other minor fixes.
Differential revision: http://reviews.llvm.org/D16567
llvm-svn: 258836
Diffstat (limited to 'clang/lib/ASTMatchers')
| -rw-r--r-- | clang/lib/ASTMatchers/Dynamic/Marshallers.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/clang/lib/ASTMatchers/Dynamic/Marshallers.h b/clang/lib/ASTMatchers/Dynamic/Marshallers.h index 64d6b7814ae..6bf887860bc 100644 --- a/clang/lib/ASTMatchers/Dynamic/Marshallers.h +++ b/clang/lib/ASTMatchers/Dynamic/Marshallers.h @@ -1,4 +1,4 @@ -//===--- Marshallers.h - Generic matcher function marshallers -*- C++ -*-===// +//===--- Marshallers.h - Generic matcher function marshallers ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -32,7 +32,6 @@ namespace ast_matchers { namespace dynamic { namespace internal { - /// \brief Helper template class to just from argument type to the right is/get /// functions in VariantValue. /// Used to verify and extract the matcher arguments below. @@ -234,7 +233,7 @@ static VariantMatcher outvalueToVariantMatcher(const DynTypedMatcher &Matcher) { template <typename T> static VariantMatcher outvalueToVariantMatcher(const T &PolyMatcher, typename T::ReturnTypes * = - NULL) { + nullptr) { std::vector<DynTypedMatcher> Matchers; mergePolyMatchers(PolyMatcher, Matchers, typename T::ReturnTypes()); VariantMatcher Out = VariantMatcher::PolymorphicMatcher(std::move(Matchers)); @@ -410,7 +409,6 @@ private: return VariantMatcher(); \ } - /// \brief 0-arg marshaller function. template <typename ReturnType> static VariantMatcher matcherMarshall0(void (*Func)(), StringRef MatcherName, @@ -708,9 +706,9 @@ makeMatcherAutoMarshall(ast_matchers::internal::VariadicOperatorMatcherFunc< MatcherName); } -} // namespace internal -} // namespace dynamic -} // namespace ast_matchers -} // namespace clang +} // namespace internal +} // namespace dynamic +} // namespace ast_matchers +} // namespace clang -#endif // LLVM_CLANG_AST_MATCHERS_DYNAMIC_MARSHALLERS_H +#endif // LLVM_CLANG_AST_MATCHERS_DYNAMIC_MARSHALLERS_H |

