aboutsummaryrefslogtreecommitdiff
path: root/clang/test/ParserOpenACC/parse-wait-construct.c
diff options
context:
space:
mode:
authorBjörn Svensson <bjorn.a.svensson@est.tech>2023-12-07 20:55:17 +0100
committerGitHub <noreply@github.com>2023-12-07 20:55:17 +0100
commit3ed940ac3dac03d044a8d1e51005cec84dd128f9 (patch)
treefbad468bed8aa5a2da029634b2661c8e75e86371 /clang/test/ParserOpenACC/parse-wait-construct.c
parent4e80bc7d716b1f2344ffd7ad109413bfe5390879 (diff)
downloadllvm-3ed940ac3dac03d044a8d1e51005cec84dd128f9.zip
llvm-3ed940ac3dac03d044a8d1e51005cec84dd128f9.tar.gz
llvm-3ed940ac3dac03d044a8d1e51005cec84dd128f9.tar.bz2
[clang-tidy] Add check hicpp-ignored-remove-result (#73119)
This check implements the [rule 17.5.1](https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/standard-library) of the HICPP standard which states: - Do not ignore the result of std::remove, std::remove_if or std::unique The mutating algorithms std::remove, std::remove_if and both overloads of std::unique operate by swapping or moving elements of the range they are operating over. On completion, they return an iterator to the last valid element. In the majority of cases the correct behavior is to use this result as the first operand in a call to std::erase. This check is based on `bugprone-unused-return-value` but with a fixed set of functions. Suppressing issues by casting to `void` is enabled by default, but can be disabled by setting `AllowCastToVoid` option to `false`.
Diffstat (limited to 'clang/test/ParserOpenACC/parse-wait-construct.c')
0 files changed, 0 insertions, 0 deletions