aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
diff options
context:
space:
mode:
authorschenker <thomas.schenker@protonmail.com>2023-11-16 09:53:40 +0100
committerGitHub <noreply@github.com>2023-11-16 09:53:40 +0100
commitc95d5813b823bbb61cd7d676b959e64754098f49 (patch)
tree729756e8c334955b70af3549d17358bcf55129a1 /llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
parentaa4e34bd814a7d34551ab2e88cb2c45e78ada442 (diff)
downloadllvm-c95d5813b823bbb61cd7d676b959e64754098f49.zip
llvm-c95d5813b823bbb61cd7d676b959e64754098f49.tar.gz
llvm-c95d5813b823bbb61cd7d676b959e64754098f49.tar.bz2
[clang-tidy] bugprone-assert-side-effect non-const operator methods (#71974)
With this PR, `bugprone-assert-side-effect` reports non-const calls to `<<` and `>>` operators and does no longer consider any const operator calls to have side effects. E.g. the following snippet is now reported and was previously not: ``` std::stringstream ss; assert(ss << 1); ``` The following snippet was previously a false-positive and is not reported anymore: ``` struct { int operator+=(int i) const { return i; } } t; assert(t += 1); ```
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp')
0 files changed, 0 insertions, 0 deletions