aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/Syntax/BuildTreeTest.cpp
diff options
context:
space:
mode:
authorEduardo Caldas <ecaldas@google.com>2020-09-07 08:40:49 +0000
committerEduardo Caldas <ecaldas@google.com>2020-09-08 09:44:23 +0000
commit134455a07c1f1de4cff62a6afb4ccd98b98343ec (patch)
tree9d37789efea35a3cdca5fecb0af7f28e1f265575 /clang/unittests/Tooling/Syntax/BuildTreeTest.cpp
parent46f4439dc9bf9b8cfee0001b6752c3d074c83b00 (diff)
downloadllvm-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.cpp12
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"}));
}