aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-02-01 16:36:31 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-02-01 16:36:31 +0000
commit17c1a2476aa910760bdb91fe2990c9665eafac9a (patch)
tree6445afd310e6653cd266eed2bcfeed18782c5c50 /tools
parent8b136d85487ec3cc017470d97479159d93a14f91 (diff)
libclang: add comments for CXStringFlag
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/libclang/CXString.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/libclang/CXString.cpp b/tools/libclang/CXString.cpp
index f2f33a2178..73d1e1e35f 100644
--- a/tools/libclang/CXString.cpp
+++ b/tools/libclang/CXString.cpp
@@ -23,7 +23,18 @@
using namespace clang;
using namespace clang::cxstring;
-enum CXStringFlag { CXS_Unmanaged, CXS_Malloc, CXS_StringBuf };
+/// Describes the kind of underlying data in CXString.
+enum CXStringFlag {
+ /// CXString contains a 'const char *' that it doesn't own.
+ CXS_Unmanaged,
+
+ /// CXString contains a 'const char *' that it allocated with malloc().
+ CXS_Malloc,
+
+ /// CXString contains a CXStringBuf that needs to be returned to the
+ /// CXStringPool.
+ CXS_StringBuf
+};
//===----------------------------------------------------------------------===//
// Basic generation of CXStrings.