forked from OSchip/llvm-project
Run clang-format on clang-rename code
So that later commits don't introduce non-functional changes when running clang-format before committing. Reviewers: klimek Differential Revision: https://reviews.llvm.org/D23153 llvm-svn: 277702
This commit is contained in:
parent
7e9abea2ae
commit
0c07f0cb0b
|
@ -41,7 +41,6 @@ private:
|
|||
std::map<std::string, tooling::Replacements> &FileToReplaces;
|
||||
bool PrintLocations;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -65,8 +65,8 @@ private:
|
|||
}
|
||||
|
||||
virtual void run(const MatchFinder::MatchResult &Result) {
|
||||
const auto *NNS =
|
||||
Result.Nodes.getNodeAs<NestedNameSpecifierLoc>("nestedNameSpecifierLoc");
|
||||
const auto *NNS = Result.Nodes.getNodeAs<NestedNameSpecifierLoc>(
|
||||
"nestedNameSpecifierLoc");
|
||||
Locations.push_back(*NNS);
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,6 @@ private:
|
|||
std::vector<NestedNameSpecifierLoc> Locations;
|
||||
MatchFinder Finder;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace clang {
|
||||
|
@ -87,8 +86,8 @@ public:
|
|||
private:
|
||||
void handleCXXRecordDecl(const CXXRecordDecl *RecordDecl) {
|
||||
RecordDecl = RecordDecl->getDefinition();
|
||||
if (const auto *ClassTemplateSpecDecl
|
||||
= dyn_cast<ClassTemplateSpecializationDecl>(RecordDecl)) {
|
||||
if (const auto *ClassTemplateSpecDecl =
|
||||
dyn_cast<ClassTemplateSpecializationDecl>(RecordDecl)) {
|
||||
handleClassTemplateDecl(ClassTemplateSpecDecl->getSpecializedTemplate());
|
||||
}
|
||||
addUSRsOfCtorDtors(RecordDecl);
|
||||
|
@ -137,8 +136,8 @@ private:
|
|||
ASTContext &Context;
|
||||
std::vector<std::string> *USRs;
|
||||
std::set<std::string> USRSet;
|
||||
std::vector<const CXXMethodDecl*> OverriddenMethods;
|
||||
std::vector<const ClassTemplatePartialSpecializationDecl*> PartialSpecs;
|
||||
std::vector<const CXXMethodDecl *> OverriddenMethods;
|
||||
std::vector<const ClassTemplatePartialSpecializationDecl *> PartialSpecs;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
|
Loading…
Reference in New Issue