[clang-tools-extra] r344055 - [clang-move] Fix broken json output.
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 9 08:17:16 PDT 2018
Author: ioeric
Date: Tue Oct 9 08:17:16 2018
New Revision: 344055
URL: http://llvm.org/viewvc/llvm-project?rev=344055&view=rev
Log:
[clang-move] Fix broken json output.
Modified:
clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp
Modified: clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp?rev=344055&r1=344054&r2=344055&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp (original)
+++ clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp Tue Oct 9 08:17:16 2018
@@ -128,7 +128,7 @@ int main(int argc, const char **argv) {
InitialDirectory.str(), Style, DumpDecls};
move::DeclarationReporter Reporter;
move::ClangMoveActionFactory Factory(&Context, &Reporter);
-
+
int CodeStatus = Tool.run(&Factory);
if (CodeStatus)
return CodeStatus;
@@ -138,8 +138,9 @@ int main(int argc, const char **argv) {
const auto &Declarations = Reporter.getDeclarationList();
for (auto I = Declarations.begin(), E = Declarations.end(); I != E; ++I) {
llvm::outs() << " {\n";
- llvm::outs() << " \"DeclarationName\": \"" << I->QualifiedName << "\",\n";
- llvm::outs() << " \"DeclarationType\": \"" << I->Kind << "\"\n";
+ llvm::outs() << " \"DeclarationName\": \"" << I->QualifiedName
+ << "\",\n";
+ llvm::outs() << " \"DeclarationType\": \"" << I->Kind << "\",\n";
llvm::outs() << " \"Templated\": " << (I->Templated ? "true" : "false")
<< "\n";
llvm::outs() << " }";
More information about the cfe-commits
mailing list