Eliminate the Parameter type completely - now ParameterList is just

an overblown array of ParamDecl*'s that also keeps track of parenlocs
and has helper methods.
This commit is contained in:
Chris Lattner
2016-01-03 14:44:48 -08:00
parent a503269e2d
commit 6afe77d597
43 changed files with 362 additions and 513 deletions

View File

@@ -1912,9 +1912,9 @@ class FormatWalker: public ide::SourceEntityWalker {
// Function parameters are siblings.
for (auto P : AFD->getParameterLists()) {
for (auto &param : *P) {
addPair(param.getEndLoc(),
FindAlignLoc(param.getStartLoc()), tok::comma);
for (auto param : *P) {
addPair(param->getEndLoc(),
FindAlignLoc(param->getStartLoc()), tok::comma);
}
}
}