aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-08-13 22:26:47 +0000
committerTed Kremenek <kremenek@apple.com>2007-08-13 22:26:47 +0000
commite6a82b2c29ad05534841e5f8fd033fb17b6f61e2 (patch)
treeece385a087fb8f39108b302b8a4644438d8de5f2
parent954698cd846f24c02e15bd86e19be8f796dd2ced (diff)
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(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41055 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Expr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h
index dc70201b56..36005223c7 100644
--- a/include/clang/AST/Expr.h
+++ b/include/clang/AST/Expr.h
@@ -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;