diff options
author | Eduardo Caldas <ecaldas@google.com> | 2020-09-07 08:40:49 +0000 |
---|---|---|
committer | Eduardo Caldas <ecaldas@google.com> | 2020-09-08 09:44:23 +0000 |
commit | 134455a07c1f1de4cff62a6afb4ccd98b98343ec (patch) | |
tree | 9d37789efea35a3cdca5fecb0af7f28e1f265575 /clang/unittests/Tooling/Syntax/BuildTreeTest.cpp | |
parent | 46f4439dc9bf9b8cfee0001b6752c3d074c83b00 (diff) | |
download | llvm-134455a07c1f1de4cff62a6afb4ccd98b98343ec.zip llvm-134455a07c1f1de4cff62a6afb4ccd98b98343ec.tar.gz llvm-134455a07c1f1de4cff62a6afb4ccd98b98343ec.tar.bz2 |
[SyntaxTree] Ignore implicit `CXXFunctionalCastExpr` wrapping constructor
Differential Revision: https://reviews.llvm.org/D87229
Diffstat (limited to 'clang/unittests/Tooling/Syntax/BuildTreeTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/Syntax/BuildTreeTest.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/unittests/Tooling/Syntax/BuildTreeTest.cpp b/clang/unittests/Tooling/Syntax/BuildTreeTest.cpp index 00e1805..7a106e9 100644 --- a/clang/unittests/Tooling/Syntax/BuildTreeTest.cpp +++ b/clang/unittests/Tooling/Syntax/BuildTreeTest.cpp @@ -4069,7 +4069,6 @@ struct X { X(int); }; X test() { - // FIXME: Remove `UnknownExpression` due to implicit `CXXFunctionalCastExpr` [[return X(1);]] } )cpp", @@ -4077,12 +4076,11 @@ X test() { ReturnStatement Statement |-'return' IntroducerKeyword |-UnknownExpression ReturnValue -| `-UnknownExpression -| |-'X' -| |-'(' -| |-IntegerLiteralExpression -| | `-'1' LiteralToken -| `-')' +| |-'X' +| |-'(' +| |-IntegerLiteralExpression +| | `-'1' LiteralToken +| `-')' `-';' )txt"})); } |