diff --git a/clang/lib/Tooling/DumpTool/generate_cxx_src_locs.py b/clang/lib/Tooling/DumpTool/generate_cxx_src_locs.py index aafae2c15b2953..dee7a416e69a63 100755 --- a/clang/lib/Tooling/DumpTool/generate_cxx_src_locs.py +++ b/clang/lib/Tooling/DumpTool/generate_cxx_src_locs.py @@ -171,7 +171,7 @@ def GenerateDynNodeVisitor(self, CladeNames): if (const auto *N = Node.get<{0}>()) return GetLocations(const_cast<{0} *>(N));""".format(CladeName) - self.implementationContent += '\nreturn {}; }' + self.implementationContent += 'return {}; }' def GenerateEpilogue(self):