[SourceKit] Add parameter.name.local and parameter.name.external tags

... for the fully annotated declarations. More substructure more better.
This has to go through a callback mechanism similar to printDeclLoc and
printDeclPre since it should be scheduled after both of those are
printed.

rdar://problem/24292226
This commit is contained in:
Ben Langmuir
2016-02-24 15:03:46 -08:00
parent b509fca173
commit d3e98f52ef
5 changed files with 92 additions and 19 deletions

View File

@@ -78,6 +78,13 @@ private:
return OtherPrinter.printSynthesizedExtensionPost(ED, NTD);
}
void printNamePre(PrintNameContext Context) override {
return OtherPrinter.printNamePre(Context);
}
void printNamePost(PrintNameContext Context) override {
return OtherPrinter.printNamePost(Context);
}
// Prints regular comments of the header the clang node comes from, until
// the location of the node. Keeps track of the comments that were printed
// from the file and resumes printing for the next node from the same file.