]> granicus.if.org Git - clang/commit
[ASTUnit] Don't let the preamble diagnostics out-live the CompilerInstance that creat...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 28 Feb 2014 07:11:01 +0000 (07:11 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 28 Feb 2014 07:11:01 +0000 (07:11 +0000)
commit3e1970f112d12e61b46f1dd6ac997e1d0ea55c1e
tree79bcd1934e1da3514b33300d95b06bd379f5d568
parent2cedba8699feb5ed96ee496a4e5c6a7cd58d4094
[ASTUnit] Don't let the preamble diagnostics out-live the CompilerInstance that created them,
this is inherently unsafe.

Instead get the diagnostic info into a SourceManager-independent form.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202471 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/ASTUnit.h
lib/Frontend/ASTUnit.cpp