]> granicus.if.org Git - clang/commit
Avoid dubious IdentifierInfo::getNameStart() uses
authorAlp Toker <alp@nuanti.com>
Sat, 7 Jun 2014 23:30:53 +0000 (23:30 +0000)
committerAlp Toker <alp@nuanti.com>
Sat, 7 Jun 2014 23:30:53 +0000 (23:30 +0000)
commit6719dde6f3b5a94712a143da016ee5e214dc5f60
tree9816d1db1f44f2998a70f2712543d43294ecb957
parentb521d7647c33a9de7384146fe89663d63f4fbf25
Avoid dubious IdentifierInfo::getNameStart() uses

These cases in particular were incurring an extra strlen() when we already knew
the length. They appear to be leftovers from when the interfaces worked with C
strings that have continued to compile due to the implicit StringRef ctor.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210403 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclObjC.h
lib/CodeGen/CGObjCMac.cpp
lib/Index/USRGeneration.cpp
lib/Sema/SemaPseudoObject.cpp
lib/Sema/SemaStmtAttr.cpp
tools/libclang/CXString.cpp