[clang-tools-extra] r301130 - clang-rename: fix formatting
Miklos Vajna via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 23 09:07:06 PDT 2017
Author: vmiklos
Date: Sun Apr 23 11:07:06 2017
New Revision: 301130
URL: http://llvm.org/viewvc/llvm-project?rev=301130&view=rev
Log:
clang-rename: fix formatting
As detected by clang-format.
Modified:
clang-tools-extra/trunk/clang-rename/RenamingAction.cpp
clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp
clang-tools-extra/trunk/clang-rename/USRLocFinder.h
Modified: clang-tools-extra/trunk/clang-rename/RenamingAction.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-rename/RenamingAction.cpp?rev=301130&r1=301129&r2=301130&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-rename/RenamingAction.cpp (original)
+++ clang-tools-extra/trunk/clang-rename/RenamingAction.cpp Sun Apr 23 11:07:06 2017
@@ -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> RenamingAct
}
std::unique_ptr<ASTConsumer> QualifiedRenamingAction::newASTConsumer() {
- return llvm::make_unique<USRSymbolRenamer>(
- NewNames, USRList, FileToReplaces);
+ return llvm::make_unique<USRSymbolRenamer>(NewNames, USRList, FileToReplaces);
}
} // namespace rename
Modified: clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp?rev=301130&r1=301129&r2=301130&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp (original)
+++ clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp Sun Apr 23 11:07:06 2017
@@ -195,8 +195,7 @@ NestedNameSpecifier *GetNestedNameForTyp
//
// 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) {}
Modified: clang-tools-extra/trunk/clang-rename/USRLocFinder.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-rename/USRLocFinder.h?rev=301130&r1=301129&r2=301130&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-rename/USRLocFinder.h (original)
+++ clang-tools-extra/trunk/clang-rename/USRLocFinder.h Sun Apr 23 11:07:06 2017
@@ -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>
More information about the cfe-commits
mailing list