diff options
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang/AST/Expr.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h index 8bd0c9d7590..8130f4f6310 100644 --- a/clang/include/clang/AST/Expr.h +++ b/clang/include/clang/AST/Expr.h @@ -476,12 +476,14 @@ public: /// is NOT null-terminated, and the length of the string is determined by /// calling getByteLength(). The C type for a string is always a /// ConstantArrayType. +/// +/// Note that strings in C can be formed by concatenation of multiple string +/// literal pptokens in trnaslation phase #6. This keeps track of the locations +/// of each of these pieces. class StringLiteral : public Expr { const char *StrData; unsigned ByteLength; bool IsWide; - // If the StringLiteral was composed using token pasting, both locations - // are needed. If not (the common case), firstTokLoc == lastTokLoc. unsigned NumConcatenated; SourceLocation TokLocs[1]; public: |

