- User Since
- Aug 2 2019, 2:52 PM (104 w, 4 d)
Jan 17 2020
We are hitting the warning in template code with bool and loop like this: "for (const auto& element : value)" where element is bool from template. But not always.
When it is bool the warning triggers:
error: loop variable 'element' is always a copy because the range of type 'const std::vector<bool, allocator<bool> >' does not return a reference [-Werror,-Wrange-loop-analysis]
Sep 12 2019
Combined two if into one.
Sep 11 2019
Ping @aaron.ballman , please verify the change.
Aug 28 2019
Aug 19 2019
Removed check for libraries.
Manoj, please check updated diff.
Changed Wpoison-system-directories warning to be disabled by default.
Aug 14 2019
Updated the code (removed Diag propagation).
Added test cases.