summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-23 20:27:26 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-23 20:27:26 +0000
commit41fc05cad83dcc1fbd5928129103289cb5724569 (patch)
tree0ef7b7b8f83cc4827720474c36497cb081813b8c /clang/lib/Sema/SemaDeclObjC.cpp
parent6e013bf96c295acfe5da99ded7686488a496d376 (diff)
downloadbcm5719-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.cpp5
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();
}
}
OpenPOWER on IntegriCloud