clang-rename: fix formatting

As detected by clang-format.

llvm-svn: 301130
This commit is contained in:
Miklos Vajna 2017-04-23 16:07:06 +00:00
parent d13b0bfdac
commit a60cae2648
3 changed files with 5 additions and 7 deletions

View File

@ -88,7 +88,7 @@ private:
// new name.
//
// FIXME: Merge with the above RenamingASTConsumer.
class USRSymbolRenamer: public ASTConsumer {
class USRSymbolRenamer : public ASTConsumer {
public:
USRSymbolRenamer(const std::vector<std::string> &NewNames,
const std::vector<std::vector<std::string>> &USRList,
@ -110,7 +110,7 @@ public:
llvm::errs() << "Renaming failed in " << Replace.getFilePath()
<< "! " << llvm::toString(std::move(Err)) << "\n";
}
}
}
}
}
}
@ -127,8 +127,7 @@ std::unique_ptr<ASTConsumer> RenamingAction::newASTConsumer() {
}
std::unique_ptr<ASTConsumer> QualifiedRenamingAction::newASTConsumer() {
return llvm::make_unique<USRSymbolRenamer>(
NewNames, USRList, FileToReplaces);
return llvm::make_unique<USRSymbolRenamer>(NewNames, USRList, FileToReplaces);
}
} // namespace rename

View File

@ -195,8 +195,7 @@ NestedNameSpecifier *GetNestedNameForType(TypeLoc TL) {
//
// This class will traverse the AST and find every AST node whose USR is in the
// given USRs' set.
class RenameLocFinder
: public RecursiveASTVisitor<RenameLocFinder> {
class RenameLocFinder : public RecursiveASTVisitor<RenameLocFinder> {
public:
RenameLocFinder(llvm::ArrayRef<std::string> USRs, ASTContext &Context)
: USRSet(USRs.begin(), USRs.end()), Context(Context) {}

View File

@ -17,9 +17,9 @@
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H
#include "clang/AST/AST.h"
#include "llvm/ADT/StringRef.h"
#include "clang/Tooling/Core/Replacement.h"
#include "clang/Tooling/Refactoring/AtomicChange.h"
#include "llvm/ADT/StringRef.h"
#include <string>
#include <vector>