summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/overloaded-functions/main.cpp
diff options
context:
space:
mode:
authorMatthias Gehre <M.Gehre@gmx.de>2015-11-17 23:35:39 +0000
committerMatthias Gehre <M.Gehre@gmx.de>2015-11-17 23:35:39 +0000
commit4722f1921ae4620d23c0531935d7488eaed5e9a8 (patch)
tree741c488e13e0048ba9b0048a3a214bb5d6ff1a18 /lldb/packages/Python/lldbsuite/test/lang/cpp/overloaded-functions/main.cpp
parent752ada870d7bc5759a80abde286c77e95ef77fb6 (diff)
downloadbcm5719-llvm-4722f1921ae4620d23c0531935d7488eaed5e9a8.tar.gz
bcm5719-llvm-4722f1921ae4620d23c0531935d7488eaed5e9a8.zip
Fix bug 25362 "cppcoreguidelines-pro-bounds-array-to-pointer-decay does not consider const"
Summary: The current matcher is implicitCastExpr(unless(hasParent(explicitCastExpr()))) but the AST in the bug is `-CXXStaticCastExpr 0x2bb64f8 <col:21, col:55> 'void *const *' static_cast<void *const *> <NoOp> `-ImplicitCastExpr 0x2bb64e0 <col:47> 'void *const *' <NoOp> `-ImplicitCastExpr 0x2bb64c8 <col:47> 'void **' <ArrayToPointerDecay> `-DeclRefExpr 0x2bb6458 <col:47> 'void *[2]' lvalue Var 0x2bb59d0 'addrlist' 'void *[2]' i.e. an ImplicitCastExpr (const cast) between decay and explicit cast. Reviewers: alexfh, sbenza, bkramer, aaron.ballman Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D14517 llvm-svn: 253399
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/overloaded-functions/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud