diff options
Diffstat (limited to 'compilerplugins/clang/nullptr.cxx')
-rw-r--r-- | compilerplugins/clang/nullptr.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compilerplugins/clang/nullptr.cxx b/compilerplugins/clang/nullptr.cxx index b4a40b408a6c..55551ac09292 100644 --- a/compilerplugins/clang/nullptr.cxx +++ b/compilerplugins/clang/nullptr.cxx @@ -75,7 +75,7 @@ public: bool TraverseInitListExpr(InitListExpr * expr, DataRecursionQueue * queue = nullptr); - // bool shouldVisitTemplateInstantiations() const { return true; } + bool shouldVisitTemplateInstantiations() const { return true; } private: bool isInLokIncludeFile(SourceLocation spellingLocation) const; @@ -209,6 +209,9 @@ bool Nullptr::VisitParmVarDecl(ParmVarDecl const * decl) { if (!isAnyKindOfPointerType(decl->getType())) { return true; } + if (decl->hasUninstantiatedDefaultArg()) { + return true; //TODO + } auto e = decl->getDefaultArg(); if (e == nullptr) { return true; |