[PATCH] D116478: [clang-tidy] A comma-separated list of the names of functions or methods to be considered as not having side-effects

Zinovy Nis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 1 10:20:21 PST 2022


zinovy.nis created this revision.
zinovy.nis added reviewers: alexfh, aaron.ballman.
zinovy.nis added a project: clang-tools-extra.
Herald added subscribers: carlosgalvezp, xazax.hun.
zinovy.nis requested review of this revision.
Herald added a subscriber: cfe-commits.

A comma-separated list of the names of functions or methods to be considered as not having side-effects was added for bugprone-assert-side-effect.
It can be used to exclude methods like iterator::begin/end from being considered as having side-effects.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116478

Files:
  clang-tools-extra/clang-tidy/bugprone/AssertSideEffectCheck.cpp
  clang-tools-extra/clang-tidy/bugprone/AssertSideEffectCheck.h
  clang-tools-extra/docs/clang-tidy/checks/bugprone-assert-side-effect.rst
  clang-tools-extra/test/clang-tidy/checkers/bugprone-assert-side-effect.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116478.396866.patch
Type: text/x-patch
Size: 6230 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220101/85d5eef7/attachment.bin>


More information about the cfe-commits mailing list