aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/ModuleMap.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-05-02 23:56:33 +0000
committerTed Kremenek <kremenek@apple.com>2013-05-02 23:56:33 +0000
commitc70fac3c52092013b08163187f034b73c94bf3d0 (patch)
tree9042df08bda5f0a8386e02b83701acd9ce8d7505 /include/clang/Lex/ModuleMap.h
parent92eb7d847cb1273a63d5e3b7dc98a7c97a81b703 (diff)
Change LocationContextMap to be a temporary instead of shared variable in BugReporter.
BugReporter is used to process ALL bug reports. By using a shared map, we are having mappings from different PathDiagnosticPieces to LocationContexts well beyond the point where we are processing a given report. This state is inherently error prone, and is analogous to using a global variable. Instead, just create a temporary map, one per report, and when we are done with it we throw it away. No extra state. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/ModuleMap.h')
0 files changed, 0 insertions, 0 deletions