forked from OSchip/llvm-project
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:
parent
948653915f
commit
86aeed9236
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue