From: Dmitri Gribenko Date: Fri, 1 Feb 2013 16:36:31 +0000 (+0000) Subject: libclang: add comments for CXStringFlag X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74f3e1e0285fc5ad09deaec96eb87beba4462fd6;p=platform%2Fupstream%2Fllvm.git libclang: add comments for CXStringFlag llvm-svn: 174194 --- diff --git a/clang/tools/libclang/CXString.cpp b/clang/tools/libclang/CXString.cpp index f2f33a2..73d1e1e 100644 --- a/clang/tools/libclang/CXString.cpp +++ b/clang/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.