]> granicus.if.org Git - clang/commitdiff
[libclang] Add some comments about the version constants for the libclang API.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 6 Nov 2012 21:21:49 +0000 (21:21 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 6 Nov 2012 21:21:49 +0000 (21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167489 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang-c/Index.h

index 2b52c0c89c1bdbe3c35c5d7c8f1e03491e43a555..aa3403cc80c46be4c889ffe76aebe76ec06b42eb 100644 (file)
 #include "clang-c/Platform.h"
 #include "clang-c/CXString.h"
 
+/**
+ * \brief The version constants for the libclang API.
+ * CINDEX_VERSION_MINOR should increase when there are API additions.
+ * CINDEX_VERSION_MAJOR is intended for "major" source/ABI breaking changes.
+ *
+ * The policy about the libclang API was always to keep it source and ABI
+ * compatible, thus CINDEX_VERSION_MAJOR is expected to remain stable.
+ */
 #define CINDEX_VERSION_MAJOR 0
 #define CINDEX_VERSION_MINOR 6