Added documentation to StringLiteral noting that the strings returned by

getStrData() are not null-terminated, and the lengths of these strings should
be determined using getByteLength().

llvm-svn: 41055
This commit is contained in:
Ted Kremenek 2007-08-13 22:26:47 +00:00
parent 948653915f
commit 86aeed9236
1 changed files with 4 additions and 0 deletions

View File

@ -222,6 +222,10 @@ public:
static bool classof(const FloatingLiteral *) { return true; }
};
/// StringLiteral - This represents a string literal expression, e.g. "foo"
/// or L"bar" (wide strings). The actual string is returned by getStrData()
/// is NOT null-terminated, and the length of the string is determined by
/// calling getByteLength().
class StringLiteral : public Expr {
const char *StrData;
unsigned ByteLength;