mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[cleanup] adding undef to several usages of included def file
Swift SVN r26050
This commit is contained in:
@@ -2037,6 +2037,7 @@ public:
|
||||
TargetName = #Id; \
|
||||
break;
|
||||
#include "swift/AST/DeclNodes.def"
|
||||
#undef DECL
|
||||
}
|
||||
}
|
||||
StringRef Description = (TargetName + llvm::Twine(" Attribute")).str();
|
||||
@@ -2050,6 +2051,7 @@ public:
|
||||
addDeclAttrKeyword(#KEYWORD, Description); \
|
||||
}
|
||||
#include "swift/AST/Attr.def"
|
||||
#undef DECL_ATTR
|
||||
}
|
||||
|
||||
void getAttributeDeclParamCompletions(DeclAttrKind AttrKind, int ParamIndex) {
|
||||
@@ -2059,6 +2061,7 @@ public:
|
||||
#define AVAILABILITY_PLATFORM(X, PrettyName) \
|
||||
addDeclAttrParamKeyword(#X, "Platform", false);
|
||||
#include "swift/AST/PlatformKinds.def"
|
||||
#undef AVAILABILITY_PLATFORM
|
||||
} else {
|
||||
addDeclAttrParamKeyword("unavailable", "", false);
|
||||
addDeclAttrParamKeyword("message", "Specify message", true);
|
||||
@@ -2417,7 +2420,7 @@ static void addDeclKeywords(CodeCompletionResultSink &Sink) {
|
||||
|
||||
#define DECL_KEYWORD(kw) AddKeyword(#kw);
|
||||
#include "swift/Parse/Tokens.def"
|
||||
|
||||
#undef DECL_KEYWORD
|
||||
// Context-sensitive keywords.
|
||||
AddKeyword("weak");
|
||||
AddKeyword("unowned");
|
||||
@@ -2447,6 +2450,7 @@ static void addStmtKeywords(CodeCompletionResultSink &Sink) {
|
||||
|
||||
#define STMT_KEYWORD(kw) AddKeyword(#kw, StringRef());
|
||||
#include "swift/Parse/Tokens.def"
|
||||
#undef STMT_KEYWORD
|
||||
|
||||
// FIXME: The pedantically correct way to find the type is to resolve the
|
||||
// Swift.StringLiteralType type.
|
||||
|
||||
Reference in New Issue
Block a user