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)
commit541d5070bfb4c617e389b6aecc57fdf0738ad243
tree32d2cc604223f90772d6fff814f4fff3f16838c0
parent4925ba7ffe7d5af68f2587944d0185e864c3ec77
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.

llvm-svn: 210403
clang/include/clang/AST/DeclObjC.h
clang/lib/CodeGen/CGObjCMac.cpp
clang/lib/Index/USRGeneration.cpp
clang/lib/Sema/SemaPseudoObject.cpp
clang/lib/Sema/SemaStmtAttr.cpp
clang/tools/libclang/CXString.cpp