summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-12-06 18:55:45 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-12-06 18:55:45 +0000
commit0e282ef86807c2931147c574d1a45b006d45f5c5 (patch)
tree013236b87d9759449dc2916d5aba74723fed7bf3 /clang/include/clang-c
parent326d998cfa2850f523286789af2fb58480b3fc22 (diff)
downloadbcm5719-llvm-0e282ef86807c2931147c574d1a45b006d45f5c5.tar.gz
bcm5719-llvm-0e282ef86807c2931147c574d1a45b006d45f5c5.zip
[libclang] Rename CXSkippedRanges to CXSourceRangeList to make it more future-proof.
Suggested by Alp Toker. llvm-svn: 196591
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 3ca92d83dce..04c3a652bd1 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -599,31 +599,30 @@ CINDEX_LINKAGE CXSourceLocation clang_getRangeStart(CXSourceRange range);
CINDEX_LINKAGE CXSourceLocation clang_getRangeEnd(CXSourceRange range);
/**
- * \brief Identifies an array of ranges that were skipped by the preprocessor.
- *
- * The preprocessor will skip lines when they are surrounded by an
- * if/ifdef/ifndef directive whose condition does not evaluate to true.
+ * \brief Identifies an array of ranges.
*/
typedef struct {
/** \brief The number of ranges in the \c ranges array. */
unsigned count;
/**
- * \brief An array of \c CXSourceRange, where each range starts at the
- * preprocessor directive after the # token, and ends at the end of the
- * corresponding endif.
+ * \brief An array of \c CXSourceRanges.
*/
CXSourceRange *ranges;
-} CXSkippedRanges;
+} CXSourceRangeList;
/**
* \brief Retrieve all ranges that were skipped by the preprocessor.
+ *
+ * The preprocessor will skip lines when they are surrounded by an
+ * if/ifdef/ifndef directive whose condition does not evaluate to true.
*/
-CINDEX_LINKAGE CXSkippedRanges *clang_getSkippedRanges(CXTranslationUnit tu, CXFile file);
+CINDEX_LINKAGE CXSourceRangeList *clang_getSkippedRanges(CXTranslationUnit tu,
+ CXFile file);
/**
- * \brief Destroy the given \c CXSkippedRanges.
+ * \brief Destroy the given \c CXSourceRangeList.
*/
-CINDEX_LINKAGE void clang_disposeSkippedRanges(CXSkippedRanges *skipped);
+CINDEX_LINKAGE void clang_disposeSourceRangeList(CXSourceRangeList *ranges);
/**
* @}
OpenPOWER on IntegriCloud