]> granicus.if.org Git - clang/commitdiff
Added a method to DeclContext that marks the
authorSean Callanan <scallanan@apple.com>
Thu, 23 Aug 2012 21:16:40 +0000 (21:16 +0000)
committerSean Callanan <scallanan@apple.com>
Thu, 23 Aug 2012 21:16:40 +0000 (21:16 +0000)
lookup table as needing to be built.

This is required for LLDB, which provides the
contents of many DeclContexts through a custom
ExternalASTSource.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162471 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclBase.h

index 0f596095f74a21ce30c817b187336237b39e69ec..ec4bfdd72b9b84706f643cf08bf0cf1edec533cb 100644 (file)
@@ -1479,6 +1479,13 @@ public:
   inline ddiag_iterator ddiag_end() const;
 
   // Low-level accessors
+    
+  /// \brief Mark the lookup table as needing to be built.  This should be
+  /// used only if setHasExternalLexicalStorage() has been called.
+  void setMustBuildLookupTable() {
+    assert(ExternalLexicalStorage && "Requires external lexical storage");
+    LookupPtr.setInt(true);
+  }
 
   /// \brief Retrieve the internal representation of the lookup structure.
   /// This may omit some names if we are lazily building the structure.