From 94f811d5b2a39f6e91d3671e16bc9614f6c8a061 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 14 May 2015 00:22:12 +0000 Subject: [PATCH] Fix a #include cycle in the libclang headers. "Eventually" is now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237320 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ReleaseNotes.rst | 4 ++++ include/clang-c/Index.h | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst index bffef19986..5682f34af7 100644 --- a/docs/ReleaseNotes.rst +++ b/docs/ReleaseNotes.rst @@ -122,6 +122,10 @@ this section should help get you past the largest hurdles of upgrading. objects instead of `MacroDirective` objects. This allows preserving full information on macros imported from modules. +- `clang-c/Index.h` no longer `#include`\s `clang-c/Documentation.h`. + You now need to explicitly `#include "clang-c/Documentation.h"` if + you use the libclang documentation API. + libclang -------- diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 693eef2a79..3276afc4b9 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -5736,9 +5736,6 @@ CINDEX_LINKAGE unsigned clang_Type_visitFields(CXType T, * @} */ -/* Include the comment API for compatibility. This will eventually go away. */ -#include "clang-c/Documentation.h" - #ifdef __cplusplus } #endif -- 2.40.0