summaryrefslogtreecommitdiffstats
path: root/include/clang/Lex/HeaderMap.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-17 06:36:45 +0000
committerChris Lattner <sabre@nondot.org>2007-12-17 06:36:45 +0000
commit822da61b74ce14e89b3fa8774db18c833aa5748b (patch)
tree94c98ef06bf1e44bd5a9bda3dbd702bc360df92b /include/clang/Lex/HeaderMap.h
parentd66552797f9a34f5b966adbe45234111752678a0 (diff)
Step #1 in adding headermap support to clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/HeaderMap.h')
-rw-r--r--include/clang/Lex/HeaderMap.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/include/clang/Lex/HeaderMap.h b/include/clang/Lex/HeaderMap.h
new file mode 100644
index 0000000000..7c79fe0447
--- /dev/null
+++ b/include/clang/Lex/HeaderMap.h
@@ -0,0 +1,37 @@
+//===--- HeaderMap.h - A file that acts like dir of symlinks ----*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Chris Lattner and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines the HeaderMap interface.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_LEX_HEADERMAP_H
+#define LLVM_CLANG_LEX_HEADERMAP_H
+
+namespace clang {
+
+/// This class represents an Apple concept known as a 'header map'. To the
+/// #include file resolution process, it basically acts like a directory of
+/// symlinks to files. Its advantages are that it is dense and more efficient
+/// to create and process than a directory of symlinks.
+class HeaderMap {
+public:
+ /// HeaderMap::Create - This attempts to load the specified file as a header
+ /// map. If it doesn't look like a HeaderMap, it gives up and returns null.
+ /// If it looks like a HeaderMap but is obviously corrupted, it puts a reason
+ /// into the string error argument and returns null.
+ static const HeaderMap *Create(const FileEntry *FE, std::string &ErrorInfo) {
+ // FIXME: woot!
+ return 0;
+ }
+};
+
+} // end namespace clang.
+
+#endif \ No newline at end of file