[PATCH] D96347: Include function return type in JSON AST dumps.
Rokas Kupstys via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 9 07:52:45 PST 2021
rokups created this revision.
rokups requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
For some reason return type was not included. Even though it is present
in full type dump, it is not good enough as C++ types can get quite
complex. Besides there is no way to get a desugared version of the type
from function type string. Patch uses "returnType" json key, just like
ObjCMethodDecl dumper. I also updated tests. If anything is missing -
please let me know.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96347
Files:
clang/lib/AST/JSONNodeDumper.cpp
clang/test/AST/ast-dump-decl-context-json.cpp
clang/test/AST/ast-dump-decl-json.c
clang/test/AST/ast-dump-decl-json.m
clang/test/AST/ast-dump-expr-json.c
clang/test/AST/ast-dump-expr-json.cpp
clang/test/AST/ast-dump-expr-json.m
clang/test/AST/ast-dump-funcs-json.cpp
clang/test/AST/ast-dump-macro-json.c
clang/test/AST/ast-dump-record-definition-data-json.cpp
clang/test/AST/ast-dump-records-json.cpp
clang/test/AST/ast-dump-stmt-json.cpp
clang/test/AST/ast-dump-stmt-json.m
clang/test/AST/ast-dump-template-decls-json.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96347.322398.patch
Type: text/x-patch
Size: 61685 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210209/7e07a2d8/attachment-0001.bin>
More information about the cfe-commits
mailing list