summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c/Index.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-16 20:01:17 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-16 20:01:17 +0000
commit16bef857d91ad9328874b85f59edd04155aa9579 (patch)
tree7265faed669c0345a6881236ae2c6aa94cb5d175 /clang/include/clang-c/Index.h
parent7d3c275526783f19b424257e3bab9ff7d0bf6995 (diff)
downloadbcm5719-llvm-16bef857d91ad9328874b85f59edd04155aa9579.tar.gz
bcm5719-llvm-16bef857d91ad9328874b85f59edd04155aa9579.zip
Keep track of whether declararions were loaded from a precompiled
header or not via a new "PCHLevel" field in Decl. We currently use this information to help CIndex filter out declarations that came from a precompiled header (rather than from an AST file). Further down the road, it can be used to help implement multi-level precompiled headers. llvm-svn: 84267
Diffstat (limited to 'clang/include/clang-c/Index.h')
-rw-r--r--clang/include/clang-c/Index.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 3e7ceb3d794..b80cd47e01f 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -117,6 +117,17 @@ CXTranslationUnit clang_createTranslationUnitFromSourceFile(
);
void clang_disposeTranslationUnit(CXTranslationUnit);
+/**
+ * \brief Indicate to Clang that it should only enumerate "local" declarations
+ * when loading any new translation units.
+ *
+ * A "local" declaration is one that belongs in the translation unit itself and
+ * not in a precompiled header that was used by the translation unit.
+ *
+ * FIXME: Remove this hook.
+ */
+void clang_wantOnlyLocalDeclarations(CXIndex);
+
/*
Usage: clang_loadTranslationUnit(). Will load the toplevel declarations
within a translation unit, issuing a 'callback' for each one.
OpenPOWER on IntegriCloud