diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-23 20:27:26 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-23 20:27:26 +0000 |
commit | 41fc05cad83dcc1fbd5928129103289cb5724569 (patch) | |
tree | 0ef7b7b8f83cc4827720474c36497cb081813b8c /clang/lib/Sema/SemaDeclObjC.cpp | |
parent | 6e013bf96c295acfe5da99ded7686488a496d376 (diff) | |
download | bcm5719-llvm-41fc05cad83dcc1fbd5928129103289cb5724569.tar.gz bcm5719-llvm-41fc05cad83dcc1fbd5928129103289cb5724569.zip |
[libclang] Indexing API: Fix issues, mostly C++ related.
llvm-svn: 145107
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index f4e2fb32053..ebb0cb5463e 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -817,9 +817,10 @@ Decl *Sema::ActOnStartCategoryImplementation( if (!CatIDecl) { // Category @implementation with no corresponding @interface. // Create and install one. - CatIDecl = ObjCCategoryDecl::Create(Context, CurContext, SourceLocation(), - SourceLocation(), SourceLocation(), + CatIDecl = ObjCCategoryDecl::Create(Context, CurContext, AtCatImplLoc, + ClassLoc, CatLoc, CatName, IDecl); + CatIDecl->setImplicit(); } } |