mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-12 19:01:55 +00:00
clang-rename: fix formatting
As detected by clang-format. llvm-svn: 301130
This commit is contained in:
parent
d13b0bfdac
commit
a60cae2648
@ -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
|
||||
|
@ -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) {}
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user