[PATCH] D48532: [analyzer] Add support for std::basic_string::data() in DanglingInternalBufferChecker
Gábor Horváth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 25 08:47:43 PDT 2018
xazax.hun added inline comments.
================
Comment at: test/Analysis/dangling-internal-buffer.cpp:10
const CharT *c_str();
+ const CharT *data();
};
----------------
Note that these methods are const according to the standard. Even if it does not make any difference for this check we should follow the signatures. Also, from c++17 there is a non-const overload of data.
Repository:
rC Clang
https://reviews.llvm.org/D48532
More information about the cfe-commits
mailing list