[CodeComplete] Offer code completion for attached macro attributes

We need to teach code completion how to invoke the type checker for attached macro attributes. After that, everything started working.

rdar://105232015
This commit is contained in:
Alex Hoppen
2023-05-01 21:11:24 -07:00
parent 9c68aaac2d
commit 01cebd68a8
6 changed files with 52 additions and 23 deletions

View File

@@ -3258,7 +3258,7 @@ void simple_display(llvm::raw_ostream &out,
class ResolveMacroRequest
: public SimpleRequest<ResolveMacroRequest,
ConcreteDeclRef(UnresolvedMacroReference,
const Decl *),
DeclContext *),
RequestFlags::Cached> {
public:
using SimpleRequest::SimpleRequest;
@@ -3266,9 +3266,9 @@ public:
private:
friend SimpleRequest;
ConcreteDeclRef
evaluate(Evaluator &evaluator, UnresolvedMacroReference macroRef,
const Decl *decl) const;
ConcreteDeclRef evaluate(Evaluator &evaluator,
UnresolvedMacroReference macroRef,
DeclContext *decl) const;
public:
bool isCached() const { return true; }