summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c/Index.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-14 09:02:10 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-14 09:02:10 +0000
commitde81fc8557a82101b21a32e34ebd19cfc634c826 (patch)
tree75425d9fd9542cf7355c452df2bbe90b121b2531 /clang/include/clang-c/Index.h
parent9e4704ab07d28bd6d507d9d3861b3bd2076deaaa (diff)
downloadbcm5719-llvm-de81fc8557a82101b21a32e34ebd19cfc634c826.tar.gz
bcm5719-llvm-de81fc8557a82101b21a32e34ebd19cfc634c826.zip
NestedMacroInstantiations -> NestedMacroExpansions
This is switches all the interfaces points (and most of the commenst / local variables I saw on my way through) regarding the NestedMacroInstantiations bit. The libclang enums corresponding to this state were renamed, but a legacy enum was added with the old name, and the same value to keep existing clients working. I've added a documentation blurb for it, but let me know if there is a canonical way to document legacy elemenst of the libclang interface. No functionality changed here, even in tests. llvm-svn: 135141
Diffstat (limited to 'clang/include/clang-c/Index.h')
-rw-r--r--clang/include/clang-c/Index.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 858b2ce4fc8..b9197b86e78 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -840,7 +840,17 @@ enum CXTranslationUnit_Flags {
* a large amount of storage to due preprocessor metaprogramming. Moreover,
* its fairly rare that this information is useful for libclang clients.
*/
- CXTranslationUnit_NestedMacroInstantiations = 0x40
+ CXTranslationUnit_NestedMacroExpansions = 0x40,
+
+ /**
+ * \brief Legacy name to indicate that the "detailed" preprocessing record,
+ * if requested, should contain nested macro instantiations.
+ *
+ * \see CXTranslationUnit_NestedMacroExpansions for the current name for this
+ * value, and its semantics. This is just an alias.
+ */
+ CXTranslationUnit_NestedMacroInstantiations =
+ CXTranslationUnit_NestedMacroExpansions
};
/**
OpenPOWER on IntegriCloud