[AST] Ensure that an empty json file is generated if compile errors
authorStephen Kelly <steveire@gmail.com>
Wed, 17 Mar 2021 23:22:31 +0000 (23:22 +0000)
committerStephen Kelly <steveire@gmail.com>
Sat, 20 Mar 2021 18:08:01 +0000 (18:08 +0000)
commit188405bc192df54fbf048ddd3da071c9fff4d0d1
treeed008552d1537c82ad8b7013fc7793949cc38a1b
parente92faa77b4b7e425fc29574c0273b3904ee2b0a6
[AST] Ensure that an empty json file is generated if compile errors

Differential Revision: https://reviews.llvm.org/D98827
clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.cpp
clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.h
clang/lib/Tooling/DumpTool/ClangSrcLocDump.cpp