mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Require "import Foundation" to use @objc in library files, too.
Make this diagnostic a little nicer in other ways, too: - Highlight the whole attribute (including the at-sign). - Don't hardcode the string "objc". Swift SVN r25999
This commit is contained in:
@@ -43,6 +43,7 @@ namespace swift {
|
||||
class ASTWalker;
|
||||
class BraceStmt;
|
||||
class Decl;
|
||||
class DeclAttribute;
|
||||
class TypeDecl;
|
||||
enum class DeclKind : uint8_t;
|
||||
class ExtensionDecl;
|
||||
@@ -839,7 +840,7 @@ public:
|
||||
TinyPtrVector<TypeDecl*> LocalTypeDecls;
|
||||
|
||||
/// The first location where an @objc attribute appeared.
|
||||
SourceLoc FirstObjCAttrLoc;
|
||||
const DeclAttribute *FirstObjCAttr = nullptr;
|
||||
|
||||
template <typename T>
|
||||
using OperatorMap = llvm::DenseMap<Identifier,llvm::PointerIntPair<T,1,bool>>;
|
||||
|
||||
Reference in New Issue
Block a user