зеркало из https://github.com/microsoft/clang-1.git
When rewriting a __block declaration, use a suitable API to get location of
the declaration in the presence of an initializer macro. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92312 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
6b401c0e7f
Коммит
6f0a0a9d20
|
@ -4390,7 +4390,9 @@ void RewriteObjC::RewriteBlockPointerDecl(NamedDecl *ND) {
|
|||
void RewriteObjC::RewriteByRefVar(VarDecl *ND) {
|
||||
SourceLocation DeclLoc = ND->getTypeSpecStartLoc();
|
||||
const char *startBuf = SM->getCharacterData(DeclLoc);
|
||||
const char *endBuf = SM->getCharacterData(ND->getLocEnd());
|
||||
SourceLocation X = ND->getLocEnd();
|
||||
X = SM->getInstantiationLoc(X);
|
||||
const char *endBuf = SM->getCharacterData(X);
|
||||
std::string Name(ND->getNameAsString());
|
||||
std::string ByrefType = "struct __Block_byref_";
|
||||
ByrefType += Name;
|
||||
|
|
Загрузка…
Ссылка в новой задаче