Bugzilla: 40852
c++
int main()
{
const char* a = __FILE__;
const char* b = __FUNCTION__;
}variable b is now not marked as an error by cppcoreguidelines-pro-bounds-array-to-pointer-decay check
Differential D58764
[clang-tidy] ignore predefined expressions in cppcoreguidelines-pro-bounds-array-to-pointer-decay check Authored by lewmpk on Feb 28 2019, 2:11 AM.
Details
Bugzilla: 40852 c++
int main()
{
const char* a = __FILE__;
const char* b = __FUNCTION__;
}variable b is now not marked as an error by cppcoreguidelines-pro-bounds-array-to-pointer-decay check
Diff Detail
Event TimelineComment Actions Okk, it seems that the consensus is that __FUNCTION__ should not be cast to char*. ( I'll research a bit before I pick up a task in the future :) ) Comment Actions You can abondon this. A short justification (with reference to the other revision) on the bug report would be great! |