]> granicus.if.org Git - clang/commit
[AST][NFC] Various NFCs in StringLiteral
authorBruno Ricci <riccibrun@gmail.com>
Thu, 15 Nov 2018 16:42:14 +0000 (16:42 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Thu, 15 Nov 2018 16:42:14 +0000 (16:42 +0000)
commitb9e6abd1ea926a4d0b2395a4e6e1a1f2f4fe1f7b
tree5622c7a76627fd1e71b56d23994c3152d8b5cacf
parented1a7dbfe64c086cae79fe6cb63798230525f449
[AST][NFC] Various NFCs in StringLiteral

Factored out of D54166
([AST] Store the string data in StringLiteral in a trailing array of chars):

* For-range loops in containsNonAscii and containsNonAsciiOrNull.
* Comments and style fixes.
* int -> unsigned in mapCharByteWidth since TargetInfo::getCharWidth
  and friends return an unsigned, and StringLiteral manipulates and
  stores CharByteWidth as an unsigned.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346967 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
lib/AST/Expr.cpp