[all-commits] [llvm/llvm-project] fa6c15: Differentiate between the presumed and actual file...
AaronBallman via All-commits
all-commits at lists.llvm.org
Tue Dec 3 10:06:10 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: fa6c157ebeef55fd1e00266d1d1ad6aaa6161ef2
https://github.com/llvm/llvm-project/commit/fa6c157ebeef55fd1e00266d1d1ad6aaa6161ef2
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2019-12-03 (Tue, 03 Dec 2019)
Changed paths:
M clang/include/clang/AST/JSONNodeDumper.h
M clang/lib/AST/JSONNodeDumper.cpp
A clang/test/AST/ast-dump-file-line-json.c
M clang/test/AST/gen_ast_dump_json_test.py
Log Message:
-----------
Differentiate between the presumed and actual file when dumping the AST to JSON
Currently, when dumping the AST to JSON, the presumed file is what is included
when dumping a source location. This patch changes the behavior to instead dump
the actual file, and only dump a presumed file name when it differs from the
actual file.
This also corrects an issue with the test script generator that would prevent
it from working on Windows due to file permissions issues.
More information about the All-commits
mailing list