From c2422facc0837a576e322c23395361c76c7f3403 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. llvm-svn: 209915 --- clang/include/clang/Basic/Module.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clang/include/clang/Basic/Module.h b/clang/include/clang/Basic/Module.h index 89fd3886b44a..9b66840ba412 100644 --- a/clang/include/clang/Basic/Module.h +++ b/clang/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();