Add a FIXME for a bug Doug pointed out in code review.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 30 May 2014 19:44:17 +0000 (19:44 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 30 May 2014 19:44:17 +0000 (19:44 +0000)
llvm-svn: 209915

clang/include/clang/Basic/Module.h

index 89fd388..9b66840 100644 (file)
@@ -425,6 +425,10 @@ public:
 
   /// \brief Determine whether the specified module would be visible to
   /// a lookup at the end of this module.
+  ///
+  /// FIXME: This may return incorrect results for (submodules of) the
+  /// module currently being built, if it's queried before we see all
+  /// of its imports.
   bool isModuleVisible(const Module *M) const {
     if (VisibleModulesCache.empty())
       buildVisibleModulesCache();