Make static counters in ASTContext non-static.
authorAlexander Kornienko <alexfh@google.com>
Mon, 25 Feb 2019 16:08:46 +0000 (16:08 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 25 Feb 2019 16:08:46 +0000 (16:08 +0000)
commit00c22db89f693e84859155a6f060e93285495df2
tree830554ec9baddd3d0dd03b769a26cf740bddb757
parent28441ac75f7e5e02364d262e604d9baf6b053f20
Make static counters in ASTContext non-static.

Summary:
Fixes a data race and makes it possible to run clang-based tools in
multithreaded environment with TSan.

Reviewers: ilya-biryukov, riccibruno

Reviewed By: riccibruno

Subscribers: riccibruno, jfb, cfe-commits

Tags: #clang

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

llvm-svn: 354795
clang/include/clang/AST/ASTContext.h
clang/lib/AST/ASTContext.cpp
clang/lib/Sema/SemaDeclCXX.cpp