[PATCH] D30639: [clang-tidy] Ignore substituted template types in modernize-use-nullptr check.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 6 06:44:48 PST 2017
hokein added inline comments.
================
Comment at: test/clang-tidy/modernize-use-nullptr.cpp:252
+ public:
+ explicit TemplateClass(int a, T default_value = 0) {}
+};
----------------
xazax.hun wrote:
> It might be great to have a test case for:
>
> ```
>
> template<typename T>
> class TemplateClass {
> public:
> explicit TemplateClass(int a, T *default_value = 0) {}
> ```
Good catch. Done.
https://reviews.llvm.org/D30639
More information about the cfe-commits
mailing list