summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2018-01-03 14:35:48 +0000
committerIvan Donchevskii <ivan.donchevskii@qt.io>2018-01-03 14:35:48 +0000
commit1d18713486a076634a289f6b47f7eb8679a0e3fb (patch)
tree3beb495839017d6e001e759f20fd163d1f18a5bc /lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp
parentfff458994e39cc8c1d5021e138ac45c25c286fe8 (diff)
downloadbcm5719-llvm-1d18713486a076634a289f6b47f7eb8679a0e3fb.tar.gz
bcm5719-llvm-1d18713486a076634a289f6b47f7eb8679a0e3fb.zip
[libclang] Fix cursors for functions with trailing return type
This one was rolled back as follow-up to the failing commit. Second try. For the function declaration auto foo5(Foo) -> Foo; the parameter tokens were mapped to cursors representing the FunctionDecl: Keyword: "auto" [1:1 - 1:5] FunctionDecl=test5:1:6 Identifier: "test5" [1:6 - 1:11] FunctionDecl=test5:1:6 Punctuation: "(" [1:11 - 1:12] FunctionDecl=test5:1:6 Identifier: "X" [1:12 - 1:13] FunctionDecl=test5:1:6 // Ops, not a TypeRef Punctuation: ")" [1:13 - 1:14] FunctionDecl=test5:1:6 Punctuation: "->" [1:15 - 1:17] FunctionDecl=test5:1:6 Identifier: "X" [1:18 - 1:19] TypeRef=struct X:7:8 Punctuation: ";" [1:19 - 1:20] Fix this by ensuring that the trailing return type is not visited as first. Patch by Nikolai Kosjar. Differential Revision: https://reviews.llvm.org/D40561 llvm-svn: 321709
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud