[clang] c0053c6 - [Syntax] Add missing default constructor for ConstChildIterator

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 28 08:38:35 PDT 2020


Author: Simon Pilgrim
Date: 2020-10-28T15:38:18Z
New Revision: c0053c62d9a0b798b42686499de9bb2e7391b111

URL: https://github.com/llvm/llvm-project/commit/c0053c62d9a0b798b42686499de9bb2e7391b111
DIFF: https://github.com/llvm/llvm-project/commit/c0053c62d9a0b798b42686499de9bb2e7391b111.diff

LOG: [Syntax] Add missing default constructor for ConstChildIterator

MSVC was complaining as it couldn't see the Base::ChildIteratorBase default constructor.

Added: 
    

Modified: 
    clang/include/clang/Tooling/Syntax/Tree.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Tooling/Syntax/Tree.h b/clang/include/clang/Tooling/Syntax/Tree.h
index 23e6081a6336..4bfa15517ba4 100644
--- a/clang/include/clang/Tooling/Syntax/Tree.h
+++ b/clang/include/clang/Tooling/Syntax/Tree.h
@@ -215,6 +215,7 @@ class Tree : public Node {
   struct ConstChildIterator
       : ChildIteratorBase<ConstChildIterator, const Node> {
     using Base::ChildIteratorBase;
+    ConstChildIterator() = default;
     ConstChildIterator(const ChildIterator &I) : Base(I.asPointer()) {}
   };
 


        


More information about the cfe-commits mailing list