From 360b86d2ce509f6f8e275907c649cb684f06e140 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 30 May 2014 19:44:17 +0000 Subject: [PATCH] Add a FIXME for a bug Doug pointed out in code review. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209915 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/Module.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/clang/Basic/Module.h b/include/clang/Basic/Module.h index 89fd3886b4..9b66840ba4 100644 --- a/include/clang/Basic/Module.h +++ b/include/clang/Basic/Module.h @@ -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(); -- 2.40.0