|
18 | 18 | #include "clang/Lex/CodeCompletionHandler.h"
|
19 | 19 | #include "clang/Lex/Preprocessor.h"
|
20 | 20 | #include "clang/Sema/Sema.h"
|
| 21 | +#include "clang/Sema/SemaObjC.h" |
21 | 22 | #include "clang/Sema/SemaOpenMP.h"
|
22 | 23 | #include "llvm/ADT/SmallVector.h"
|
23 | 24 | #include "llvm/Frontend/OpenMP/OMPContext.h"
|
@@ -445,8 +446,8 @@ class Parser : public CodeCompletionHandler {
|
445 | 446 | /// True if we are within an Objective-C container while parsing C-like decls.
|
446 | 447 | ///
|
447 | 448 | /// This is necessary because Sema thinks we have left the container
|
448 |
| - /// to parse the C-like decls, meaning Actions.getObjCDeclContext() will |
449 |
| - /// be NULL. |
| 449 | + /// to parse the C-like decls, meaning Actions.ObjC().getObjCDeclContext() |
| 450 | + /// will be NULL. |
450 | 451 | bool ParsingInObjCContainer;
|
451 | 452 |
|
452 | 453 | /// Whether to skip parsing of function bodies.
|
@@ -497,7 +498,7 @@ class Parser : public CodeCompletionHandler {
|
497 | 498 | }
|
498 | 499 |
|
499 | 500 | ObjCContainerDecl *getObjCDeclContext() const {
|
500 |
| - return Actions.getObjCDeclContext(); |
| 501 | + return Actions.ObjC().getObjCDeclContext(); |
501 | 502 | }
|
502 | 503 |
|
503 | 504 | // Type forwarding. All of these are statically 'void*', but they may all be
|
@@ -1083,11 +1084,11 @@ class Parser : public CodeCompletionHandler {
|
1083 | 1084 | : P(p), DC(p.getObjCDeclContext()),
|
1084 | 1085 | WithinObjCContainer(P.ParsingInObjCContainer, DC != nullptr) {
|
1085 | 1086 | if (DC)
|
1086 |
| - P.Actions.ActOnObjCTemporaryExitContainerContext(DC); |
| 1087 | + P.Actions.ObjC().ActOnObjCTemporaryExitContainerContext(DC); |
1087 | 1088 | }
|
1088 | 1089 | ~ObjCDeclContextSwitch() {
|
1089 | 1090 | if (DC)
|
1090 |
| - P.Actions.ActOnObjCReenterContainerContext(DC); |
| 1091 | + P.Actions.ObjC().ActOnObjCReenterContainerContext(DC); |
1091 | 1092 | }
|
1092 | 1093 | };
|
1093 | 1094 |
|
|
0 commit comments