]> granicus.if.org Git - clang/commit
Thread safety analysis: Examine constructor arguments
authorAaron Puchert <aaronpuchert@alice-dsl.net>
Thu, 4 Oct 2018 23:51:14 +0000 (23:51 +0000)
committerAaron Puchert <aaronpuchert@alice-dsl.net>
Thu, 4 Oct 2018 23:51:14 +0000 (23:51 +0000)
commit3d84c7ca0d8468fc4a275638c891a8d43b79c476
tree3616bfdcf027035f585caf98947582640e2d8aca
parent122fb01a0d3afdb020866c719896161a1b829e03
Thread safety analysis: Examine constructor arguments

Summary:
Instead of only examining call arguments, we also examine constructor
arguments applying the same rules.

That was an opportunity for refactoring the examination procedure to
work with iterators instead of integer indices. For the case of
CallExprs no functional change is intended.

Reviewers: aaron.ballman, delesley

Reviewed By: delesley

Subscribers: JonasToth, cfe-commits

Differential Revision: https://reviews.llvm.org/D52443

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343831 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ThreadSafety.cpp
test/SemaCXX/warn-thread-safety-analysis.cpp