aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/Module.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-14 17:57:51 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-14 17:57:51 +0000
commit8767dc29ec23f96e71658f760333bdf5d87283d5 (patch)
tree73cd52be999f6251088eff14f7c70dd913089146 /include/clang/Basic/Module.h
parent19f8e85d2e0ba2b97ad848b5f879ec96ebc1660e (diff)
Infer "link" lines for top-level frameworks. Essentially, a framework
will have a shared library with the same name as its framework (and no suffix!) within its .framework directory. Detect this both when inferring the whole top-level framework and when parsing a module map. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Module.h')
-rw-r--r--include/clang/Basic/Module.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/clang/Basic/Module.h b/include/clang/Basic/Module.h
index 2bda801d18..6264c2db7b 100644
--- a/include/clang/Basic/Module.h
+++ b/include/clang/Basic/Module.h
@@ -237,7 +237,13 @@ public:
return false;
}
-
+
+ /// \brief Determine whether this module is a subframework of another
+ /// framework.
+ bool isSubFramework() const {
+ return IsFramework && Parent && Parent->isPartOfFramework();
+ }
+
/// \brief Retrieve the full name of this module, including the path from
/// its top-level module.
std::string getFullModuleName() const;