<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - FrontendAction::BeginSourceFile does not allow user to specify Preprocessor or ASTContext prior to calling method."
href="http://llvm.org/bugs/show_bug.cgi?id=16574">16574</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>FrontendAction::BeginSourceFile does not allow user to specify Preprocessor or ASTContext prior to calling method.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>neil@codeplay.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10842" name="attach_10842" title="Patch adding checks based on Clang SVN r185944">attachment 10842</a> <a href="attachment.cgi?id=10842&action=edit" title="Patch adding checks based on Clang SVN r185944">[details]</a></span>
Patch adding checks based on Clang SVN r185944
In FrontendAction::BeginSourceFile it checks whether the CompilerInstance has a
FileManager and a SourceManager prior to creating them, but does not check
whether the CompilerInstance has either a Preprocessor or an ASTContext before
creating them.
Attached is a patch which adds in a check for hasPreprocessor and hasASTContext
prior to creating them.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>