[www-releases] r225843 - Add documentation for 3.5.1
Tom Stellard
thomas.stellard at amd.com
Tue Jan 13 14:55:45 PST 2015
Added: www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8cpp_source.html
URL: http://llvm.org/viewvc/llvm-project/www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8cpp_source.html?rev=225843&view=auto
==============================================================================
--- www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8cpp_source.html (added)
+++ www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8cpp_source.html Tue Jan 13 16:55:20 2015
@@ -0,0 +1,3040 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head>
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="keywords" content="clang,LLVM,Low Level Virtual Machine,C,C++,doxygen,API,frontend,documentation"/>
+<meta name="description" content="C++ source code API documentation for clang."/>
+<title>clang: ASTUnit.cpp Source File</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head><body>
+<p class="title">clang API Documentation</p>
+<!-- Generated by Doxygen 1.8.3.1 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li><a href="index.html"><span>Main Page</span></a></li>
+ <li><a href="pages.html"><span>Related Pages</span></a></li>
+ <li><a href="modules.html"><span>Modules</span></a></li>
+ <li><a href="namespaces.html"><span>Namespaces</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ <li>
+ <div id="MSearchBox" class="MSearchBoxInactive">
+ <span class="left">
+ <img id="MSearchSelect" src="search/mag_sel.png"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ alt=""/>
+ <input type="text" id="MSearchField" value="Search" accesskey="S"
+ onfocus="searchBox.OnSearchFieldFocus(true)"
+ onblur="searchBox.OnSearchFieldFocus(false)"
+ onkeyup="searchBox.OnSearchFieldChange(event)"/>
+ </span><span class="right">
+ <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+ </span>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li><a href="files.html"><span>File List</span></a></li>
+ <li><a href="globals.html"><span>File Members</span></a></li>
+ </ul>
+ </div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void
(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark"> </span>Pages</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_f65986501076cc710d4b9355ae3fe06d.html">clang</a></li><li class="navelem"><a class="el" href="dir_87e2a7550f83bd8cbfc92736891468fc.html">lib</a></li><li class="navelem"><a class="el" href="dir_cfd7caa53089bfce4c036750f74ca8fe.html">Frontend</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">ASTUnit.cpp</div> </div>
+</div><!--header-->
+<div class="contents">
+<a href="ASTUnit_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//===--- ASTUnit.cpp - ASTUnit utility ------------------------------------===//</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// The LLVM Compiler Infrastructure</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// This file is distributed under the University of Illinois Open Source</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// License. See LICENSE.TXT for details.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// ASTUnit Implementation.</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "<a class="code" href="ASTUnit_8h.html">clang/Frontend/ASTUnit.h</a>"</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="ASTConsumer_8h.html">clang/AST/ASTConsumer.h</a>"</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="ASTContext_8h.html" title="Defines the clang::ASTContext interface.">clang/AST/ASTContext.h</a>"</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="DeclVisitor_8h.html">clang/AST/DeclVisitor.h</a>"</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="StmtVisitor_8h.html">clang/AST/StmtVisitor.h</a>"</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="TypeOrdering_8h.html" title="Allows QualTypes to be sorted and hence used in maps and sets.">clang/AST/TypeOrdering.h</a>"</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="Diagnostic_8h.html" title="Defines the Diagnostic-related interfaces.">clang/Basic/Diagnostic.h</a>"</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="include_2clang_2Basic_2TargetInfo_8h.html" title="Defines the clang::TargetInfo interface.">clang/Basic/TargetInfo.h</a>"</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="TargetOptions_8h.html" title="Defines the clang::TargetOptions class.">clang/Basic/TargetOptions.h</a>"</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="CompilerInstance_8h.html">clang/Frontend/CompilerInstance.h</a>"</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="Frontend_2FrontendActions_8h.html">clang/Frontend/FrontendActions.h</a>"</span></div>
+<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="FrontendDiagnostic_8h.html">clang/Frontend/FrontendDiagnostic.h</a>"</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="FrontendOptions_8h.html">clang/Frontend/FrontendOptions.h</a>"</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="MultiplexConsumer_8h.html">clang/Frontend/MultiplexConsumer.h</a>"</span></div>
+<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="Utils_8h.html">clang/Frontend/Utils.h</a>"</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="HeaderSearch_8h.html">clang/Lex/HeaderSearch.h</a>"</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "<a class="code" href="Preprocessor_8h.html">clang/Lex/Preprocessor.h</a>"</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="PreprocessorOptions_8h.html">clang/Lex/PreprocessorOptions.h</a>"</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="Sema_8h.html">clang/Sema/Sema.h</a>"</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="ASTReader_8h.html">clang/Serialization/ASTReader.h</a>"</span></div>
+<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="ASTWriter_8h.html">clang/Serialization/ASTWriter.h</a>"</span></div>
+<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "llvm/ADT/ArrayRef.h"</span></div>
+<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "llvm/ADT/StringExtras.h"</span></div>
+<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "llvm/ADT/StringSet.h"</span></div>
+<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include "llvm/Support/Atomic.h"</span></div>
+<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include "llvm/Support/CrashRecoveryContext.h"</span></div>
+<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include "llvm/Support/FileSystem.h"</span></div>
+<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#include "llvm/Support/Host.h"</span></div>
+<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include "llvm/Support/MemoryBuffer.h"</span></div>
+<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#include "llvm/Support/Mutex.h"</span></div>
+<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#include "llvm/Support/MutexGuard.h"</span></div>
+<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor">#include "llvm/Support/Path.h"</span></div>
+<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#include "llvm/Support/Timer.h"</span></div>
+<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor">#include "llvm/Support/raw_ostream.h"</span></div>
+<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor">#include <cstdio></span></div>
+<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor">#include <cstdlib></span></div>
+<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#include <sys/stat.h></span></div>
+<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">using namespace </span>clang;</div>
+<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div>
+<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">using</span> llvm::TimeRecord;</div>
+<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div>
+<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">class </span>SimpleTimer {</div>
+<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keywordtype">bool</span> WantTiming;</div>
+<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> TimeRecord Start;</div>
+<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> std::string Output;</div>
+<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div>
+<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">explicit</span> SimpleTimer(<span class="keywordtype">bool</span> WantTiming) : WantTiming(WantTiming) {</div>
+<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">if</span> (WantTiming)</div>
+<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> Start = TimeRecord::getCurrentTime();</div>
+<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> }</div>
+<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div>
+<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="keywordtype">void</span> setOutput(<span class="keyword">const</span> Twine &Output) {</div>
+<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">if</span> (WantTiming)</div>
+<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> this->Output = Output.str();</div>
+<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> }</div>
+<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div>
+<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> ~SimpleTimer() {</div>
+<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">if</span> (WantTiming) {</div>
+<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> TimeRecord Elapsed = TimeRecord::getCurrentTime();</div>
+<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> Elapsed -= Start;</div>
+<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> llvm::errs() << Output << <span class="charliteral">':'</span>;</div>
+<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> Elapsed.print(Elapsed, llvm::errs());</div>
+<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> llvm::errs() << <span class="charliteral">'\n'</span>;</div>
+<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> }</div>
+<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> }</div>
+<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> };</div>
+<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div>
+<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="keyword">struct </span>OnDiskData {<span class="comment"></span></div>
+<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment"> /// \brief The file in which the precompiled preamble is stored.</span></div>
+<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"></span> std::string PreambleFile;</div>
+<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"></span></div>
+<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"> /// \brief Temporary files that should be removed when the ASTUnit is</span></div>
+<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"> /// destroyed.</span></div>
+<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment"></span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<std::string, 4></a> TemporaryFiles;</div>
+<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"></span></div>
+<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment"> /// \brief Erase temporary files.</span></div>
+<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment"></span> <span class="keywordtype">void</span> CleanTemporaryFiles();</div>
+<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"></span></div>
+<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"> /// \brief Erase the preamble file.</span></div>
+<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"></span> <span class="keywordtype">void</span> CleanPreambleFile();</div>
+<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment"></span></div>
+<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> /// \brief Erase temporary files and the preamble file.</span></div>
+<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"></span> <span class="keywordtype">void</span> Cleanup();</div>
+<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> };</div>
+<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> }</div>
+<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div>
+<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a5840df4be4d5d1ddfe9c35dcbe51d151"> 102</a></span> <span class="keyword">static</span> llvm::sys::SmartMutex<false> &<a class="code" href="ASTUnit_8cpp.html#a5840df4be4d5d1ddfe9c35dcbe51d151">getOnDiskMutex</a>() {</div>
+<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="keyword">static</span> llvm::sys::SmartMutex<false> M(<span class="comment">/* recursive = */</span> <span class="keyword">true</span>);</div>
+<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="keywordflow">return</span> M;</div>
+<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> }</div>
+<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div>
+<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ASTUnit_8cpp.html#a2e25245b2aa49bcbf56ec6bf354cdd60">cleanupOnDiskMapAtExit</a>();</div>
+<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div>
+<div class="line"><a name="l00109"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a11b8347579cbb7d1f4c7564f9d870ddf"> 109</a></span> <span class="keyword">typedef</span> llvm::DenseMap<const ASTUnit *, OnDiskData *> <a class="code" href="ASTUnit_8cpp.html#a11b8347579cbb7d1f4c7564f9d870ddf">OnDiskDataMap</a>;</div>
+<div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a342ac16b52c05b384743ae37c8daacf2"> 110</a></span> <span class="keyword">static</span> <a class="code" href="ASTUnit_8cpp.html#a11b8347579cbb7d1f4c7564f9d870ddf">OnDiskDataMap</a> &<a class="code" href="ASTUnit_8cpp.html#a342ac16b52c05b384743ae37c8daacf2">getOnDiskDataMap</a>() {</div>
+<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="keyword">static</span> <a class="code" href="ASTUnit_8cpp.html#a11b8347579cbb7d1f4c7564f9d870ddf">OnDiskDataMap</a> M;</div>
+<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> hasRegisteredAtExit = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keywordflow">if</span> (!hasRegisteredAtExit) {</div>
+<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> hasRegisteredAtExit = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> atexit(<a class="code" href="ASTUnit_8cpp.html#a2e25245b2aa49bcbf56ec6bf354cdd60">cleanupOnDiskMapAtExit</a>);</div>
+<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> }</div>
+<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="keywordflow">return</span> M;</div>
+<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> }</div>
+<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div>
+<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a2e25245b2aa49bcbf56ec6bf354cdd60"> 120</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ASTUnit_8cpp.html#a2e25245b2aa49bcbf56ec6bf354cdd60">cleanupOnDiskMapAtExit</a>() {</div>
+<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment">// Use the mutex because there can be an alive thread destroying an ASTUnit.</span></div>
+<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> llvm::MutexGuard Guard(<a class="code" href="ASTUnit_8cpp.html#a5840df4be4d5d1ddfe9c35dcbe51d151">getOnDiskMutex</a>());</div>
+<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <a class="code" href="ASTUnit_8cpp.html#a11b8347579cbb7d1f4c7564f9d870ddf">OnDiskDataMap</a> &M = <a class="code" href="ASTUnit_8cpp.html#a342ac16b52c05b384743ae37c8daacf2">getOnDiskDataMap</a>();</div>
+<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="keywordflow">for</span> (OnDiskDataMap::iterator I = M.begin(), E = M.end(); I != E; ++I) {</div>
+<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment">// We don't worry about freeing the memory associated with OnDiskDataMap.</span></div>
+<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment">// All we care about is erasing stale files.</span></div>
+<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> I->second->Cleanup();</div>
+<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> }</div>
+<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> }</div>
+<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div>
+<div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a0b44358ffe5f274c590ca3cd9ec856b2"> 131</a></span> <span class="keyword">static</span> OnDiskData &<a class="code" href="ASTUnit_8cpp.html#a0b44358ffe5f274c590ca3cd9ec856b2">getOnDiskData</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *AU) {</div>
+<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="comment">// We require the mutex since we are modifying the structure of the</span></div>
+<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment">// DenseMap.</span></div>
+<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> llvm::MutexGuard Guard(<a class="code" href="ASTUnit_8cpp.html#a5840df4be4d5d1ddfe9c35dcbe51d151">getOnDiskMutex</a>());</div>
+<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <a class="code" href="ASTUnit_8cpp.html#a11b8347579cbb7d1f4c7564f9d870ddf">OnDiskDataMap</a> &M = <a class="code" href="ASTUnit_8cpp.html#a342ac16b52c05b384743ae37c8daacf2">getOnDiskDataMap</a>();</div>
+<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> OnDiskData *&D = M[AU];</div>
+<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="keywordflow">if</span> (!D)</div>
+<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> D = <span class="keyword">new</span> OnDiskData();</div>
+<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="keywordflow">return</span> *D;</div>
+<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> }</div>
+<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div>
+<div class="line"><a name="l00142"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a59a40ecfcf0aa88c11e2814ce2abcc8f"> 142</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ASTUnit_8cpp.html#a59a40ecfcf0aa88c11e2814ce2abcc8f">erasePreambleFile</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *AU) {</div>
+<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <a class="code" href="ASTUnit_8cpp.html#a0b44358ffe5f274c590ca3cd9ec856b2">getOnDiskData</a>(AU).CleanPreambleFile();</div>
+<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> }</div>
+<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div>
+<div class="line"><a name="l00146"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a434adcc46991b56f0c69b09cb1ed993b"> 146</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ASTUnit_8cpp.html#a434adcc46991b56f0c69b09cb1ed993b">removeOnDiskEntry</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *AU) {</div>
+<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment">// We require the mutex since we are modifying the structure of the</span></div>
+<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment">// DenseMap.</span></div>
+<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> llvm::MutexGuard Guard(<a class="code" href="ASTUnit_8cpp.html#a5840df4be4d5d1ddfe9c35dcbe51d151">getOnDiskMutex</a>());</div>
+<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <a class="code" href="ASTUnit_8cpp.html#a11b8347579cbb7d1f4c7564f9d870ddf">OnDiskDataMap</a> &M = <a class="code" href="ASTUnit_8cpp.html#a342ac16b52c05b384743ae37c8daacf2">getOnDiskDataMap</a>();</div>
+<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> OnDiskDataMap::iterator I = M.find(AU);</div>
+<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="keywordflow">if</span> (I != M.end()) {</div>
+<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> I->second->Cleanup();</div>
+<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="keyword">delete</span> I->second;</div>
+<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> M.erase(AU);</div>
+<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> }</div>
+<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> }</div>
+<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div>
+<div class="line"><a name="l00159"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#ad8391c60e1ad7821d7b0e0ce4a6e47e7"> 159</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ASTUnit_8cpp.html#ad8391c60e1ad7821d7b0e0ce4a6e47e7">setPreambleFile</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *AU, StringRef preambleFile) {</div>
+<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <a class="code" href="ASTUnit_8cpp.html#a0b44358ffe5f274c590ca3cd9ec856b2">getOnDiskData</a>(AU).PreambleFile = preambleFile;</div>
+<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> }</div>
+<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div>
+<div class="line"><a name="l00163"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a75e06789aea0519a29c9943a73c3c0be"> 163</a></span> <span class="keyword">static</span> <span class="keyword">const</span> std::string &<a class="code" href="ASTUnit_8cpp.html#a75e06789aea0519a29c9943a73c3c0be">getPreambleFile</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *AU) {</div>
+<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="keywordflow">return</span> <a class="code" href="ASTUnit_8cpp.html#a0b44358ffe5f274c590ca3cd9ec856b2">getOnDiskData</a>(AU).PreambleFile; </div>
+<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> }</div>
+<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div>
+<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="keywordtype">void</span> OnDiskData::CleanTemporaryFiles() {</div>
+<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, N = TemporaryFiles.size(); I != N; ++I)</div>
+<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> llvm::sys::fs::remove(TemporaryFiles[I]);</div>
+<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> TemporaryFiles.clear();</div>
+<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> }</div>
+<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div>
+<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="keywordtype">void</span> OnDiskData::CleanPreambleFile() {</div>
+<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="keywordflow">if</span> (!PreambleFile.empty()) {</div>
+<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> llvm::sys::fs::remove(PreambleFile);</div>
+<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> PreambleFile.clear();</div>
+<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> }</div>
+<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> }</div>
+<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div>
+<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="keywordtype">void</span> OnDiskData::Cleanup() {</div>
+<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> CleanTemporaryFiles();</div>
+<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> CleanPreambleFile();</div>
+<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> }</div>
+<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div>
+<div class="line"><a name="l00185"></a><span class="lineno"><a class="code" href="structASTUnit_1_1ASTWriterData.html"> 185</a></span> <span class="keyword">struct </span><a class="code" href="structASTUnit_1_1ASTWriterData.html">ASTUnit::ASTWriterData</a> {</div>
+<div class="line"><a name="l00186"></a><span class="lineno"><a class="code" href="structASTUnit_1_1ASTWriterData.html#a56f69c35c6d301f2b5cd3ca4ec2eeb14"> 186</a></span> <a class="code" href="classllvm_1_1SmallString.html">SmallString<128></a> <a class="code" href="structASTUnit_1_1ASTWriterData.html#a56f69c35c6d301f2b5cd3ca4ec2eeb14">Buffer</a>;</div>
+<div class="line"><a name="l00187"></a><span class="lineno"><a class="code" href="structASTUnit_1_1ASTWriterData.html#a53e7856f4b9d13e64d316c1417a32283"> 187</a></span> llvm::BitstreamWriter <a class="code" href="structASTUnit_1_1ASTWriterData.html#a53e7856f4b9d13e64d316c1417a32283">Stream</a>;</div>
+<div class="line"><a name="l00188"></a><span class="lineno"><a class="code" href="structASTUnit_1_1ASTWriterData.html#a2868f80c81002a4022c5a457e70fd501"> 188</a></span> <a class="code" href="classclang_1_1ASTWriter.html" title="Writes an AST file containing the contents of a translation unit.">ASTWriter</a> <a class="code" href="structASTUnit_1_1ASTWriterData.html#a2868f80c81002a4022c5a457e70fd501">Writer</a>;</div>
+<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div>
+<div class="line"><a name="l00190"></a><span class="lineno"><a class="code" href="structASTUnit_1_1ASTWriterData.html#ad939f25e665129555778f444919e9c32"> 190</a></span> <a class="code" href="structASTUnit_1_1ASTWriterData.html#ad939f25e665129555778f444919e9c32">ASTWriterData</a>() : <a class="code" href="structASTUnit_1_1ASTWriterData.html#a53e7856f4b9d13e64d316c1417a32283">Stream</a>(<a class="code" href="structASTUnit_1_1ASTWriterData.html#a56f69c35c6d301f2b5cd3ca4ec2eeb14">Buffer</a>), <a class="code" href="structASTUnit_1_1ASTWriterData.html#a2868f80c81002a4022c5a457e70fd501">Writer</a>(<a class="code" href="structASTUnit_1_1ASTWriterData.html#a53e7856f4b9d13e64d316c1417a32283">Stream</a>) { }</div>
+<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> };</div>
+<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div>
+<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="keywordtype">void</span> ASTUnit::clearFileLevelDecls() {</div>
+<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="keywordflow">for</span> (FileDeclsTy::iterator</div>
+<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> I = FileDecls.begin(), E = FileDecls.end(); I != E; ++I)</div>
+<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="keyword">delete</span> I->second;</div>
+<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> FileDecls.clear();</div>
+<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> }</div>
+<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div>
+<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="keywordtype">void</span> ASTUnit::CleanTemporaryFiles() {</div>
+<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <a class="code" href="ASTUnit_8cpp.html#a0b44358ffe5f274c590ca3cd9ec856b2">getOnDiskData</a>(<span class="keyword">this</span>).CleanTemporaryFiles();</div>
+<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> }</div>
+<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div>
+<div class="line"><a name="l00204"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a1dad52daa7c68cc2998c033322fc8c91"> 204</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#a1dad52daa7c68cc2998c033322fc8c91" title="Add a temporary file that the ASTUnit depends on.">ASTUnit::addTemporaryFile</a>(StringRef TempFile) {</div>
+<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <a class="code" href="ASTUnit_8cpp.html#a0b44358ffe5f274c590ca3cd9ec856b2">getOnDiskData</a>(<span class="keyword">this</span>).TemporaryFiles.push_back(TempFile);</div>
+<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> }</div>
+<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="comment"></span></div>
+<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="comment">/// \brief After failing to build a precompiled preamble (due to</span></div>
+<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment">/// errors in the source that occurs in the preamble), the number of</span></div>
+<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment">/// reparses during which we'll skip even trying to precompile the</span></div>
+<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="comment">/// preamble.</span></div>
+<div class="line"><a name="l00212"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a7164eb680f1c0804fb14e4a16ced7035"> 212</a></span> <span class="comment"></span><span class="keyword">const</span> <span class="keywordtype">unsigned</span> <a class="code" href="ASTUnit_8cpp.html#a7164eb680f1c0804fb14e4a16ced7035" title="After failing to build a precompiled preamble (due to errors in the source that occurs in the preambl...">DefaultPreambleRebuildInterval</a> = 5;</div>
+<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="comment"></span></div>
+<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment">/// \brief Tracks the number of ASTUnit objects that are currently active.</span></div>
+<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment">///</span></div>
+<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment">/// Used for debugging purposes only.</span></div>
+<div class="line"><a name="l00217"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#afd17e235a3787e20779b1c7a604277fb"> 217</a></span> <span class="comment"></span><span class="keyword">static</span> llvm::sys::cas_flag <a class="code" href="ASTUnit_8cpp.html#afd17e235a3787e20779b1c7a604277fb" title="Tracks the number of ASTUnit objects that are currently active.">ActiveASTUnitObjects</a>;</div>
+<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div>
+<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> ASTUnit::ASTUnit(<span class="keywordtype">bool</span> _MainFileIsAST)</div>
+<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> : Reader(0), HadModuleLoaderFatalFailure(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>),</div>
+<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> OnlyLocalDecls(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>), CaptureDiagnostics(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>),</div>
+<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> MainFileIsAST(_MainFileIsAST), </div>
+<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> TUKind(<a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21a5d885810d2d2df3c7bb2acb219f7c0e8" title="The translation unit is a complete translation unit.">TU_Complete</a>), WantTiming(getenv(<span class="stringliteral">"LIBCLANG_TIMING"</span>)),</div>
+<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> OwnsRemappedFileBuffers(<a class="code" href="stdbool_8h.html#a41f9c5fb8b08eb5dc3edce4dcb37fee7">true</a>),</div>
+<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> NumStoredDiagnosticsFromDriver(0),</div>
+<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> PreambleRebuildCounter(0), SavedMainFileBuffer(0), PreambleBuffer(0),</div>
+<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> NumWarningsInPreamble(0),</div>
+<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> ShouldCacheCodeCompletionResults(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>),</div>
+<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> IncludeBriefCommentsInCodeCompletion(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>), UserFilesAreVolatile(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>),</div>
+<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> CompletionCacheTopLevelHashValue(0),</div>
+<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> PreambleTopLevelHashValue(0),</div>
+<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> CurrentTopLevelHashValue(0),</div>
+<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> UnsafeToFree(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>) { </div>
+<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="keywordflow">if</span> (getenv(<span class="stringliteral">"LIBCLANG_OBJTRACKING"</span>)) {</div>
+<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> llvm::sys::AtomicIncrement(&<a class="code" href="ASTUnit_8cpp.html#afd17e235a3787e20779b1c7a604277fb" title="Tracks the number of ASTUnit objects that are currently active.">ActiveASTUnitObjects</a>);</div>
+<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> fprintf(stderr, <span class="stringliteral">"+++ %d translation units\n"</span>, <a class="code" href="ASTUnit_8cpp.html#afd17e235a3787e20779b1c7a604277fb" title="Tracks the number of ASTUnit objects that are currently active.">ActiveASTUnitObjects</a>);</div>
+<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> } </div>
+<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> }</div>
+<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div>
+<div class="line"><a name="l00240"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a4fcc5b0aa8c471b156f908828db1985e"> 240</a></span> ASTUnit::~ASTUnit() {</div>
+<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="comment">// If we loaded from an AST file, balance out the BeginSourceFile call.</span></div>
+<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="keywordflow">if</span> (MainFileIsAST && <a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>().getClient()) {</div>
+<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#adfcddafe21f07cc2b7dc422cb8661d56">getClient</a>()-><a class="code" href="classclang_1_1DiagnosticConsumer.html#a37d4613d4c2ce9bf238f49d9e830d744" title="Callback to inform the diagnostic client that processing of a source file has ended.">EndSourceFile</a>();</div>
+<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> }</div>
+<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> </div>
+<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> clearFileLevelDecls();</div>
+<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> </div>
+<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="comment">// Clean up the temporary files and the preamble file.</span></div>
+<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <a class="code" href="ASTUnit_8cpp.html#a434adcc46991b56f0c69b09cb1ed993b">removeOnDiskEntry</a>(<span class="keyword">this</span>);</div>
+<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div>
+<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="comment">// Free the buffers associated with remapped files. We are required to</span></div>
+<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="comment">// perform this operation here because we explicitly request that the</span></div>
+<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="comment">// compiler instance *not* free these buffers for each invocation of the</span></div>
+<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="comment">// parser.</span></div>
+<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="keywordflow">if</span> (Invocation.getPtr() && OwnsRemappedFileBuffers) {</div>
+<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <a class="code" href="classclang_1_1PreprocessorOptions.html">PreprocessorOptions</a> &PPOpts = Invocation->getPreprocessorOpts();</div>
+<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1PreprocessorOptions.html#ab5d93562d1b5eeae0b618779ccd34f5a">PreprocessorOptions::remapped_file_buffer_iterator</a></div>
+<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> FB = PPOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af278ce7e3d51c74252c8b4e00dc7f42b">remapped_file_buffer_begin</a>(),</div>
+<div class="line"><a name="l00259"></a><span class="lineno"> 259</span> FBEnd = PPOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af80ead86d2fa9d64e8e3cd8f76a65263">remapped_file_buffer_end</a>();</div>
+<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> FB != FBEnd;</div>
+<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> ++FB)</div>
+<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="keyword">delete</span> FB->second;</div>
+<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> }</div>
+<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div>
+<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="keyword">delete</span> SavedMainFileBuffer;</div>
+<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="keyword">delete</span> PreambleBuffer;</div>
+<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div>
+<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> ClearCachedCompletionResults(); </div>
+<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> </div>
+<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="keywordflow">if</span> (getenv(<span class="stringliteral">"LIBCLANG_OBJTRACKING"</span>)) {</div>
+<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> llvm::sys::AtomicDecrement(&<a class="code" href="ASTUnit_8cpp.html#afd17e235a3787e20779b1c7a604277fb" title="Tracks the number of ASTUnit objects that are currently active.">ActiveASTUnitObjects</a>);</div>
+<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> fprintf(stderr, <span class="stringliteral">"--- %d translation units\n"</span>, <a class="code" href="ASTUnit_8cpp.html#afd17e235a3787e20779b1c7a604277fb" title="Tracks the number of ASTUnit objects that are currently active.">ActiveASTUnitObjects</a>);</div>
+<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> } </div>
+<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> }</div>
+<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div>
+<div class="line"><a name="l00276"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#af6f9e11cb225ab51e2c713b16b0a113c"> 276</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#af6f9e11cb225ab51e2c713b16b0a113c">ASTUnit::setPreprocessor</a>(<a class="code" href="classclang_1_1Preprocessor.html">Preprocessor</a> *pp) { PP = pp; }</div>
+<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="comment"></span></div>
+<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="comment">/// \brief Determine the set of code-completion contexts in which this </span></div>
+<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="comment">/// declaration should be shown.</span></div>
+<div class="line"><a name="l00280"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a3041621bd65568fc51b1c9ea6f64b4c2"> 280</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">unsigned</span> <a class="code" href="ASTUnit_8cpp.html#a3041621bd65568fc51b1c9ea6f64b4c2" title="Determine the set of code-completion contexts in which this declaration should be shown...">getDeclShowContexts</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1NamedDecl.html">NamedDecl</a> *ND,</div>
+<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1LangOptions.html" title="Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...">LangOptions</a> &LangOpts,</div>
+<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="keywordtype">bool</span> &IsNestedNameSpecifier) {</div>
+<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> IsNestedNameSpecifier = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div>
+<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="keywordflow">if</span> (isa<UsingShadowDecl>(ND))</div>
+<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> ND = dyn_cast<<a class="code" href="classclang_1_1NamedDecl.html">NamedDecl</a>>(ND-><a class="code" href="classclang_1_1NamedDecl.html#a8fee30304b9ae8b24136a279b678b951" title="Looks through UsingDecls and ObjCCompatibleAliasDecls for the underlying named decl.">getUnderlyingDecl</a>());</div>
+<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="keywordflow">if</span> (!ND)</div>
+<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> </div>
+<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> uint64_t <a class="code" href="TokenAnnotator_8cpp.html#ada696389a664a41c6d11f19e6273d98c">Contexts</a> = 0;</div>
+<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="keywordflow">if</span> (isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND) || </div>
+<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> isa<ClassTemplateDecl>(ND) || isa<TemplateTemplateParmDecl>(ND)) {</div>
+<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="comment">// Types can appear in these contexts.</span></div>
+<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="keywordflow">if</span> (LangOpts.CPlusPlus || !isa<TagDecl>(ND))</div>
+<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> Contexts |= (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a56b0e8aad53d4905445855ebbbb33888" title="Code completion occurred within a "top-level" completion context, e.g., at namespace or global scope...">CodeCompletionContext::CCC_TopLevel</a>)</div>
+<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a0cf3c12af3e4a2ac3dd4207a86fceed9" title="Code completion occurred within the instance variable list of an Objective-C interface, implementation, or category implementation.">CodeCompletionContext::CCC_ObjCIvarList</a>)</div>
+<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a2bfab44d6cc7a1c9ab31142245b74592" title="Code completion occurred within a class, struct, or union.">CodeCompletionContext::CCC_ClassStructUnion</a>)</div>
+<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a13c2f63f612699c4b3552f85643adf29" title="Code completion occurred where a statement (or declaration) is expected in a function, method, or block.">CodeCompletionContext::CCC_Statement</a>)</div>
+<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a16de7083cf4caa60d5cd83a130c2c032" title="Code completion occurred where a type name is expected.">CodeCompletionContext::CCC_Type</a>)</div>
+<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a5290f588f50a51cbb00920c00998da80" title="Code completion in a parenthesized expression, which means that we may also have types here in C and ...">CodeCompletionContext::CCC_ParenthesizedExpression</a>);</div>
+<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div>
+<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="comment">// In C++, types can appear in expressions contexts (for functional casts).</span></div>
+<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> <span class="keywordflow">if</span> (LangOpts.CPlusPlus)</div>
+<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> Contexts |= (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4084b7d565e9d8122beff5c2367389bf" title="Code completion occurred where an expression is expected.">CodeCompletionContext::CCC_Expression</a>);</div>
+<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div>
+<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> <span class="comment">// In Objective-C, message sends can send interfaces. In Objective-C++,</span></div>
+<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> <span class="comment">// all types are available due to functional casts.</span></div>
+<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> <span class="keywordflow">if</span> (LangOpts.CPlusPlus || isa<ObjCInterfaceDecl>(ND))</div>
+<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> Contexts |= (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a03074df58224a8b6c81abec3b7ba199d" title="Code completion occurred where an Objective-C message receiver is expected.">CodeCompletionContext::CCC_ObjCMessageReceiver</a>);</div>
+<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> </div>
+<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="comment">// In Objective-C, you can only be a subclass of another Objective-C class</span></div>
+<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> <span class="keywordflow">if</span> (isa<ObjCInterfaceDecl>(ND))</div>
+<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> Contexts |= (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759ae41fc3bbfc9404f4d437fa26e08a4f24" title="Code completion where the name of an Objective-C class is expected.">CodeCompletionContext::CCC_ObjCInterfaceName</a>);</div>
+<div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div>
+<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="comment">// Deal with tag names.</span></div>
+<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="keywordflow">if</span> (isa<EnumDecl>(ND)) {</div>
+<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> Contexts |= (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4534c8c0e9c0778059cc523fc54df7e6" title="Code completion occurred after the "enum" keyword, to indicate an enumeration name.">CodeCompletionContext::CCC_EnumTag</a>);</div>
+<div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div>
+<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> <span class="comment">// Part of the nested-name-specifier in C++0x.</span></div>
+<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> <span class="keywordflow">if</span> (LangOpts.CPlusPlus11)</div>
+<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> IsNestedNameSpecifier = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *Record = dyn_cast<RecordDecl>(ND)) {</div>
+<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="keywordflow">if</span> (Record->isUnion())</div>
+<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> Contexts |= (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4e76e30191db0d9f227f8fe7e0e83629" title="Code completion occurred after the "union" keyword, to indicate a union name.">CodeCompletionContext::CCC_UnionTag</a>);</div>
+<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="keywordflow">else</span></div>
+<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> Contexts |= (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a5db9175a5e68235dd17f3cf9ebb9ba6f" title="Code completion occurred after the "struct" or "class" keyword, to indicate a struct or class name...">CodeCompletionContext::CCC_ClassOrStructTag</a>);</div>
+<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div>
+<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="keywordflow">if</span> (LangOpts.CPlusPlus)</div>
+<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> IsNestedNameSpecifier = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (isa<ClassTemplateDecl>(ND))</div>
+<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> IsNestedNameSpecifier = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (isa<ValueDecl>(ND) || isa<FunctionTemplateDecl>(ND)) {</div>
+<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="comment">// Values can appear in these contexts.</span></div>
+<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> Contexts = (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a13c2f63f612699c4b3552f85643adf29" title="Code completion occurred where a statement (or declaration) is expected in a function, method, or block.">CodeCompletionContext::CCC_Statement</a>)</div>
+<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4084b7d565e9d8122beff5c2367389bf" title="Code completion occurred where an expression is expected.">CodeCompletionContext::CCC_Expression</a>)</div>
+<div class="line"><a name="l00336"></a><span class="lineno"> 336</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a5290f588f50a51cbb00920c00998da80" title="Code completion in a parenthesized expression, which means that we may also have types here in C and ...">CodeCompletionContext::CCC_ParenthesizedExpression</a>)</div>
+<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a03074df58224a8b6c81abec3b7ba199d" title="Code completion occurred where an Objective-C message receiver is expected.">CodeCompletionContext::CCC_ObjCMessageReceiver</a>);</div>
+<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (isa<ObjCProtocolDecl>(ND)) {</div>
+<div class="line"><a name="l00339"></a><span class="lineno"> 339</span> Contexts = (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a73bba261cf574139e243f0ec444bd8f1" title="Code completion occurred where a protocol name is expected.">CodeCompletionContext::CCC_ObjCProtocolName</a>);</div>
+<div class="line"><a name="l00340"></a><span class="lineno"> 340</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (isa<ObjCCategoryDecl>(ND)) {</div>
+<div class="line"><a name="l00341"></a><span class="lineno"> 341</span> Contexts = (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a0c743b616dd8d462a9711cf287fcb325" title="Code completion where an Objective-C category name is expected.">CodeCompletionContext::CCC_ObjCCategoryName</a>);</div>
+<div class="line"><a name="l00342"></a><span class="lineno"> 342</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (isa<NamespaceDecl>(ND) || isa<NamespaceAliasDecl>(ND)) {</div>
+<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> Contexts = (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759ad31baacff239007fe3c55f88d1eb5676" title="Code completion occurred where a namespace or namespace alias is expected.">CodeCompletionContext::CCC_Namespace</a>);</div>
+<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> </div>
+<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="comment">// Part of the nested-name-specifier.</span></div>
+<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> IsNestedNameSpecifier = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> }</div>
+<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div>
+<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> <span class="keywordflow">return</span> <a class="code" href="TokenAnnotator_8cpp.html#ada696389a664a41c6d11f19e6273d98c">Contexts</a>;</div>
+<div class="line"><a name="l00350"></a><span class="lineno"> 350</span> }</div>
+<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> </div>
+<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> <span class="keywordtype">void</span> ASTUnit::CacheCodeCompletionResults() {</div>
+<div class="line"><a name="l00353"></a><span class="lineno"> 353</span> <span class="keywordflow">if</span> (!TheSema)</div>
+<div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div>
+<div class="line"><a name="l00356"></a><span class="lineno"> 356</span> SimpleTimer Timer(WantTiming);</div>
+<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> Timer.setOutput(<span class="stringliteral">"Cache global code completions for "</span> + <a class="code" href="classclang_1_1ASTUnit.html#a08b10e4e3224f0bd5ff1a5e3dd58aa6c">getMainFileName</a>());</div>
+<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> </div>
+<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> <span class="comment">// Clear out the previous results.</span></div>
+<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> ClearCachedCompletionResults();</div>
+<div class="line"><a name="l00361"></a><span class="lineno"> 361</span> </div>
+<div class="line"><a name="l00362"></a><span class="lineno"> 362</span> <span class="comment">// Gather the set of global code completions.</span></div>
+<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> <span class="keyword">typedef</span> <a class="code" href="classclang_1_1CodeCompletionResult.html" title="Captures a result of code completion.">CodeCompletionResult</a> Result;</div>
+<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<Result, 8></a> Results;</div>
+<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> CachedCompletionAllocator = <span class="keyword">new</span> <a class="code" href="classclang_1_1GlobalCodeCompletionAllocator.html" title="Allocator for a cached set of global code completions.">GlobalCodeCompletionAllocator</a>;</div>
+<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> <a class="code" href="classclang_1_1CodeCompletionTUInfo.html">CodeCompletionTUInfo</a> CCTUInfo(CachedCompletionAllocator);</div>
+<div class="line"><a name="l00367"></a><span class="lineno"> 367</span> TheSema->GatherGlobalCodeCompletions(*CachedCompletionAllocator,</div>
+<div class="line"><a name="l00368"></a><span class="lineno"> 368</span> CCTUInfo, Results);</div>
+<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> </div>
+<div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <span class="comment">// Translate global code completions into cached completions.</span></div>
+<div class="line"><a name="l00371"></a><span class="lineno"> 371</span> llvm::DenseMap<CanQualType, unsigned> CompletionTypes;</div>
+<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> </div>
+<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, N = Results.size(); I != N; ++I) {</div>
+<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="keywordflow">switch</span> (Results[I].<a class="code" href="ChrootChecker_8cpp.html#aa10c9e8951b8ccf714a59ec321bdac5b">Kind</a>) {</div>
+<div class="line"><a name="l00375"></a><span class="lineno"> 375</span> <span class="keywordflow">case</span> Result::RK_Declaration: {</div>
+<div class="line"><a name="l00376"></a><span class="lineno"> 376</span> <span class="keywordtype">bool</span> IsNestedNameSpecifier = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> CachedCodeCompletionResult CachedResult;</div>
+<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> CachedResult.Completion = Results[I].CreateCodeCompletionString(*TheSema,</div>
+<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> *CachedCompletionAllocator,</div>
+<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> CCTUInfo,</div>
+<div class="line"><a name="l00381"></a><span class="lineno"> 381</span> IncludeBriefCommentsInCodeCompletion);</div>
+<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> CachedResult.ShowInContexts = <a class="code" href="ASTUnit_8cpp.html#a3041621bd65568fc51b1c9ea6f64b4c2" title="Determine the set of code-completion contexts in which this declaration should be shown...">getDeclShowContexts</a>(Results[I].Declaration,</div>
+<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> Ctx->getLangOpts(),</div>
+<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> IsNestedNameSpecifier);</div>
+<div class="line"><a name="l00385"></a><span class="lineno"> 385</span> CachedResult.Priority = Results[I].Priority;</div>
+<div class="line"><a name="l00386"></a><span class="lineno"> 386</span> CachedResult.Kind = Results[I].CursorKind;</div>
+<div class="line"><a name="l00387"></a><span class="lineno"> 387</span> CachedResult.Availability = Results[I].Availability;</div>
+<div class="line"><a name="l00388"></a><span class="lineno"> 388</span> </div>
+<div class="line"><a name="l00389"></a><span class="lineno"> 389</span> <span class="comment">// Keep track of the type of this completion in an ASTContext-agnostic </span></div>
+<div class="line"><a name="l00390"></a><span class="lineno"> 390</span> <span class="comment">// way.</span></div>
+<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> <a class="code" href="classclang_1_1QualType.html">QualType</a> UsageType = <a class="code" href="namespaceclang.html#a2ca5f23fd441a247d2a6ebdb07fdbeb2" title="Determine the type that this declaration will have if it is used as a type or in an expression...">getDeclUsageType</a>(*Ctx, Results[I].Declaration);</div>
+<div class="line"><a name="l00392"></a><span class="lineno"> 392</span> <span class="keywordflow">if</span> (UsageType.<a class="code" href="classclang_1_1QualType.html#a8f87f58000490ad01cd09add1f27d7ac" title="isNull - Return true if this QualType doesn't point to a type yet.">isNull</a>()) {</div>
+<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> CachedResult.TypeClass = <a class="code" href="namespaceclang.html#a7b6f7a71a039a553c0cb4c5c5eb2cc05a366c4c9025a32b6edb8f620c6b1b5e74">STC_Void</a>;</div>
+<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> CachedResult.Type = 0;</div>
+<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l00396"></a><span class="lineno"> 396</span> <a class="code" href="classclang_1_1CanQual.html">CanQualType</a> CanUsageType</div>
+<div class="line"><a name="l00397"></a><span class="lineno"> 397</span> = Ctx->getCanonicalType(UsageType.<a class="code" href="classclang_1_1QualType.html#a5ddbce9d32b4f8043b641584599fe7e5" title="Retrieve the unqualified variant of the given type, removing as little sugar as possible.">getUnqualifiedType</a>());</div>
+<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> CachedResult.TypeClass = <a class="code" href="namespaceclang.html#ab0bf4fe918d555b304d1b1ad34468bec" title="Determine the simplified type class of the given canonical type.">getSimplifiedTypeClass</a>(CanUsageType);</div>
+<div class="line"><a name="l00399"></a><span class="lineno"> 399</span> </div>
+<div class="line"><a name="l00400"></a><span class="lineno"> 400</span> <span class="comment">// Determine whether we have already seen this type. If so, we save</span></div>
+<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> <span class="comment">// ourselves the work of formatting the type string by using the </span></div>
+<div class="line"><a name="l00402"></a><span class="lineno"> 402</span> <span class="comment">// temporary, CanQualType-based hash table to find the associated value.</span></div>
+<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="keywordtype">unsigned</span> &TypeValue = CompletionTypes[CanUsageType];</div>
+<div class="line"><a name="l00404"></a><span class="lineno"> 404</span> <span class="keywordflow">if</span> (TypeValue == 0) {</div>
+<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> TypeValue = CompletionTypes.size();</div>
+<div class="line"><a name="l00406"></a><span class="lineno"> 406</span> CachedCompletionTypes[<a class="code" href="classclang_1_1QualType.html">QualType</a>(CanUsageType).<a class="code" href="classclang_1_1QualType.html#af755c58826e02f164c9b1d442762457d">getAsString</a>()]</div>
+<div class="line"><a name="l00407"></a><span class="lineno"> 407</span> = TypeValue;</div>
+<div class="line"><a name="l00408"></a><span class="lineno"> 408</span> }</div>
+<div class="line"><a name="l00409"></a><span class="lineno"> 409</span> </div>
+<div class="line"><a name="l00410"></a><span class="lineno"> 410</span> CachedResult.Type = TypeValue;</div>
+<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> }</div>
+<div class="line"><a name="l00412"></a><span class="lineno"> 412</span> </div>
+<div class="line"><a name="l00413"></a><span class="lineno"> 413</span> CachedCompletionResults.push_back(CachedResult);</div>
+<div class="line"><a name="l00414"></a><span class="lineno"> 414</span> <span class="comment"></span></div>
+<div class="line"><a name="l00415"></a><span class="lineno"> 415</span> <span class="comment"> /// Handle nested-name-specifiers in C++.</span></div>
+<div class="line"><a name="l00416"></a><span class="lineno"> 416</span> <span class="comment"></span> <span class="keywordflow">if</span> (TheSema->Context.getLangOpts().CPlusPlus && </div>
+<div class="line"><a name="l00417"></a><span class="lineno"> 417</span> IsNestedNameSpecifier && !Results[I].StartsNestedNameSpecifier) {</div>
+<div class="line"><a name="l00418"></a><span class="lineno"> 418</span> <span class="comment">// The contexts in which a nested-name-specifier can appear in C++.</span></div>
+<div class="line"><a name="l00419"></a><span class="lineno"> 419</span> uint64_t NNSContexts</div>
+<div class="line"><a name="l00420"></a><span class="lineno"> 420</span> = (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a56b0e8aad53d4905445855ebbbb33888" title="Code completion occurred within a "top-level" completion context, e.g., at namespace or global scope...">CodeCompletionContext::CCC_TopLevel</a>)</div>
+<div class="line"><a name="l00421"></a><span class="lineno"> 421</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a0cf3c12af3e4a2ac3dd4207a86fceed9" title="Code completion occurred within the instance variable list of an Objective-C interface, implementation, or category implementation.">CodeCompletionContext::CCC_ObjCIvarList</a>)</div>
+<div class="line"><a name="l00422"></a><span class="lineno"> 422</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a2bfab44d6cc7a1c9ab31142245b74592" title="Code completion occurred within a class, struct, or union.">CodeCompletionContext::CCC_ClassStructUnion</a>)</div>
+<div class="line"><a name="l00423"></a><span class="lineno"> 423</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a13c2f63f612699c4b3552f85643adf29" title="Code completion occurred where a statement (or declaration) is expected in a function, method, or block.">CodeCompletionContext::CCC_Statement</a>)</div>
+<div class="line"><a name="l00424"></a><span class="lineno"> 424</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4084b7d565e9d8122beff5c2367389bf" title="Code completion occurred where an expression is expected.">CodeCompletionContext::CCC_Expression</a>)</div>
+<div class="line"><a name="l00425"></a><span class="lineno"> 425</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a03074df58224a8b6c81abec3b7ba199d" title="Code completion occurred where an Objective-C message receiver is expected.">CodeCompletionContext::CCC_ObjCMessageReceiver</a>)</div>
+<div class="line"><a name="l00426"></a><span class="lineno"> 426</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4534c8c0e9c0778059cc523fc54df7e6" title="Code completion occurred after the "enum" keyword, to indicate an enumeration name.">CodeCompletionContext::CCC_EnumTag</a>)</div>
+<div class="line"><a name="l00427"></a><span class="lineno"> 427</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4e76e30191db0d9f227f8fe7e0e83629" title="Code completion occurred after the "union" keyword, to indicate a union name.">CodeCompletionContext::CCC_UnionTag</a>)</div>
+<div class="line"><a name="l00428"></a><span class="lineno"> 428</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a5db9175a5e68235dd17f3cf9ebb9ba6f" title="Code completion occurred after the "struct" or "class" keyword, to indicate a struct or class name...">CodeCompletionContext::CCC_ClassOrStructTag</a>)</div>
+<div class="line"><a name="l00429"></a><span class="lineno"> 429</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a16de7083cf4caa60d5cd83a130c2c032" title="Code completion occurred where a type name is expected.">CodeCompletionContext::CCC_Type</a>)</div>
+<div class="line"><a name="l00430"></a><span class="lineno"> 430</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a9634eb7cf3520729491cb3549c311dca" title="Code completion occurred where a new name is expected and a qualified name is permissible.">CodeCompletionContext::CCC_PotentiallyQualifiedName</a>)</div>
+<div class="line"><a name="l00431"></a><span class="lineno"> 431</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a5290f588f50a51cbb00920c00998da80" title="Code completion in a parenthesized expression, which means that we may also have types here in C and ...">CodeCompletionContext::CCC_ParenthesizedExpression</a>);</div>
+<div class="line"><a name="l00432"></a><span class="lineno"> 432</span> </div>
+<div class="line"><a name="l00433"></a><span class="lineno"> 433</span> <span class="keywordflow">if</span> (isa<NamespaceDecl>(Results[I].Declaration) ||</div>
+<div class="line"><a name="l00434"></a><span class="lineno"> 434</span> isa<NamespaceAliasDecl>(Results[I].Declaration))</div>
+<div class="line"><a name="l00435"></a><span class="lineno"> 435</span> NNSContexts |= (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759ad31baacff239007fe3c55f88d1eb5676" title="Code completion occurred where a namespace or namespace alias is expected.">CodeCompletionContext::CCC_Namespace</a>);</div>
+<div class="line"><a name="l00436"></a><span class="lineno"> 436</span> </div>
+<div class="line"><a name="l00437"></a><span class="lineno"> 437</span> <span class="keywordflow">if</span> (<span class="keywordtype">unsigned</span> RemainingContexts </div>
+<div class="line"><a name="l00438"></a><span class="lineno"> 438</span> = NNSContexts & ~CachedResult.ShowInContexts) {</div>
+<div class="line"><a name="l00439"></a><span class="lineno"> 439</span> <span class="comment">// If there any contexts where this completion can be a </span></div>
+<div class="line"><a name="l00440"></a><span class="lineno"> 440</span> <span class="comment">// nested-name-specifier but isn't already an option, create a </span></div>
+<div class="line"><a name="l00441"></a><span class="lineno"> 441</span> <span class="comment">// nested-name-specifier completion.</span></div>
+<div class="line"><a name="l00442"></a><span class="lineno"> 442</span> Results[I].StartsNestedNameSpecifier = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> CachedResult.Completion </div>
+<div class="line"><a name="l00444"></a><span class="lineno"> 444</span> = Results[I].CreateCodeCompletionString(*TheSema,</div>
+<div class="line"><a name="l00445"></a><span class="lineno"> 445</span> *CachedCompletionAllocator,</div>
+<div class="line"><a name="l00446"></a><span class="lineno"> 446</span> CCTUInfo,</div>
+<div class="line"><a name="l00447"></a><span class="lineno"> 447</span> IncludeBriefCommentsInCodeCompletion);</div>
+<div class="line"><a name="l00448"></a><span class="lineno"> 448</span> CachedResult.ShowInContexts = RemainingContexts;</div>
+<div class="line"><a name="l00449"></a><span class="lineno"> 449</span> CachedResult.Priority = <a class="code" href="namespaceclang.html#a73fc8d23e5cfb84c4faa91578a49409ea546d54308bd88504408288671fb697ec" title="Priority for a nested-name-specifier.">CCP_NestedNameSpecifier</a>;</div>
+<div class="line"><a name="l00450"></a><span class="lineno"> 450</span> CachedResult.TypeClass = <a class="code" href="namespaceclang.html#a7b6f7a71a039a553c0cb4c5c5eb2cc05a366c4c9025a32b6edb8f620c6b1b5e74">STC_Void</a>;</div>
+<div class="line"><a name="l00451"></a><span class="lineno"> 451</span> CachedResult.Type = 0;</div>
+<div class="line"><a name="l00452"></a><span class="lineno"> 452</span> CachedCompletionResults.push_back(CachedResult);</div>
+<div class="line"><a name="l00453"></a><span class="lineno"> 453</span> }</div>
+<div class="line"><a name="l00454"></a><span class="lineno"> 454</span> }</div>
+<div class="line"><a name="l00455"></a><span class="lineno"> 455</span> <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l00456"></a><span class="lineno"> 456</span> }</div>
+<div class="line"><a name="l00457"></a><span class="lineno"> 457</span> </div>
+<div class="line"><a name="l00458"></a><span class="lineno"> 458</span> <span class="keywordflow">case</span> Result::RK_Keyword:</div>
+<div class="line"><a name="l00459"></a><span class="lineno"> 459</span> <span class="keywordflow">case</span> Result::RK_Pattern:</div>
+<div class="line"><a name="l00460"></a><span class="lineno"> 460</span> <span class="comment">// Ignore keywords and patterns; we don't care, since they are so</span></div>
+<div class="line"><a name="l00461"></a><span class="lineno"> 461</span> <span class="comment">// easily regenerated.</span></div>
+<div class="line"><a name="l00462"></a><span class="lineno"> 462</span> <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l00463"></a><span class="lineno"> 463</span> </div>
+<div class="line"><a name="l00464"></a><span class="lineno"> 464</span> <span class="keywordflow">case</span> Result::RK_Macro: {</div>
+<div class="line"><a name="l00465"></a><span class="lineno"> 465</span> CachedCodeCompletionResult CachedResult;</div>
+<div class="line"><a name="l00466"></a><span class="lineno"> 466</span> CachedResult.Completion </div>
+<div class="line"><a name="l00467"></a><span class="lineno"> 467</span> = Results[I].CreateCodeCompletionString(*TheSema,</div>
+<div class="line"><a name="l00468"></a><span class="lineno"> 468</span> *CachedCompletionAllocator,</div>
+<div class="line"><a name="l00469"></a><span class="lineno"> 469</span> CCTUInfo,</div>
+<div class="line"><a name="l00470"></a><span class="lineno"> 470</span> IncludeBriefCommentsInCodeCompletion);</div>
+<div class="line"><a name="l00471"></a><span class="lineno"> 471</span> CachedResult.ShowInContexts</div>
+<div class="line"><a name="l00472"></a><span class="lineno"> 472</span> = (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a56b0e8aad53d4905445855ebbbb33888" title="Code completion occurred within a "top-level" completion context, e.g., at namespace or global scope...">CodeCompletionContext::CCC_TopLevel</a>)</div>
+<div class="line"><a name="l00473"></a><span class="lineno"> 473</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a37857addc919f1d6b11e2a93d802729d" title="Code completion occurred within an Objective-C interface, protocol, or category interface.">CodeCompletionContext::CCC_ObjCInterface</a>)</div>
+<div class="line"><a name="l00474"></a><span class="lineno"> 474</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a6032bad18db6a7017fcef05d2cdad61c" title="Code completion occurred within an Objective-C implementation or category implementation.">CodeCompletionContext::CCC_ObjCImplementation</a>)</div>
+<div class="line"><a name="l00475"></a><span class="lineno"> 475</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a0cf3c12af3e4a2ac3dd4207a86fceed9" title="Code completion occurred within the instance variable list of an Objective-C interface, implementation, or category implementation.">CodeCompletionContext::CCC_ObjCIvarList</a>)</div>
+<div class="line"><a name="l00476"></a><span class="lineno"> 476</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a2bfab44d6cc7a1c9ab31142245b74592" title="Code completion occurred within a class, struct, or union.">CodeCompletionContext::CCC_ClassStructUnion</a>)</div>
+<div class="line"><a name="l00477"></a><span class="lineno"> 477</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a13c2f63f612699c4b3552f85643adf29" title="Code completion occurred where a statement (or declaration) is expected in a function, method, or block.">CodeCompletionContext::CCC_Statement</a>)</div>
+<div class="line"><a name="l00478"></a><span class="lineno"> 478</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4084b7d565e9d8122beff5c2367389bf" title="Code completion occurred where an expression is expected.">CodeCompletionContext::CCC_Expression</a>)</div>
+<div class="line"><a name="l00479"></a><span class="lineno"> 479</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a03074df58224a8b6c81abec3b7ba199d" title="Code completion occurred where an Objective-C message receiver is expected.">CodeCompletionContext::CCC_ObjCMessageReceiver</a>)</div>
+<div class="line"><a name="l00480"></a><span class="lineno"> 480</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759aa0318a685087feb3a1efa8a90c4afe13" title="Code completion occurred where a macro name is expected (without any arguments, in the case of a func...">CodeCompletionContext::CCC_MacroNameUse</a>)</div>
+<div class="line"><a name="l00481"></a><span class="lineno"> 481</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a072334efb6532d4578a4c722a2869781" title="Code completion occurred within a preprocessor expression.">CodeCompletionContext::CCC_PreprocessorExpression</a>)</div>
+<div class="line"><a name="l00482"></a><span class="lineno"> 482</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a5290f588f50a51cbb00920c00998da80" title="Code completion in a parenthesized expression, which means that we may also have types here in C and ...">CodeCompletionContext::CCC_ParenthesizedExpression</a>)</div>
+<div class="line"><a name="l00483"></a><span class="lineno"> 483</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a7f03c180e88c0aee394ff53935d4645c" title="An unspecified code-completion context where we should also add macro completions.">CodeCompletionContext::CCC_OtherWithMacros</a>);</div>
+<div class="line"><a name="l00484"></a><span class="lineno"> 484</span> </div>
+<div class="line"><a name="l00485"></a><span class="lineno"> 485</span> CachedResult.Priority = Results[I].Priority;</div>
+<div class="line"><a name="l00486"></a><span class="lineno"> 486</span> CachedResult.Kind = Results[I].CursorKind;</div>
+<div class="line"><a name="l00487"></a><span class="lineno"> 487</span> CachedResult.Availability = Results[I].Availability;</div>
+<div class="line"><a name="l00488"></a><span class="lineno"> 488</span> CachedResult.TypeClass = <a class="code" href="namespaceclang.html#a7b6f7a71a039a553c0cb4c5c5eb2cc05a366c4c9025a32b6edb8f620c6b1b5e74">STC_Void</a>;</div>
+<div class="line"><a name="l00489"></a><span class="lineno"> 489</span> CachedResult.Type = 0;</div>
+<div class="line"><a name="l00490"></a><span class="lineno"> 490</span> CachedCompletionResults.push_back(CachedResult);</div>
+<div class="line"><a name="l00491"></a><span class="lineno"> 491</span> <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l00492"></a><span class="lineno"> 492</span> }</div>
+<div class="line"><a name="l00493"></a><span class="lineno"> 493</span> }</div>
+<div class="line"><a name="l00494"></a><span class="lineno"> 494</span> }</div>
+<div class="line"><a name="l00495"></a><span class="lineno"> 495</span> </div>
+<div class="line"><a name="l00496"></a><span class="lineno"> 496</span> <span class="comment">// Save the current top-level hash value.</span></div>
+<div class="line"><a name="l00497"></a><span class="lineno"> 497</span> CompletionCacheTopLevelHashValue = CurrentTopLevelHashValue;</div>
+<div class="line"><a name="l00498"></a><span class="lineno"> 498</span> }</div>
+<div class="line"><a name="l00499"></a><span class="lineno"> 499</span> </div>
+<div class="line"><a name="l00500"></a><span class="lineno"> 500</span> <span class="keywordtype">void</span> ASTUnit::ClearCachedCompletionResults() {</div>
+<div class="line"><a name="l00501"></a><span class="lineno"> 501</span> CachedCompletionResults.clear();</div>
+<div class="line"><a name="l00502"></a><span class="lineno"> 502</span> CachedCompletionTypes.clear();</div>
+<div class="line"><a name="l00503"></a><span class="lineno"> 503</span> CachedCompletionAllocator = 0;</div>
+<div class="line"><a name="l00504"></a><span class="lineno"> 504</span> }</div>
+<div class="line"><a name="l00505"></a><span class="lineno"> 505</span> </div>
+<div class="line"><a name="l00506"></a><span class="lineno"> 506</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l00507"></a><span class="lineno"> 507</span> <span class="comment"></span></div>
+<div class="line"><a name="l00508"></a><span class="lineno"> 508</span> <span class="comment">/// \brief Gathers information from ASTReader that will be used to initialize</span></div>
+<div class="line"><a name="l00509"></a><span class="lineno"> 509</span> <span class="comment">/// a Preprocessor.</span></div>
+<div class="line"><a name="l00510"></a><span class="lineno"> 510</span> <span class="comment"></span><span class="keyword">class </span>ASTInfoCollector : <span class="keyword">public</span> <a class="code" href="classclang_1_1ASTReaderListener.html" title="Abstract interface for callback invocations by the ASTReader.">ASTReaderListener</a> {</div>
+<div class="line"><a name="l00511"></a><span class="lineno"> 511</span> <a class="code" href="classclang_1_1Preprocessor.html">Preprocessor</a> &PP;</div>
+<div class="line"><a name="l00512"></a><span class="lineno"> 512</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &<a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a>;</div>
+<div class="line"><a name="l00513"></a><span class="lineno"> 513</span> <a class="code" href="classclang_1_1LangOptions.html" title="Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...">LangOptions</a> &LangOpt;</div>
+<div class="line"><a name="l00514"></a><span class="lineno"> 514</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<TargetOptions></a> &TargetOpts;</div>
+<div class="line"><a name="l00515"></a><span class="lineno"> 515</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<TargetInfo></a> &Target;</div>
+<div class="line"><a name="l00516"></a><span class="lineno"> 516</span> <span class="keywordtype">unsigned</span> &Counter;</div>
+<div class="line"><a name="l00517"></a><span class="lineno"> 517</span> </div>
+<div class="line"><a name="l00518"></a><span class="lineno"> 518</span> <span class="keywordtype">bool</span> InitializedLanguage;</div>
+<div class="line"><a name="l00519"></a><span class="lineno"> 519</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00520"></a><span class="lineno"> 520</span> ASTInfoCollector(<a class="code" href="classclang_1_1Preprocessor.html">Preprocessor</a> &PP, <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &<a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a>, <a class="code" href="classclang_1_1LangOptions.html" title="Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...">LangOptions</a> &LangOpt, </div>
+<div class="line"><a name="l00521"></a><span class="lineno"> 521</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<TargetOptions></a> &TargetOpts,</div>
+<div class="line"><a name="l00522"></a><span class="lineno"> 522</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<TargetInfo></a> &Target,</div>
+<div class="line"><a name="l00523"></a><span class="lineno"> 523</span> <span class="keywordtype">unsigned</span> &Counter)</div>
+<div class="line"><a name="l00524"></a><span class="lineno"> 524</span> : PP(PP), Context(Context), LangOpt(LangOpt),</div>
+<div class="line"><a name="l00525"></a><span class="lineno"> 525</span> TargetOpts(TargetOpts), Target(Target),</div>
+<div class="line"><a name="l00526"></a><span class="lineno"> 526</span> Counter(Counter),</div>
+<div class="line"><a name="l00527"></a><span class="lineno"> 527</span> InitializedLanguage(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>) {}</div>
+<div class="line"><a name="l00528"></a><span class="lineno"> 528</span> </div>
+<div class="line"><a name="l00529"></a><span class="lineno"> 529</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> ReadLanguageOptions(<span class="keyword">const</span> <a class="code" href="classclang_1_1LangOptions.html" title="Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...">LangOptions</a> &LangOpts,</div>
+<div class="line"><a name="l00530"></a><span class="lineno"> 530</span> <span class="keywordtype">bool</span> Complain) {</div>
+<div class="line"><a name="l00531"></a><span class="lineno"> 531</span> <span class="keywordflow">if</span> (InitializedLanguage)</div>
+<div class="line"><a name="l00532"></a><span class="lineno"> 532</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00533"></a><span class="lineno"> 533</span> </div>
+<div class="line"><a name="l00534"></a><span class="lineno"> 534</span> LangOpt = LangOpts;</div>
+<div class="line"><a name="l00535"></a><span class="lineno"> 535</span> InitializedLanguage = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00536"></a><span class="lineno"> 536</span> </div>
+<div class="line"><a name="l00537"></a><span class="lineno"> 537</span> updated();</div>
+<div class="line"><a name="l00538"></a><span class="lineno"> 538</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00539"></a><span class="lineno"> 539</span> }</div>
+<div class="line"><a name="l00540"></a><span class="lineno"> 540</span> </div>
+<div class="line"><a name="l00541"></a><span class="lineno"> 541</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> ReadTargetOptions(<span class="keyword">const</span> <a class="code" href="classclang_1_1TargetOptions.html" title="Options for controlling the target.">TargetOptions</a> &TargetOpts,</div>
+<div class="line"><a name="l00542"></a><span class="lineno"> 542</span> <span class="keywordtype">bool</span> Complain) {</div>
+<div class="line"><a name="l00543"></a><span class="lineno"> 543</span> <span class="comment">// If we've already initialized the target, don't do it again.</span></div>
+<div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="keywordflow">if</span> (Target)</div>
+<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00546"></a><span class="lineno"> 546</span> </div>
+<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> this->TargetOpts = <span class="keyword">new</span> <a class="code" href="classclang_1_1TargetOptions.html" title="Options for controlling the target.">TargetOptions</a>(TargetOpts);</div>
+<div class="line"><a name="l00548"></a><span class="lineno"> 548</span> Target = <a class="code" href="classclang_1_1TargetInfo.html#a4f871040b846cf9e01dd66a8b46e2985" title="Construct a target for the given options.">TargetInfo::CreateTargetInfo</a>(PP.getDiagnostics(),</div>
+<div class="line"><a name="l00549"></a><span class="lineno"> 549</span> &*this->TargetOpts);</div>
+<div class="line"><a name="l00550"></a><span class="lineno"> 550</span> </div>
+<div class="line"><a name="l00551"></a><span class="lineno"> 551</span> updated();</div>
+<div class="line"><a name="l00552"></a><span class="lineno"> 552</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00553"></a><span class="lineno"> 553</span> }</div>
+<div class="line"><a name="l00554"></a><span class="lineno"> 554</span> </div>
+<div class="line"><a name="l00555"></a><span class="lineno"> 555</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadCounter(<span class="keyword">const</span> <a class="code" href="classclang_1_1serialization_1_1ModuleFile.html" title="Information about a module that has been loaded by the ASTReader.">serialization::ModuleFile</a> &M, <span class="keywordtype">unsigned</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>) {</div>
+<div class="line"><a name="l00556"></a><span class="lineno"> 556</span> Counter = <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>;</div>
+<div class="line"><a name="l00557"></a><span class="lineno"> 557</span> }</div>
+<div class="line"><a name="l00558"></a><span class="lineno"> 558</span> </div>
+<div class="line"><a name="l00559"></a><span class="lineno"> 559</span> <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00560"></a><span class="lineno"> 560</span> <span class="keywordtype">void</span> updated() {</div>
+<div class="line"><a name="l00561"></a><span class="lineno"> 561</span> <span class="keywordflow">if</span> (!Target || !InitializedLanguage)</div>
+<div class="line"><a name="l00562"></a><span class="lineno"> 562</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00563"></a><span class="lineno"> 563</span> </div>
+<div class="line"><a name="l00564"></a><span class="lineno"> 564</span> <span class="comment">// Inform the target of the language options.</span></div>
+<div class="line"><a name="l00565"></a><span class="lineno"> 565</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00566"></a><span class="lineno"> 566</span> <span class="comment">// FIXME: We shouldn't need to do this, the target should be immutable once</span></div>
+<div class="line"><a name="l00567"></a><span class="lineno"> 567</span> <span class="comment">// created. This complexity should be lifted elsewhere.</span></div>
+<div class="line"><a name="l00568"></a><span class="lineno"> 568</span> Target->setForcedLangOptions(LangOpt);</div>
+<div class="line"><a name="l00569"></a><span class="lineno"> 569</span> </div>
+<div class="line"><a name="l00570"></a><span class="lineno"> 570</span> <span class="comment">// Initialize the preprocessor.</span></div>
+<div class="line"><a name="l00571"></a><span class="lineno"> 571</span> PP.Initialize(*Target);</div>
+<div class="line"><a name="l00572"></a><span class="lineno"> 572</span> </div>
+<div class="line"><a name="l00573"></a><span class="lineno"> 573</span> <span class="comment">// Initialize the ASTContext</span></div>
+<div class="line"><a name="l00574"></a><span class="lineno"> 574</span> <a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a>.<a class="code" href="classclang_1_1ASTContext.html#a202f7b43aec59bc565b0cb0c9ea16a51" title="Initialize built-in types.">InitBuiltinTypes</a>(*Target);</div>
+<div class="line"><a name="l00575"></a><span class="lineno"> 575</span> </div>
+<div class="line"><a name="l00576"></a><span class="lineno"> 576</span> <span class="comment">// We didn't have access to the comment options when the ASTContext was</span></div>
+<div class="line"><a name="l00577"></a><span class="lineno"> 577</span> <span class="comment">// constructed, so register them now.</span></div>
+<div class="line"><a name="l00578"></a><span class="lineno"> 578</span> <a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a>.<a class="code" href="classclang_1_1ASTContext.html#ab94319cfc86265a4345d43ab25555b97">getCommentCommandTraits</a>().<a class="code" href="classclang_1_1comments_1_1CommandTraits.html#a697a478fda36123a98469fa8e90b86b4">registerCommentOptions</a>(</div>
+<div class="line"><a name="l00579"></a><span class="lineno"> 579</span> LangOpt.CommentOpts);</div>
+<div class="line"><a name="l00580"></a><span class="lineno"> 580</span> }</div>
+<div class="line"><a name="l00581"></a><span class="lineno"> 581</span> };</div>
+<div class="line"><a name="l00582"></a><span class="lineno"> 582</span> <span class="comment"></span></div>
+<div class="line"><a name="l00583"></a><span class="lineno"> 583</span> <span class="comment"> /// \brief Diagnostic consumer that saves each diagnostic it is given.</span></div>
+<div class="line"><a name="l00584"></a><span class="lineno"> 584</span> <span class="comment"></span><span class="keyword">class </span>StoredDiagnosticConsumer : <span class="keyword">public</span> <a class="code" href="classclang_1_1DiagnosticConsumer.html" title="Abstract interface, implemented by clients of the front-end, which formats and prints fully processed...">DiagnosticConsumer</a> {</div>
+<div class="line"><a name="l00585"></a><span class="lineno"> 585</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<StoredDiagnostic></a> &StoredDiags;</div>
+<div class="line"><a name="l00586"></a><span class="lineno"> 586</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> *<a class="code" href="Format_8cpp.html#a8b28f9f83ac8256fbde7e45b0f874f27">SourceMgr</a>;</div>
+<div class="line"><a name="l00587"></a><span class="lineno"> 587</span> </div>
+<div class="line"><a name="l00588"></a><span class="lineno"> 588</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00589"></a><span class="lineno"> 589</span> <span class="keyword">explicit</span> StoredDiagnosticConsumer(</div>
+<div class="line"><a name="l00590"></a><span class="lineno"> 590</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<StoredDiagnostic></a> &StoredDiags)</div>
+<div class="line"><a name="l00591"></a><span class="lineno"> 591</span> : StoredDiags(StoredDiags), <a class="code" href="Format_8cpp.html#a8b28f9f83ac8256fbde7e45b0f874f27">SourceMgr</a>(0) { }</div>
+<div class="line"><a name="l00592"></a><span class="lineno"> 592</span> </div>
+<div class="line"><a name="l00593"></a><span class="lineno"> 593</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> BeginSourceFile(<span class="keyword">const</span> <a class="code" href="classclang_1_1LangOptions.html" title="Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...">LangOptions</a> &LangOpts,</div>
+<div class="line"><a name="l00594"></a><span class="lineno"> 594</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1Preprocessor.html">Preprocessor</a> *PP = 0) {</div>
+<div class="line"><a name="l00595"></a><span class="lineno"> 595</span> <span class="keywordflow">if</span> (PP)</div>
+<div class="line"><a name="l00596"></a><span class="lineno"> 596</span> <a class="code" href="Format_8cpp.html#a8b28f9f83ac8256fbde7e45b0f874f27">SourceMgr</a> = &PP->getSourceManager();</div>
+<div class="line"><a name="l00597"></a><span class="lineno"> 597</span> }</div>
+<div class="line"><a name="l00598"></a><span class="lineno"> 598</span> </div>
+<div class="line"><a name="l00599"></a><span class="lineno"> 599</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> HandleDiagnostic(<a class="code" href="classclang_1_1DiagnosticsEngine.html#a94e5078973aa3a34432e91f3b26263e0" title="The level of the diagnostic, after it has been through mapping.">DiagnosticsEngine::Level</a> <a class="code" href="namespaceclang_1_1prec.html#a9bfbe31f4770359ea44ad42e7c7ed8ff">Level</a>,</div>
+<div class="line"><a name="l00600"></a><span class="lineno"> 600</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1Diagnostic.html">Diagnostic</a> &Info);</div>
+<div class="line"><a name="l00601"></a><span class="lineno"> 601</span> };</div>
+<div class="line"><a name="l00602"></a><span class="lineno"> 602</span> <span class="comment"></span></div>
+<div class="line"><a name="l00603"></a><span class="lineno"> 603</span> <span class="comment">/// \brief RAII object that optionally captures diagnostics, if</span></div>
+<div class="line"><a name="l00604"></a><span class="lineno"> 604</span> <span class="comment">/// there is no diagnostic client to capture them already.</span></div>
+<div class="line"><a name="l00605"></a><span class="lineno"> 605</span> <span class="comment"></span><span class="keyword">class </span>CaptureDroppedDiagnostics {</div>
+<div class="line"><a name="l00606"></a><span class="lineno"> 606</span> <a class="code" href="classclang_1_1DiagnosticsEngine.html" title="Concrete class used by the front-end to report problems and issues.">DiagnosticsEngine</a> &Diags;</div>
+<div class="line"><a name="l00607"></a><span class="lineno"> 607</span> StoredDiagnosticConsumer Client;</div>
+<div class="line"><a name="l00608"></a><span class="lineno"> 608</span> <a class="code" href="classclang_1_1DiagnosticConsumer.html" title="Abstract interface, implemented by clients of the front-end, which formats and prints fully processed...">DiagnosticConsumer</a> *PreviousClient;</div>
+<div class="line"><a name="l00609"></a><span class="lineno"> 609</span> </div>
+<div class="line"><a name="l00610"></a><span class="lineno"> 610</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00611"></a><span class="lineno"> 611</span> CaptureDroppedDiagnostics(<span class="keywordtype">bool</span> RequestCapture, <a class="code" href="classclang_1_1DiagnosticsEngine.html" title="Concrete class used by the front-end to report problems and issues.">DiagnosticsEngine</a> &Diags,</div>
+<div class="line"><a name="l00612"></a><span class="lineno"> 612</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<StoredDiagnostic></a> &StoredDiags)</div>
+<div class="line"><a name="l00613"></a><span class="lineno"> 613</span> : Diags(Diags), Client(StoredDiags), PreviousClient(0)</div>
+<div class="line"><a name="l00614"></a><span class="lineno"> 614</span> {</div>
+<div class="line"><a name="l00615"></a><span class="lineno"> 615</span> <span class="keywordflow">if</span> (RequestCapture || Diags.<a class="code" href="classclang_1_1DiagnosticsEngine.html#adfcddafe21f07cc2b7dc422cb8661d56">getClient</a>() == 0) {</div>
+<div class="line"><a name="l00616"></a><span class="lineno"> 616</span> PreviousClient = Diags.<a class="code" href="classclang_1_1DiagnosticsEngine.html#a780e0502793978b0621644934f057e7e" title="Return the current diagnostic client along with ownership of that client.">takeClient</a>();</div>
+<div class="line"><a name="l00617"></a><span class="lineno"> 617</span> Diags.<a class="code" href="classclang_1_1DiagnosticsEngine.html#a73d6622e8b775233db09bc294a4b1bb0" title="Set the diagnostic client associated with this diagnostic object.">setClient</a>(&Client);</div>
+<div class="line"><a name="l00618"></a><span class="lineno"> 618</span> }</div>
+<div class="line"><a name="l00619"></a><span class="lineno"> 619</span> }</div>
+<div class="line"><a name="l00620"></a><span class="lineno"> 620</span> </div>
+<div class="line"><a name="l00621"></a><span class="lineno"> 621</span> ~CaptureDroppedDiagnostics() {</div>
+<div class="line"><a name="l00622"></a><span class="lineno"> 622</span> <span class="keywordflow">if</span> (Diags.<a class="code" href="classclang_1_1DiagnosticsEngine.html#adfcddafe21f07cc2b7dc422cb8661d56">getClient</a>() == &Client) {</div>
+<div class="line"><a name="l00623"></a><span class="lineno"> 623</span> Diags.<a class="code" href="classclang_1_1DiagnosticsEngine.html#a780e0502793978b0621644934f057e7e" title="Return the current diagnostic client along with ownership of that client.">takeClient</a>();</div>
+<div class="line"><a name="l00624"></a><span class="lineno"> 624</span> Diags.<a class="code" href="classclang_1_1DiagnosticsEngine.html#a73d6622e8b775233db09bc294a4b1bb0" title="Set the diagnostic client associated with this diagnostic object.">setClient</a>(PreviousClient);</div>
+<div class="line"><a name="l00625"></a><span class="lineno"> 625</span> }</div>
+<div class="line"><a name="l00626"></a><span class="lineno"> 626</span> }</div>
+<div class="line"><a name="l00627"></a><span class="lineno"> 627</span> };</div>
+<div class="line"><a name="l00628"></a><span class="lineno"> 628</span> </div>
+<div class="line"><a name="l00629"></a><span class="lineno"> 629</span> } <span class="comment">// anonymous namespace</span></div>
+<div class="line"><a name="l00630"></a><span class="lineno"> 630</span> </div>
+<div class="line"><a name="l00631"></a><span class="lineno"> 631</span> <span class="keywordtype">void</span> StoredDiagnosticConsumer::HandleDiagnostic(<a class="code" href="classclang_1_1DiagnosticsEngine.html#a94e5078973aa3a34432e91f3b26263e0" title="The level of the diagnostic, after it has been through mapping.">DiagnosticsEngine::Level</a> <a class="code" href="namespaceclang_1_1prec.html#a9bfbe31f4770359ea44ad42e7c7ed8ff">Level</a>,</div>
+<div class="line"><a name="l00632"></a><span class="lineno"> 632</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1Diagnostic.html">Diagnostic</a> &Info) {</div>
+<div class="line"><a name="l00633"></a><span class="lineno"> 633</span> <span class="comment">// Default implementation (Warnings/errors count).</span></div>
+<div class="line"><a name="l00634"></a><span class="lineno"> 634</span> <a class="code" href="classclang_1_1DiagnosticConsumer.html#a4e2f11fcedb8495fe184b8adbd589708" title="Handle this diagnostic, reporting it to the user or capturing it to a log as needed.">DiagnosticConsumer::HandleDiagnostic</a>(Level, Info);</div>
+<div class="line"><a name="l00635"></a><span class="lineno"> 635</span> </div>
+<div class="line"><a name="l00636"></a><span class="lineno"> 636</span> <span class="comment">// Only record the diagnostic if it's part of the source manager we know</span></div>
+<div class="line"><a name="l00637"></a><span class="lineno"> 637</span> <span class="comment">// about. This effectively drops diagnostics from modules we're building.</span></div>
+<div class="line"><a name="l00638"></a><span class="lineno"> 638</span> <span class="comment">// FIXME: In the long run, ee don't want to drop source managers from modules.</span></div>
+<div class="line"><a name="l00639"></a><span class="lineno"> 639</span> <span class="keywordflow">if</span> (!Info.<a class="code" href="classclang_1_1Diagnostic.html#aae26a5bb59bf1d70a26e7bf665b51925">hasSourceManager</a>() || &Info.<a class="code" href="classclang_1_1Diagnostic.html#a48b68414f88d8451288420d6615366e3">getSourceManager</a>() == <a class="code" href="Format_8cpp.html#a8b28f9f83ac8256fbde7e45b0f874f27">SourceMgr</a>)</div>
+<div class="line"><a name="l00640"></a><span class="lineno"> 640</span> StoredDiags.push_back(<a class="code" href="classclang_1_1StoredDiagnostic.html" title="Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...">StoredDiagnostic</a>(Level, Info));</div>
+<div class="line"><a name="l00641"></a><span class="lineno"> 641</span> }</div>
+<div class="line"><a name="l00642"></a><span class="lineno"> 642</span> </div>
+<div class="line"><a name="l00643"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ab587c68c2ff4042bd52ebe2c1b375793"> 643</a></span> <a class="code" href="classclang_1_1ASTMutationListener.html" title="An abstract interface that should be implemented by listeners that want to be notified when an AST en...">ASTMutationListener</a> *<a class="code" href="classclang_1_1ASTUnit.html#ab587c68c2ff4042bd52ebe2c1b375793">ASTUnit::getASTMutationListener</a>() {</div>
+<div class="line"><a name="l00644"></a><span class="lineno"> 644</span> <span class="keywordflow">if</span> (WriterData)</div>
+<div class="line"><a name="l00645"></a><span class="lineno"> 645</span> <span class="keywordflow">return</span> &WriterData->Writer;</div>
+<div class="line"><a name="l00646"></a><span class="lineno"> 646</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l00647"></a><span class="lineno"> 647</span> }</div>
+<div class="line"><a name="l00648"></a><span class="lineno"> 648</span> </div>
+<div class="line"><a name="l00649"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a2c9b2b834177803923dc01ccfebea34b"> 649</a></span> <a class="code" href="classclang_1_1ASTDeserializationListener.html">ASTDeserializationListener</a> *<a class="code" href="classclang_1_1ASTUnit.html#a2c9b2b834177803923dc01ccfebea34b">ASTUnit::getDeserializationListener</a>() {</div>
+<div class="line"><a name="l00650"></a><span class="lineno"> 650</span> <span class="keywordflow">if</span> (WriterData)</div>
+<div class="line"><a name="l00651"></a><span class="lineno"> 651</span> <span class="keywordflow">return</span> &WriterData->Writer;</div>
+<div class="line"><a name="l00652"></a><span class="lineno"> 652</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l00653"></a><span class="lineno"> 653</span> }</div>
+<div class="line"><a name="l00654"></a><span class="lineno"> 654</span> </div>
+<div class="line"><a name="l00655"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a237bce86e574bf434e42ee419ec382f6"> 655</a></span> llvm::MemoryBuffer *<a class="code" href="classclang_1_1ASTUnit.html#a237bce86e574bf434e42ee419ec382f6">ASTUnit::getBufferForFile</a>(StringRef Filename,</div>
+<div class="line"><a name="l00656"></a><span class="lineno"> 656</span> std::string *ErrorStr) {</div>
+<div class="line"><a name="l00657"></a><span class="lineno"> 657</span> assert(FileMgr);</div>
+<div class="line"><a name="l00658"></a><span class="lineno"> 658</span> <span class="keywordflow">return</span> FileMgr->getBufferForFile(Filename, ErrorStr);</div>
+<div class="line"><a name="l00659"></a><span class="lineno"> 659</span> }</div>
+<div class="line"><a name="l00660"></a><span class="lineno"> 660</span> <span class="comment"></span></div>
+<div class="line"><a name="l00661"></a><span class="lineno"> 661</span> <span class="comment">/// \brief Configure the diagnostics object for use with ASTUnit.</span></div>
+<div class="line"><a name="l00662"></a><span class="lineno"> 662</span> <span class="comment"></span><span class="keywordtype">void</span> ASTUnit::ConfigureDiags(<a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> &Diags,</div>
+<div class="line"><a name="l00663"></a><span class="lineno"> 663</span> <span class="keyword">const</span> <span class="keywordtype">char</span> **ArgBegin, <span class="keyword">const</span> <span class="keywordtype">char</span> **ArgEnd,</div>
+<div class="line"><a name="l00664"></a><span class="lineno"> 664</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &AST, <span class="keywordtype">bool</span> CaptureDiagnostics) {</div>
+<div class="line"><a name="l00665"></a><span class="lineno"> 665</span> <span class="keywordflow">if</span> (!Diags.getPtr()) {</div>
+<div class="line"><a name="l00666"></a><span class="lineno"> 666</span> <span class="comment">// No diagnostics engine was provided, so create our own diagnostics object</span></div>
+<div class="line"><a name="l00667"></a><span class="lineno"> 667</span> <span class="comment">// with the default options.</span></div>
+<div class="line"><a name="l00668"></a><span class="lineno"> 668</span> <a class="code" href="classclang_1_1DiagnosticConsumer.html" title="Abstract interface, implemented by clients of the front-end, which formats and prints fully processed...">DiagnosticConsumer</a> *Client = 0;</div>
+<div class="line"><a name="l00669"></a><span class="lineno"> 669</span> <span class="keywordflow">if</span> (CaptureDiagnostics)</div>
+<div class="line"><a name="l00670"></a><span class="lineno"> 670</span> Client = <span class="keyword">new</span> StoredDiagnosticConsumer(AST.StoredDiagnostics);</div>
+<div class="line"><a name="l00671"></a><span class="lineno"> 671</span> Diags = <a class="code" href="classclang_1_1CompilerInstance.html#ac82999fc69998009afeb1342e86b04b3">CompilerInstance::createDiagnostics</a>(<span class="keyword">new</span> <a class="code" href="classclang_1_1DiagnosticOptions.html" title="Options for controlling the compiler diagnostics engine.">DiagnosticOptions</a>(),</div>
+<div class="line"><a name="l00672"></a><span class="lineno"> 672</span> Client,</div>
+<div class="line"><a name="l00673"></a><span class="lineno"> 673</span> <span class="comment">/*ShouldOwnClient=*/</span><span class="keyword">true</span>);</div>
+<div class="line"><a name="l00674"></a><span class="lineno"> 674</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (CaptureDiagnostics) {</div>
+<div class="line"><a name="l00675"></a><span class="lineno"> 675</span> Diags->setClient(<span class="keyword">new</span> StoredDiagnosticConsumer(AST.StoredDiagnostics));</div>
+<div class="line"><a name="l00676"></a><span class="lineno"> 676</span> }</div>
+<div class="line"><a name="l00677"></a><span class="lineno"> 677</span> }</div>
+<div class="line"><a name="l00678"></a><span class="lineno"> 678</span> </div>
+<div class="line"><a name="l00679"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a990aa6455bd59a6c6f7bc39fb9e7e25d"> 679</a></span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *<a class="code" href="classclang_1_1ASTUnit.html#a990aa6455bd59a6c6f7bc39fb9e7e25d" title="Create a ASTUnit from an AST file.">ASTUnit::LoadFromASTFile</a>(<span class="keyword">const</span> std::string &Filename,</div>
+<div class="line"><a name="l00680"></a><span class="lineno"> 680</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> Diags,</div>
+<div class="line"><a name="l00681"></a><span class="lineno"> 681</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FileSystemOptions.html" title="Keeps track of options that affect how file operations are performed.">FileSystemOptions</a> &FileSystemOpts,</div>
+<div class="line"><a name="l00682"></a><span class="lineno"> 682</span> <span class="keywordtype">bool</span> OnlyLocalDecls,</div>
+<div class="line"><a name="l00683"></a><span class="lineno"> 683</span> <a class="code" href="classclang_1_1ASTUnit.html#af409234e858b8fcd48bcd81bd86ee9e5" title="A mapping from a file name to the memory buffer that stores the remapped contents of that file...">RemappedFile</a> *RemappedFiles,</div>
+<div class="line"><a name="l00684"></a><span class="lineno"> 684</span> <span class="keywordtype">unsigned</span> NumRemappedFiles,</div>
+<div class="line"><a name="l00685"></a><span class="lineno"> 685</span> <span class="keywordtype">bool</span> CaptureDiagnostics,</div>
+<div class="line"><a name="l00686"></a><span class="lineno"> 686</span> <span class="keywordtype">bool</span> AllowPCHWithCompilerErrors,</div>
+<div class="line"><a name="l00687"></a><span class="lineno"> 687</span> <span class="keywordtype">bool</span> UserFilesAreVolatile) {</div>
+<div class="line"><a name="l00688"></a><span class="lineno"> 688</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTUnit></a> AST(<span class="keyword">new</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a>(<span class="keyword">true</span>));</div>
+<div class="line"><a name="l00689"></a><span class="lineno"> 689</span> </div>
+<div class="line"><a name="l00690"></a><span class="lineno"> 690</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l00691"></a><span class="lineno"> 691</span> llvm::CrashRecoveryContextCleanupRegistrar<ASTUnit></div>
+<div class="line"><a name="l00692"></a><span class="lineno"> 692</span> ASTUnitCleanup(AST.get());</div>
+<div class="line"><a name="l00693"></a><span class="lineno"> 693</span> llvm::CrashRecoveryContextCleanupRegistrar<<a class="code" href="classclang_1_1DiagnosticsEngine.html" title="Concrete class used by the front-end to report problems and issues.">DiagnosticsEngine</a>,</div>
+<div class="line"><a name="l00694"></a><span class="lineno"> 694</span> llvm::CrashRecoveryContextReleaseRefCleanup<DiagnosticsEngine> ></div>
+<div class="line"><a name="l00695"></a><span class="lineno"> 695</span> DiagCleanup(Diags.getPtr());</div>
+<div class="line"><a name="l00696"></a><span class="lineno"> 696</span> </div>
+<div class="line"><a name="l00697"></a><span class="lineno"> 697</span> ConfigureDiags(Diags, 0, 0, *AST, CaptureDiagnostics);</div>
+<div class="line"><a name="l00698"></a><span class="lineno"> 698</span> </div>
+<div class="line"><a name="l00699"></a><span class="lineno"> 699</span> AST->OnlyLocalDecls = OnlyLocalDecls;</div>
+<div class="line"><a name="l00700"></a><span class="lineno"> 700</span> AST->CaptureDiagnostics = CaptureDiagnostics;</div>
+<div class="line"><a name="l00701"></a><span class="lineno"> 701</span> AST->Diagnostics = Diags;</div>
+<div class="line"><a name="l00702"></a><span class="lineno"> 702</span> AST->FileMgr = <span class="keyword">new</span> <a class="code" href="classclang_1_1FileManager.html" title="Implements support for file system lookup, file system caching, and directory search management...">FileManager</a>(FileSystemOpts);</div>
+<div class="line"><a name="l00703"></a><span class="lineno"> 703</span> AST->UserFilesAreVolatile = UserFilesAreVolatile;</div>
+<div class="line"><a name="l00704"></a><span class="lineno"> 704</span> AST->SourceMgr = <span class="keyword">new</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a>(AST->getDiagnostics(),</div>
+<div class="line"><a name="l00705"></a><span class="lineno"> 705</span> AST->getFileManager(),</div>
+<div class="line"><a name="l00706"></a><span class="lineno"> 706</span> UserFilesAreVolatile);</div>
+<div class="line"><a name="l00707"></a><span class="lineno"> 707</span> AST->HSOpts = <span class="keyword">new</span> <a class="code" href="classclang_1_1HeaderSearchOptions.html">HeaderSearchOptions</a>();</div>
+<div class="line"><a name="l00708"></a><span class="lineno"> 708</span> </div>
+<div class="line"><a name="l00709"></a><span class="lineno"> 709</span> AST->HeaderInfo.reset(<span class="keyword">new</span> <a class="code" href="classclang_1_1HeaderSearch.html" title="Encapsulates the information needed to find the file referenced by a #include or #include_next, (sub-)framework lookup, etc.">HeaderSearch</a>(AST->HSOpts,</div>
+<div class="line"><a name="l00710"></a><span class="lineno"> 710</span> AST->getSourceManager(),</div>
+<div class="line"><a name="l00711"></a><span class="lineno"> 711</span> AST->getDiagnostics(),</div>
+<div class="line"><a name="l00712"></a><span class="lineno"> 712</span> AST->ASTFileLangOpts,</div>
+<div class="line"><a name="l00713"></a><span class="lineno"> 713</span> <span class="comment">/*Target=*/</span>0));</div>
+<div class="line"><a name="l00714"></a><span class="lineno"> 714</span> </div>
+<div class="line"><a name="l00715"></a><span class="lineno"> 715</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0; I != NumRemappedFiles; ++I) {</div>
+<div class="line"><a name="l00716"></a><span class="lineno"> 716</span> <a class="code" href="classclang_1_1ASTUnit.html#ae83ad523bb8f9f39961398ae5e7e5687">FilenameOrMemBuf</a> fileOrBuf = RemappedFiles[I].second;</div>
+<div class="line"><a name="l00717"></a><span class="lineno"> 717</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> llvm::MemoryBuffer *</div>
+<div class="line"><a name="l00718"></a><span class="lineno"> 718</span> memBuf = fileOrBuf.dyn_cast<<span class="keyword">const</span> llvm::MemoryBuffer *>()) {</div>
+<div class="line"><a name="l00719"></a><span class="lineno"> 719</span> <span class="comment">// Create the file entry for the file that we're mapping from.</span></div>
+<div class="line"><a name="l00720"></a><span class="lineno"> 720</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *FromFile</div>
+<div class="line"><a name="l00721"></a><span class="lineno"> 721</span> = AST->getFileManager().getVirtualFile(RemappedFiles[I].first,</div>
+<div class="line"><a name="l00722"></a><span class="lineno"> 722</span> memBuf->getBufferSize(),</div>
+<div class="line"><a name="l00723"></a><span class="lineno"> 723</span> 0);</div>
+<div class="line"><a name="l00724"></a><span class="lineno"> 724</span> <span class="keywordflow">if</span> (!FromFile) {</div>
+<div class="line"><a name="l00725"></a><span class="lineno"> 725</span> AST->getDiagnostics().Report(diag::err_fe_remap_missing_from_file)</div>
+<div class="line"><a name="l00726"></a><span class="lineno"> 726</span> << RemappedFiles[I].first;</div>
+<div class="line"><a name="l00727"></a><span class="lineno"> 727</span> <span class="keyword">delete</span> memBuf;</div>
+<div class="line"><a name="l00728"></a><span class="lineno"> 728</span> <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l00729"></a><span class="lineno"> 729</span> }</div>
+<div class="line"><a name="l00730"></a><span class="lineno"> 730</span> </div>
+<div class="line"><a name="l00731"></a><span class="lineno"> 731</span> <span class="comment">// Override the contents of the "from" file with the contents of</span></div>
+<div class="line"><a name="l00732"></a><span class="lineno"> 732</span> <span class="comment">// the "to" file.</span></div>
+<div class="line"><a name="l00733"></a><span class="lineno"> 733</span> AST->getSourceManager().overrideFileContents(FromFile, memBuf);</div>
+<div class="line"><a name="l00734"></a><span class="lineno"> 734</span> </div>
+<div class="line"><a name="l00735"></a><span class="lineno"> 735</span> } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l00736"></a><span class="lineno"> 736</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *fname = fileOrBuf.get<<span class="keyword">const</span> <span class="keywordtype">char</span> *>();</div>
+<div class="line"><a name="l00737"></a><span class="lineno"> 737</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *ToFile = AST->FileMgr->getFile(fname);</div>
+<div class="line"><a name="l00738"></a><span class="lineno"> 738</span> <span class="keywordflow">if</span> (!ToFile) {</div>
+<div class="line"><a name="l00739"></a><span class="lineno"> 739</span> AST->getDiagnostics().Report(diag::err_fe_remap_missing_to_file)</div>
+<div class="line"><a name="l00740"></a><span class="lineno"> 740</span> << RemappedFiles[I].first << fname;</div>
+<div class="line"><a name="l00741"></a><span class="lineno"> 741</span> <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l00742"></a><span class="lineno"> 742</span> }</div>
+<div class="line"><a name="l00743"></a><span class="lineno"> 743</span> </div>
+<div class="line"><a name="l00744"></a><span class="lineno"> 744</span> <span class="comment">// Create the file entry for the file that we're mapping from.</span></div>
+<div class="line"><a name="l00745"></a><span class="lineno"> 745</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *FromFile</div>
+<div class="line"><a name="l00746"></a><span class="lineno"> 746</span> = AST->getFileManager().getVirtualFile(RemappedFiles[I].first,</div>
+<div class="line"><a name="l00747"></a><span class="lineno"> 747</span> ToFile->getSize(),</div>
+<div class="line"><a name="l00748"></a><span class="lineno"> 748</span> 0);</div>
+<div class="line"><a name="l00749"></a><span class="lineno"> 749</span> <span class="keywordflow">if</span> (!FromFile) {</div>
+<div class="line"><a name="l00750"></a><span class="lineno"> 750</span> AST->getDiagnostics().Report(diag::err_fe_remap_missing_from_file)</div>
+<div class="line"><a name="l00751"></a><span class="lineno"> 751</span> << RemappedFiles[I].first;</div>
+<div class="line"><a name="l00752"></a><span class="lineno"> 752</span> <span class="keyword">delete</span> memBuf;</div>
+<div class="line"><a name="l00753"></a><span class="lineno"> 753</span> <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l00754"></a><span class="lineno"> 754</span> }</div>
+<div class="line"><a name="l00755"></a><span class="lineno"> 755</span> </div>
+<div class="line"><a name="l00756"></a><span class="lineno"> 756</span> <span class="comment">// Override the contents of the "from" file with the contents of</span></div>
+<div class="line"><a name="l00757"></a><span class="lineno"> 757</span> <span class="comment">// the "to" file.</span></div>
+<div class="line"><a name="l00758"></a><span class="lineno"> 758</span> AST->getSourceManager().overrideFileContents(FromFile, ToFile);</div>
+<div class="line"><a name="l00759"></a><span class="lineno"> 759</span> }</div>
+<div class="line"><a name="l00760"></a><span class="lineno"> 760</span> }</div>
+<div class="line"><a name="l00761"></a><span class="lineno"> 761</span> </div>
+<div class="line"><a name="l00762"></a><span class="lineno"> 762</span> <span class="comment">// Gather Info for preprocessor construction later on.</span></div>
+<div class="line"><a name="l00763"></a><span class="lineno"> 763</span> </div>
+<div class="line"><a name="l00764"></a><span class="lineno"> 764</span> <a class="code" href="classclang_1_1HeaderSearch.html" title="Encapsulates the information needed to find the file referenced by a #include or #include_next, (sub-)framework lookup, etc.">HeaderSearch</a> &HeaderInfo = *AST->HeaderInfo.get();</div>
+<div class="line"><a name="l00765"></a><span class="lineno"> 765</span> <span class="keywordtype">unsigned</span> Counter;</div>
+<div class="line"><a name="l00766"></a><span class="lineno"> 766</span> </div>
+<div class="line"><a name="l00767"></a><span class="lineno"> 767</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTReader></a> Reader;</div>
+<div class="line"><a name="l00768"></a><span class="lineno"> 768</span> </div>
+<div class="line"><a name="l00769"></a><span class="lineno"> 769</span> AST->PP = <span class="keyword">new</span> <a class="code" href="classclang_1_1Preprocessor.html">Preprocessor</a>(<span class="keyword">new</span> <a class="code" href="classclang_1_1PreprocessorOptions.html">PreprocessorOptions</a>(),</div>
+<div class="line"><a name="l00770"></a><span class="lineno"> 770</span> AST->getDiagnostics(), AST->ASTFileLangOpts,</div>
+<div class="line"><a name="l00771"></a><span class="lineno"> 771</span> <span class="comment">/*Target=*/</span>0, AST->getSourceManager(), HeaderInfo, </div>
+<div class="line"><a name="l00772"></a><span class="lineno"> 772</span> *AST, </div>
+<div class="line"><a name="l00773"></a><span class="lineno"> 773</span> <span class="comment">/*IILookup=*/</span>0,</div>
+<div class="line"><a name="l00774"></a><span class="lineno"> 774</span> <span class="comment">/*OwnsHeaderSearch=*/</span><span class="keyword">false</span>,</div>
+<div class="line"><a name="l00775"></a><span class="lineno"> 775</span> <span class="comment">/*DelayInitialization=*/</span><span class="keyword">true</span>);</div>
+<div class="line"><a name="l00776"></a><span class="lineno"> 776</span> <a class="code" href="classclang_1_1Preprocessor.html">Preprocessor</a> &PP = *AST->PP;</div>
+<div class="line"><a name="l00777"></a><span class="lineno"> 777</span> </div>
+<div class="line"><a name="l00778"></a><span class="lineno"> 778</span> AST->Ctx = <span class="keyword">new</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a>(AST->ASTFileLangOpts,</div>
+<div class="line"><a name="l00779"></a><span class="lineno"> 779</span> AST->getSourceManager(),</div>
+<div class="line"><a name="l00780"></a><span class="lineno"> 780</span> <span class="comment">/*Target=*/</span>0,</div>
+<div class="line"><a name="l00781"></a><span class="lineno"> 781</span> PP.getIdentifierTable(),</div>
+<div class="line"><a name="l00782"></a><span class="lineno"> 782</span> PP.getSelectorTable(),</div>
+<div class="line"><a name="l00783"></a><span class="lineno"> 783</span> PP.getBuiltinInfo(),</div>
+<div class="line"><a name="l00784"></a><span class="lineno"> 784</span> <span class="comment">/* size_reserve = */</span>0,</div>
+<div class="line"><a name="l00785"></a><span class="lineno"> 785</span> <span class="comment">/*DelayInitialization=*/</span><span class="keyword">true</span>);</div>
+<div class="line"><a name="l00786"></a><span class="lineno"> 786</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &<a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a> = *AST->Ctx;</div>
+<div class="line"><a name="l00787"></a><span class="lineno"> 787</span> </div>
+<div class="line"><a name="l00788"></a><span class="lineno"> 788</span> <span class="keywordtype">bool</span> disableValid = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00789"></a><span class="lineno"> 789</span> <span class="keywordflow">if</span> (::getenv(<span class="stringliteral">"LIBCLANG_DISABLE_PCH_VALIDATION"</span>))</div>
+<div class="line"><a name="l00790"></a><span class="lineno"> 790</span> disableValid = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00791"></a><span class="lineno"> 791</span> Reader.reset(<span class="keyword">new</span> <a class="code" href="classclang_1_1ASTReader.html" title="Reads an AST files chain containing the contents of a translation unit.">ASTReader</a>(PP, Context,</div>
+<div class="line"><a name="l00792"></a><span class="lineno"> 792</span> <span class="comment">/*isysroot=*/</span><span class="stringliteral">""</span>,</div>
+<div class="line"><a name="l00793"></a><span class="lineno"> 793</span> <span class="comment">/*DisableValidation=*/</span>disableValid,</div>
+<div class="line"><a name="l00794"></a><span class="lineno"> 794</span> AllowPCHWithCompilerErrors));</div>
+<div class="line"><a name="l00795"></a><span class="lineno"> 795</span> </div>
+<div class="line"><a name="l00796"></a><span class="lineno"> 796</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l00797"></a><span class="lineno"> 797</span> llvm::CrashRecoveryContextCleanupRegistrar<ASTReader></div>
+<div class="line"><a name="l00798"></a><span class="lineno"> 798</span> ReaderCleanup(Reader.get());</div>
+<div class="line"><a name="l00799"></a><span class="lineno"> 799</span> </div>
+<div class="line"><a name="l00800"></a><span class="lineno"> 800</span> Reader->setListener(<span class="keyword">new</span> ASTInfoCollector(*AST->PP, Context,</div>
+<div class="line"><a name="l00801"></a><span class="lineno"> 801</span> AST->ASTFileLangOpts,</div>
+<div class="line"><a name="l00802"></a><span class="lineno"> 802</span> AST->TargetOpts, AST->Target, </div>
+<div class="line"><a name="l00803"></a><span class="lineno"> 803</span> Counter));</div>
+<div class="line"><a name="l00804"></a><span class="lineno"> 804</span> </div>
+<div class="line"><a name="l00805"></a><span class="lineno"> 805</span> <span class="keywordflow">switch</span> (Reader->ReadAST(Filename, <a class="code" href="namespaceclang_1_1serialization.html#ac4e913a3b4b4721b8995cb7dd6d9bb1ea56f9f6ae59033d66f4f50e4fb149cce3" title="File is a PCH file treated as the actual main file.">serialization::MK_MainFile</a>,</div>
+<div class="line"><a name="l00806"></a><span class="lineno"> 806</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a>(), <a class="code" href="classclang_1_1ASTReader.html#a1ef10402198040c36f537a57bc633ca0a2d2271af889b513da2da100a2ede0194" title="The client can't handle any AST loading failures.">ASTReader::ARR_None</a>)) {</div>
+<div class="line"><a name="l00807"></a><span class="lineno"> 807</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ASTReader.html#ab2e8cada1e79a39d27461e0137550243a22a203378a875589f6013335def54572" title="The control block was read successfully. Aside from failures, the AST file is safe to read into the c...">ASTReader::Success</a>:</div>
+<div class="line"><a name="l00808"></a><span class="lineno"> 808</span> <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l00809"></a><span class="lineno"> 809</span> </div>
+<div class="line"><a name="l00810"></a><span class="lineno"> 810</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ASTReader.html#ab2e8cada1e79a39d27461e0137550243ad2ad62e53379946597e50d557e8ef953" title="The AST file itself appears corrupted.">ASTReader::Failure</a>:</div>
+<div class="line"><a name="l00811"></a><span class="lineno"> 811</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ASTReader.html#ab2e8cada1e79a39d27461e0137550243aec84e2a366d426f45d8d9e9e2509bfb2" title="The AST file was missing.">ASTReader::Missing</a>:</div>
+<div class="line"><a name="l00812"></a><span class="lineno"> 812</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ASTReader.html#ab2e8cada1e79a39d27461e0137550243a955fa046aaf1f1a1a5c48d21c24e8863" title="The AST file is out-of-date relative to its input files, and needs to be regenerated.">ASTReader::OutOfDate</a>:</div>
+<div class="line"><a name="l00813"></a><span class="lineno"> 813</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ASTReader.html#ab2e8cada1e79a39d27461e0137550243ae145b87ff56754261c9f144c9d0adf73" title="The AST file was written by a different version of Clang.">ASTReader::VersionMismatch</a>:</div>
+<div class="line"><a name="l00814"></a><span class="lineno"> 814</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ASTReader.html#ab2e8cada1e79a39d27461e0137550243a2b295dac09a7e70bca0730292a5ed436" title="The AST file was writtten with a different language/target configuration.">ASTReader::ConfigurationMismatch</a>:</div>
+<div class="line"><a name="l00815"></a><span class="lineno"> 815</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ASTReader.html#ab2e8cada1e79a39d27461e0137550243aea1a4079a594b06c0f15d4d670bef68d" title="The AST file has errors.">ASTReader::HadErrors</a>:</div>
+<div class="line"><a name="l00816"></a><span class="lineno"> 816</span> AST->getDiagnostics().Report(diag::err_fe_unable_to_load_pch);</div>
+<div class="line"><a name="l00817"></a><span class="lineno"> 817</span> <span class="keywordflow">return</span> <a class="code" href="stddef_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>;</div>
+<div class="line"><a name="l00818"></a><span class="lineno"> 818</span> }</div>
+<div class="line"><a name="l00819"></a><span class="lineno"> 819</span> </div>
+<div class="line"><a name="l00820"></a><span class="lineno"> 820</span> AST->OriginalSourceFile = Reader->getOriginalSourceFile();</div>
+<div class="line"><a name="l00821"></a><span class="lineno"> 821</span> </div>
+<div class="line"><a name="l00822"></a><span class="lineno"> 822</span> PP.setCounterValue(Counter);</div>
+<div class="line"><a name="l00823"></a><span class="lineno"> 823</span> </div>
+<div class="line"><a name="l00824"></a><span class="lineno"> 824</span> <span class="comment">// Attach the AST reader to the AST context as an external AST</span></div>
+<div class="line"><a name="l00825"></a><span class="lineno"> 825</span> <span class="comment">// source, so that declarations will be deserialized from the</span></div>
+<div class="line"><a name="l00826"></a><span class="lineno"> 826</span> <span class="comment">// AST file as needed.</span></div>
+<div class="line"><a name="l00827"></a><span class="lineno"> 827</span> <a class="code" href="classclang_1_1ASTReader.html" title="Reads an AST files chain containing the contents of a translation unit.">ASTReader</a> *ReaderPtr = Reader.get();</div>
+<div class="line"><a name="l00828"></a><span class="lineno"> 828</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ExternalASTSource></a> Source(Reader.take());</div>
+<div class="line"><a name="l00829"></a><span class="lineno"> 829</span> </div>
+<div class="line"><a name="l00830"></a><span class="lineno"> 830</span> <span class="comment">// Unregister the cleanup for ASTReader. It will get cleaned up</span></div>
+<div class="line"><a name="l00831"></a><span class="lineno"> 831</span> <span class="comment">// by the ASTUnit cleanup.</span></div>
+<div class="line"><a name="l00832"></a><span class="lineno"> 832</span> ReaderCleanup.unregister();</div>
+<div class="line"><a name="l00833"></a><span class="lineno"> 833</span> </div>
+<div class="line"><a name="l00834"></a><span class="lineno"> 834</span> Context.setExternalSource(Source);</div>
+<div class="line"><a name="l00835"></a><span class="lineno"> 835</span> </div>
+<div class="line"><a name="l00836"></a><span class="lineno"> 836</span> <span class="comment">// Create an AST consumer, even though it isn't used.</span></div>
+<div class="line"><a name="l00837"></a><span class="lineno"> 837</span> AST->Consumer.reset(<span class="keyword">new</span> <a class="code" href="classclang_1_1ASTConsumer.html">ASTConsumer</a>);</div>
+<div class="line"><a name="l00838"></a><span class="lineno"> 838</span> </div>
+<div class="line"><a name="l00839"></a><span class="lineno"> 839</span> <span class="comment">// Create a semantic analysis object and tell the AST reader about it.</span></div>
+<div class="line"><a name="l00840"></a><span class="lineno"> 840</span> AST->TheSema.reset(<span class="keyword">new</span> <a class="code" href="classclang_1_1Sema.html" title="Sema - This implements semantic analysis and AST building for C.">Sema</a>(PP, Context, *AST->Consumer));</div>
+<div class="line"><a name="l00841"></a><span class="lineno"> 841</span> AST->TheSema->Initialize();</div>
+<div class="line"><a name="l00842"></a><span class="lineno"> 842</span> ReaderPtr-><a class="code" href="classclang_1_1ASTReader.html#af47a3204294bf79be1ed3fa4749b7904" title="Initialize the semantic source with the Sema instance being used to perform semantic analysis on the ...">InitializeSema</a>(*AST->TheSema);</div>
+<div class="line"><a name="l00843"></a><span class="lineno"> 843</span> AST->Reader = ReaderPtr;</div>
+<div class="line"><a name="l00844"></a><span class="lineno"> 844</span> </div>
+<div class="line"><a name="l00845"></a><span class="lineno"> 845</span> <span class="comment">// Tell the diagnostic client that we have started a source file.</span></div>
+<div class="line"><a name="l00846"></a><span class="lineno"> 846</span> AST->getDiagnostics().getClient()->BeginSourceFile(Context.getLangOpts(),&PP);</div>
+<div class="line"><a name="l00847"></a><span class="lineno"> 847</span> </div>
+<div class="line"><a name="l00848"></a><span class="lineno"> 848</span> <span class="keywordflow">return</span> AST.take();</div>
+<div class="line"><a name="l00849"></a><span class="lineno"> 849</span> }</div>
+<div class="line"><a name="l00850"></a><span class="lineno"> 850</span> </div>
+<div class="line"><a name="l00851"></a><span class="lineno"> 851</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l00852"></a><span class="lineno"> 852</span> <span class="comment"></span></div>
+<div class="line"><a name="l00853"></a><span class="lineno"> 853</span> <span class="comment">/// \brief Preprocessor callback class that updates a hash value with the names </span></div>
+<div class="line"><a name="l00854"></a><span class="lineno"> 854</span> <span class="comment">/// of all macros that have been defined by the translation unit.</span></div>
+<div class="line"><a name="l00855"></a><span class="lineno"> 855</span> <span class="comment"></span><span class="keyword">class </span>MacroDefinitionTrackerPPCallbacks : <span class="keyword">public</span> <a class="code" href="classclang_1_1PPCallbacks.html" title="This interface provides a way to observe the actions of the preprocessor as it does its thing...">PPCallbacks</a> {</div>
+<div class="line"><a name="l00856"></a><span class="lineno"> 856</span> <span class="keywordtype">unsigned</span> &Hash;</div>
+<div class="line"><a name="l00857"></a><span class="lineno"> 857</span> </div>
+<div class="line"><a name="l00858"></a><span class="lineno"> 858</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00859"></a><span class="lineno"> 859</span> <span class="keyword">explicit</span> MacroDefinitionTrackerPPCallbacks(<span class="keywordtype">unsigned</span> &Hash) : Hash(Hash) { }</div>
+<div class="line"><a name="l00860"></a><span class="lineno"> 860</span> </div>
+<div class="line"><a name="l00861"></a><span class="lineno"> 861</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> MacroDefined(<span class="keyword">const</span> <a class="code" href="classclang_1_1Token.html">Token</a> &MacroNameTok,</div>
+<div class="line"><a name="l00862"></a><span class="lineno"> 862</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1MacroDirective.html" title="Encapsulates changes to the "macros namespace" (the location where the macro name became active...">MacroDirective</a> *MD) {</div>
+<div class="line"><a name="l00863"></a><span class="lineno"> 863</span> Hash = llvm::HashString(MacroNameTok.<a class="code" href="classclang_1_1Token.html#a0f86a35069d2f1917402adba7f4f6a7b">getIdentifierInfo</a>()-><a class="code" href="classclang_1_1IdentifierInfo.html#a94caec6a16e508e8ca39eacd278bd2c5" title="Return the actual identifier string.">getName</a>(), Hash);</div>
+<div class="line"><a name="l00864"></a><span class="lineno"> 864</span> }</div>
+<div class="line"><a name="l00865"></a><span class="lineno"> 865</span> };</div>
+<div class="line"><a name="l00866"></a><span class="lineno"> 866</span> <span class="comment"></span></div>
+<div class="line"><a name="l00867"></a><span class="lineno"> 867</span> <span class="comment">/// \brief Add the given declaration to the hash of all top-level entities.</span></div>
+<div class="line"><a name="l00868"></a><span class="lineno"> 868</span> <span class="comment"></span><span class="keywordtype">void</span> AddTopLevelDeclarationToHash(<a class="code" href="classclang_1_1Decl.html">Decl</a> *D, <span class="keywordtype">unsigned</span> &Hash) {</div>
+<div class="line"><a name="l00869"></a><span class="lineno"> 869</span> <span class="keywordflow">if</span> (!D)</div>
+<div class="line"><a name="l00870"></a><span class="lineno"> 870</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00871"></a><span class="lineno"> 871</span> </div>
+<div class="line"><a name="l00872"></a><span class="lineno"> 872</span> <a class="code" href="classclang_1_1DeclContext.html">DeclContext</a> *DC = D-><a class="code" href="classclang_1_1Decl.html#af67e1a1d24dcc51093b95dbcf68d4288">getDeclContext</a>();</div>
+<div class="line"><a name="l00873"></a><span class="lineno"> 873</span> <span class="keywordflow">if</span> (!DC)</div>
+<div class="line"><a name="l00874"></a><span class="lineno"> 874</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00875"></a><span class="lineno"> 875</span> </div>
+<div class="line"><a name="l00876"></a><span class="lineno"> 876</span> <span class="keywordflow">if</span> (!(DC-><a class="code" href="classclang_1_1DeclContext.html#add710d53ebeab05385a08e978862c149">isTranslationUnit</a>() || DC-><a class="code" href="classclang_1_1DeclContext.html#ad3f371a23f2b8f92275ef63817701e4e" title="Find the parent context of this context that will be used for unqualified name lookup.">getLookupParent</a>()-><a class="code" href="classclang_1_1DeclContext.html#add710d53ebeab05385a08e978862c149">isTranslationUnit</a>()))</div>
+<div class="line"><a name="l00877"></a><span class="lineno"> 877</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00878"></a><span class="lineno"> 878</span> </div>
+<div class="line"><a name="l00879"></a><span class="lineno"> 879</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1NamedDecl.html">NamedDecl</a> *ND = dyn_cast<NamedDecl>(D)) {</div>
+<div class="line"><a name="l00880"></a><span class="lineno"> 880</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1EnumDecl.html">EnumDecl</a> *EnumD = dyn_cast<EnumDecl>(D)) {</div>
+<div class="line"><a name="l00881"></a><span class="lineno"> 881</span> <span class="comment">// For an unscoped enum include the enumerators in the hash since they</span></div>
+<div class="line"><a name="l00882"></a><span class="lineno"> 882</span> <span class="comment">// enter the top-level namespace.</span></div>
+<div class="line"><a name="l00883"></a><span class="lineno"> 883</span> <span class="keywordflow">if</span> (!EnumD->isScoped()) {</div>
+<div class="line"><a name="l00884"></a><span class="lineno"> 884</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1DeclContext_1_1specific__decl__iterator.html">EnumDecl::enumerator_iterator</a> EI = EnumD->enumerator_begin(),</div>
+<div class="line"><a name="l00885"></a><span class="lineno"> 885</span> EE = EnumD->enumerator_end(); EI != EE; ++EI) {</div>
+<div class="line"><a name="l00886"></a><span class="lineno"> 886</span> <span class="keywordflow">if</span> ((*EI)->getIdentifier())</div>
+<div class="line"><a name="l00887"></a><span class="lineno"> 887</span> Hash = llvm::HashString((*EI)->getIdentifier()->getName(), Hash);</div>
+<div class="line"><a name="l00888"></a><span class="lineno"> 888</span> }</div>
+<div class="line"><a name="l00889"></a><span class="lineno"> 889</span> }</div>
+<div class="line"><a name="l00890"></a><span class="lineno"> 890</span> }</div>
+<div class="line"><a name="l00891"></a><span class="lineno"> 891</span> </div>
+<div class="line"><a name="l00892"></a><span class="lineno"> 892</span> <span class="keywordflow">if</span> (ND->getIdentifier())</div>
+<div class="line"><a name="l00893"></a><span class="lineno"> 893</span> Hash = llvm::HashString(ND->getIdentifier()->getName(), Hash);</div>
+<div class="line"><a name="l00894"></a><span class="lineno"> 894</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1DeclarationName.html">DeclarationName</a> Name = ND->getDeclName()) {</div>
+<div class="line"><a name="l00895"></a><span class="lineno"> 895</span> std::string NameStr = Name.getAsString();</div>
+<div class="line"><a name="l00896"></a><span class="lineno"> 896</span> Hash = llvm::HashString(NameStr, Hash);</div>
+<div class="line"><a name="l00897"></a><span class="lineno"> 897</span> }</div>
+<div class="line"><a name="l00898"></a><span class="lineno"> 898</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00899"></a><span class="lineno"> 899</span> }</div>
+<div class="line"><a name="l00900"></a><span class="lineno"> 900</span> </div>
+<div class="line"><a name="l00901"></a><span class="lineno"> 901</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1ImportDecl.html" title="Describes a module import declaration, which makes the contents of the named module visible in the cu...">ImportDecl</a> *ImportD = dyn_cast<ImportDecl>(D)) {</div>
+<div class="line"><a name="l00902"></a><span class="lineno"> 902</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1Module.html" title="Describes a module or submodule.">Module</a> *Mod = ImportD->getImportedModule()) {</div>
+<div class="line"><a name="l00903"></a><span class="lineno"> 903</span> std::string ModName = Mod->getFullModuleName();</div>
+<div class="line"><a name="l00904"></a><span class="lineno"> 904</span> Hash = llvm::HashString(ModName, Hash);</div>
+<div class="line"><a name="l00905"></a><span class="lineno"> 905</span> }</div>
+<div class="line"><a name="l00906"></a><span class="lineno"> 906</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00907"></a><span class="lineno"> 907</span> }</div>
+<div class="line"><a name="l00908"></a><span class="lineno"> 908</span> }</div>
+<div class="line"><a name="l00909"></a><span class="lineno"> 909</span> </div>
+<div class="line"><a name="l00910"></a><span class="lineno"> 910</span> <span class="keyword">class </span>TopLevelDeclTrackerConsumer : <span class="keyword">public</span> <a class="code" href="classclang_1_1ASTConsumer.html">ASTConsumer</a> {</div>
+<div class="line"><a name="l00911"></a><span class="lineno"> 911</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &Unit;</div>
+<div class="line"><a name="l00912"></a><span class="lineno"> 912</span> <span class="keywordtype">unsigned</span> &Hash;</div>
+<div class="line"><a name="l00913"></a><span class="lineno"> 913</span> </div>
+<div class="line"><a name="l00914"></a><span class="lineno"> 914</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00915"></a><span class="lineno"> 915</span> TopLevelDeclTrackerConsumer(<a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &_Unit, <span class="keywordtype">unsigned</span> &Hash)</div>
+<div class="line"><a name="l00916"></a><span class="lineno"> 916</span> : Unit(_Unit), Hash(Hash) {</div>
+<div class="line"><a name="l00917"></a><span class="lineno"> 917</span> Hash = 0;</div>
+<div class="line"><a name="l00918"></a><span class="lineno"> 918</span> }</div>
+<div class="line"><a name="l00919"></a><span class="lineno"> 919</span> </div>
+<div class="line"><a name="l00920"></a><span class="lineno"> 920</span> <span class="keywordtype">void</span> handleTopLevelDecl(<a class="code" href="classclang_1_1Decl.html">Decl</a> *D) {</div>
+<div class="line"><a name="l00921"></a><span class="lineno"> 921</span> <span class="keywordflow">if</span> (!D)</div>
+<div class="line"><a name="l00922"></a><span class="lineno"> 922</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00923"></a><span class="lineno"> 923</span> </div>
+<div class="line"><a name="l00924"></a><span class="lineno"> 924</span> <span class="comment">// FIXME: Currently ObjC method declarations are incorrectly being</span></div>
+<div class="line"><a name="l00925"></a><span class="lineno"> 925</span> <span class="comment">// reported as top-level declarations, even though their DeclContext</span></div>
+<div class="line"><a name="l00926"></a><span class="lineno"> 926</span> <span class="comment">// is the containing ObjC @interface/@implementation. This is a</span></div>
+<div class="line"><a name="l00927"></a><span class="lineno"> 927</span> <span class="comment">// fundamental problem in the parser right now.</span></div>
+<div class="line"><a name="l00928"></a><span class="lineno"> 928</span> <span class="keywordflow">if</span> (isa<ObjCMethodDecl>(D))</div>
+<div class="line"><a name="l00929"></a><span class="lineno"> 929</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00930"></a><span class="lineno"> 930</span> </div>
+<div class="line"><a name="l00931"></a><span class="lineno"> 931</span> AddTopLevelDeclarationToHash(D, Hash);</div>
+<div class="line"><a name="l00932"></a><span class="lineno"> 932</span> Unit.addTopLevelDecl(D);</div>
+<div class="line"><a name="l00933"></a><span class="lineno"> 933</span> </div>
+<div class="line"><a name="l00934"></a><span class="lineno"> 934</span> handleFileLevelDecl(D);</div>
+<div class="line"><a name="l00935"></a><span class="lineno"> 935</span> }</div>
+<div class="line"><a name="l00936"></a><span class="lineno"> 936</span> </div>
+<div class="line"><a name="l00937"></a><span class="lineno"> 937</span> <span class="keywordtype">void</span> handleFileLevelDecl(<a class="code" href="classclang_1_1Decl.html">Decl</a> *D) {</div>
+<div class="line"><a name="l00938"></a><span class="lineno"> 938</span> Unit.addFileLevelDecl(D);</div>
+<div class="line"><a name="l00939"></a><span class="lineno"> 939</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1NamespaceDecl.html" title="NamespaceDecl - Represent a C++ namespace.">NamespaceDecl</a> *NSD = dyn_cast<NamespaceDecl>(D)) {</div>
+<div class="line"><a name="l00940"></a><span class="lineno"> 940</span> <span class="keywordflow">for</span> (NamespaceDecl::decl_iterator</div>
+<div class="line"><a name="l00941"></a><span class="lineno"> 941</span> I = NSD->decls_begin(), E = NSD->decls_end(); I != E; ++I)</div>
+<div class="line"><a name="l00942"></a><span class="lineno"> 942</span> handleFileLevelDecl(*I);</div>
+<div class="line"><a name="l00943"></a><span class="lineno"> 943</span> }</div>
+<div class="line"><a name="l00944"></a><span class="lineno"> 944</span> }</div>
+<div class="line"><a name="l00945"></a><span class="lineno"> 945</span> </div>
+<div class="line"><a name="l00946"></a><span class="lineno"> 946</span> <span class="keywordtype">bool</span> HandleTopLevelDecl(<a class="code" href="classclang_1_1DeclGroupRef.html">DeclGroupRef</a> D) {</div>
+<div class="line"><a name="l00947"></a><span class="lineno"> 947</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1Decl.html">DeclGroupRef::iterator</a> it = D.<a class="code" href="classclang_1_1DeclGroupRef.html#a6992d5c8adb23509dbdd5f0c6e302a39">begin</a>(), ie = D.<a class="code" href="classclang_1_1DeclGroupRef.html#a6a4708b4425390f3d2c2f002a765e413">end</a>(); it != ie; ++it)</div>
+<div class="line"><a name="l00948"></a><span class="lineno"> 948</span> handleTopLevelDecl(*it);</div>
+<div class="line"><a name="l00949"></a><span class="lineno"> 949</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00950"></a><span class="lineno"> 950</span> }</div>
+<div class="line"><a name="l00951"></a><span class="lineno"> 951</span> </div>
+<div class="line"><a name="l00952"></a><span class="lineno"> 952</span> <span class="comment">// We're not interested in "interesting" decls.</span></div>
+<div class="line"><a name="l00953"></a><span class="lineno"> 953</span> <span class="keywordtype">void</span> HandleInterestingDecl(<a class="code" href="classclang_1_1DeclGroupRef.html">DeclGroupRef</a>) {}</div>
+<div class="line"><a name="l00954"></a><span class="lineno"> 954</span> </div>
+<div class="line"><a name="l00955"></a><span class="lineno"> 955</span> <span class="keywordtype">void</span> HandleTopLevelDeclInObjCContainer(<a class="code" href="classclang_1_1DeclGroupRef.html">DeclGroupRef</a> D) {</div>
+<div class="line"><a name="l00956"></a><span class="lineno"> 956</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1Decl.html">DeclGroupRef::iterator</a> it = D.<a class="code" href="classclang_1_1DeclGroupRef.html#a6992d5c8adb23509dbdd5f0c6e302a39">begin</a>(), ie = D.<a class="code" href="classclang_1_1DeclGroupRef.html#a6a4708b4425390f3d2c2f002a765e413">end</a>(); it != ie; ++it)</div>
+<div class="line"><a name="l00957"></a><span class="lineno"> 957</span> handleTopLevelDecl(*it);</div>
+<div class="line"><a name="l00958"></a><span class="lineno"> 958</span> }</div>
+<div class="line"><a name="l00959"></a><span class="lineno"> 959</span> </div>
+<div class="line"><a name="l00960"></a><span class="lineno"> 960</span> <span class="keyword">virtual</span> <a class="code" href="classclang_1_1ASTMutationListener.html" title="An abstract interface that should be implemented by listeners that want to be notified when an AST en...">ASTMutationListener</a> *GetASTMutationListener() {</div>
+<div class="line"><a name="l00961"></a><span class="lineno"> 961</span> <span class="keywordflow">return</span> Unit.getASTMutationListener();</div>
+<div class="line"><a name="l00962"></a><span class="lineno"> 962</span> }</div>
+<div class="line"><a name="l00963"></a><span class="lineno"> 963</span> </div>
+<div class="line"><a name="l00964"></a><span class="lineno"> 964</span> <span class="keyword">virtual</span> <a class="code" href="classclang_1_1ASTDeserializationListener.html">ASTDeserializationListener</a> *GetASTDeserializationListener() {</div>
+<div class="line"><a name="l00965"></a><span class="lineno"> 965</span> <span class="keywordflow">return</span> Unit.getDeserializationListener();</div>
+<div class="line"><a name="l00966"></a><span class="lineno"> 966</span> }</div>
+<div class="line"><a name="l00967"></a><span class="lineno"> 967</span> };</div>
+<div class="line"><a name="l00968"></a><span class="lineno"> 968</span> </div>
+<div class="line"><a name="l00969"></a><span class="lineno"> 969</span> <span class="keyword">class </span>TopLevelDeclTrackerAction : <span class="keyword">public</span> <a class="code" href="classclang_1_1ASTFrontendAction.html" title="Abstract base class to use for AST consumer-based frontend actions.">ASTFrontendAction</a> {</div>
+<div class="line"><a name="l00970"></a><span class="lineno"> 970</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00971"></a><span class="lineno"> 971</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &Unit;</div>
+<div class="line"><a name="l00972"></a><span class="lineno"> 972</span> </div>
+<div class="line"><a name="l00973"></a><span class="lineno"> 973</span> <span class="keyword">virtual</span> <a class="code" href="classclang_1_1ASTConsumer.html">ASTConsumer</a> *CreateASTConsumer(<a class="code" href="classclang_1_1CompilerInstance.html">CompilerInstance</a> &CI,</div>
+<div class="line"><a name="l00974"></a><span class="lineno"> 974</span> StringRef InFile) {</div>
+<div class="line"><a name="l00975"></a><span class="lineno"> 975</span> CI.<a class="code" href="classclang_1_1CompilerInstance.html#aaf2cc0754c4058a1eb80f973472d694a" title="Return the current preprocessor.">getPreprocessor</a>().<a class="code" href="classclang_1_1Preprocessor.html#a671c7ba389abdc470a76ca6e40b3158d">addPPCallbacks</a>(</div>
+<div class="line"><a name="l00976"></a><span class="lineno"> 976</span> <span class="keyword">new</span> MacroDefinitionTrackerPPCallbacks(Unit.getCurrentTopLevelHashValue()));</div>
+<div class="line"><a name="l00977"></a><span class="lineno"> 977</span> <span class="keywordflow">return</span> <span class="keyword">new</span> TopLevelDeclTrackerConsumer(Unit, </div>
+<div class="line"><a name="l00978"></a><span class="lineno"> 978</span> Unit.getCurrentTopLevelHashValue());</div>
+<div class="line"><a name="l00979"></a><span class="lineno"> 979</span> }</div>
+<div class="line"><a name="l00980"></a><span class="lineno"> 980</span> </div>
+<div class="line"><a name="l00981"></a><span class="lineno"> 981</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00982"></a><span class="lineno"> 982</span> TopLevelDeclTrackerAction(<a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &_Unit) : Unit(_Unit) {}</div>
+<div class="line"><a name="l00983"></a><span class="lineno"> 983</span> </div>
+<div class="line"><a name="l00984"></a><span class="lineno"> 984</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasCodeCompletionSupport()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
+<div class="line"><a name="l00985"></a><span class="lineno"> 985</span> <span class="keyword">virtual</span> <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21" title="Describes the kind of translation unit being processed.">TranslationUnitKind</a> getTranslationUnitKind() { </div>
+<div class="line"><a name="l00986"></a><span class="lineno"> 986</span> <span class="keywordflow">return</span> Unit.getTranslationUnitKind(); </div>
+<div class="line"><a name="l00987"></a><span class="lineno"> 987</span> }</div>
+<div class="line"><a name="l00988"></a><span class="lineno"> 988</span> };</div>
+<div class="line"><a name="l00989"></a><span class="lineno"> 989</span> </div>
+<div class="line"><a name="l00990"></a><span class="lineno"> 990</span> <span class="keyword">class </span>PrecompilePreambleAction : <span class="keyword">public</span> <a class="code" href="classclang_1_1ASTFrontendAction.html" title="Abstract base class to use for AST consumer-based frontend actions.">ASTFrontendAction</a> {</div>
+<div class="line"><a name="l00991"></a><span class="lineno"> 991</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &Unit;</div>
+<div class="line"><a name="l00992"></a><span class="lineno"> 992</span> <span class="keywordtype">bool</span> HasEmittedPreamblePCH;</div>
+<div class="line"><a name="l00993"></a><span class="lineno"> 993</span> </div>
+<div class="line"><a name="l00994"></a><span class="lineno"> 994</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00995"></a><span class="lineno"> 995</span> <span class="keyword">explicit</span> PrecompilePreambleAction(<a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &Unit)</div>
+<div class="line"><a name="l00996"></a><span class="lineno"> 996</span> : Unit(Unit), HasEmittedPreamblePCH(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>) {}</div>
+<div class="line"><a name="l00997"></a><span class="lineno"> 997</span> </div>
+<div class="line"><a name="l00998"></a><span class="lineno"> 998</span> <span class="keyword">virtual</span> <a class="code" href="classclang_1_1ASTConsumer.html">ASTConsumer</a> *CreateASTConsumer(<a class="code" href="classclang_1_1CompilerInstance.html">CompilerInstance</a> &CI,</div>
+<div class="line"><a name="l00999"></a><span class="lineno"> 999</span> StringRef InFile);</div>
+<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> <span class="keywordtype">bool</span> hasEmittedPreamblePCH()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> HasEmittedPreamblePCH; }</div>
+<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> <span class="keywordtype">void</span> setHasEmittedPreamblePCH() { HasEmittedPreamblePCH = <span class="keyword">true</span>; }</div>
+<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> shouldEraseOutputFiles() { <span class="keywordflow">return</span> !hasEmittedPreamblePCH(); }</div>
+<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> </div>
+<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasCodeCompletionSupport()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
+<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasASTFileSupport()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
+<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="keyword">virtual</span> <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21" title="Describes the kind of translation unit being processed.">TranslationUnitKind</a> getTranslationUnitKind() { <span class="keywordflow">return</span> <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21ac4c645f9e3ba37d9dc6fa25c8ff25b38" title="The translation unit is a prefix to a translation unit, and is not complete.">TU_Prefix</a>; }</div>
+<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> };</div>
+<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> </div>
+<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> <span class="keyword">class </span>PrecompilePreambleConsumer : <span class="keyword">public</span> <a class="code" href="classclang_1_1PCHGenerator.html" title="AST and semantic-analysis consumer that generates a precompiled header from the parsed source code...">PCHGenerator</a> {</div>
+<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &Unit;</div>
+<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> <span class="keywordtype">unsigned</span> &Hash;</div>
+<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> std::vector<Decl *> TopLevelDecls;</div>
+<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> PrecompilePreambleAction *<a class="code" href="Tooling_8cpp.html#a611b216472a9171383c588b3c166b0a1">Action</a>;</div>
+<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> </div>
+<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> PrecompilePreambleConsumer(<a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &Unit, PrecompilePreambleAction *<a class="code" href="Tooling_8cpp.html#a611b216472a9171383c588b3c166b0a1">Action</a>,</div>
+<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1Preprocessor.html">Preprocessor</a> &PP, StringRef isysroot,</div>
+<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> raw_ostream *Out)</div>
+<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> : <a class="code" href="classclang_1_1PCHGenerator.html" title="AST and semantic-analysis consumer that generates a precompiled header from the parsed source code...">PCHGenerator</a>(PP, <span class="stringliteral">""</span>, 0, isysroot, Out, <span class="comment">/*AllowASTWithErrors=*/</span><a class="code" href="stdbool_8h.html#a41f9c5fb8b08eb5dc3edce4dcb37fee7">true</a>),</div>
+<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> Unit(Unit), Hash(Unit.getCurrentTopLevelHashValue()), Action(Action) {</div>
+<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> Hash = 0;</div>
+<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> }</div>
+<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> </div>
+<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> HandleTopLevelDecl(<a class="code" href="classclang_1_1DeclGroupRef.html">DeclGroupRef</a> D) {</div>
+<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1Decl.html">DeclGroupRef::iterator</a> it = D.<a class="code" href="classclang_1_1DeclGroupRef.html#a6992d5c8adb23509dbdd5f0c6e302a39">begin</a>(), ie = D.<a class="code" href="classclang_1_1DeclGroupRef.html#a6a4708b4425390f3d2c2f002a765e413">end</a>(); it != ie; ++it) {</div>
+<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D = *it;</div>
+<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> <span class="comment">// FIXME: Currently ObjC method declarations are incorrectly being</span></div>
+<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span> <span class="comment">// reported as top-level declarations, even though their DeclContext</span></div>
+<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> <span class="comment">// is the containing ObjC @interface/@implementation. This is a</span></div>
+<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> <span class="comment">// fundamental problem in the parser right now.</span></div>
+<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> <span class="keywordflow">if</span> (isa<ObjCMethodDecl>(D))</div>
+<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> AddTopLevelDeclarationToHash(D, Hash);</div>
+<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> TopLevelDecls.push_back(D);</div>
+<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> }</div>
+<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span> }</div>
+<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span> </div>
+<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> HandleTranslationUnit(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx) {</div>
+<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> <a class="code" href="classclang_1_1PCHGenerator.html#ab88344e93870a85f5d3538b1b50499c4">PCHGenerator::HandleTranslationUnit</a>(Ctx);</div>
+<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span> <span class="keywordflow">if</span> (hasEmittedPCH()) {</div>
+<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span> <span class="comment">// Translate the top-level declarations we captured during</span></div>
+<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span> <span class="comment">// parsing into declaration IDs in the precompiled</span></div>
+<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> <span class="comment">// preamble. This will allow us to deserialize those top-level</span></div>
+<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> <span class="comment">// declarations when requested.</span></div>
+<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, N = TopLevelDecls.size(); I != N; ++I) {</div>
+<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D = TopLevelDecls[I];</div>
+<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> <span class="comment">// Invalid top-level decls may not have been serialized.</span></div>
+<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#a17ec912fd67469eea51741d45eb0c800">isInvalidDecl</a>())</div>
+<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> Unit.addTopLevelDeclFromPreamble(getWriter().getDeclID(D));</div>
+<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> }</div>
+<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> </div>
+<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> <a class="code" href="Tooling_8cpp.html#a611b216472a9171383c588b3c166b0a1">Action</a>->setHasEmittedPreamblePCH();</div>
+<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> }</div>
+<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> }</div>
+<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> };</div>
+<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> </div>
+<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> }</div>
+<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> </div>
+<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> <a class="code" href="classclang_1_1ASTConsumer.html">ASTConsumer</a> *PrecompilePreambleAction::CreateASTConsumer(<a class="code" href="classclang_1_1CompilerInstance.html">CompilerInstance</a> &CI,</div>
+<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> StringRef InFile) {</div>
+<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> std::string Sysroot;</div>
+<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> std::string OutputFile;</div>
+<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> raw_ostream *OS = 0;</div>
+<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1GeneratePCHAction.html#a8de2e5d7a3ba17aa83030259539b7eaf" title="Compute the AST consumer arguments that will be used to create the PCHGenerator instance returned by ...">GeneratePCHAction::ComputeASTConsumerArguments</a>(CI, InFile, Sysroot,</div>
+<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> OutputFile, OS))</div>
+<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> </div>
+<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> <span class="keywordflow">if</span> (!CI.<a class="code" href="classclang_1_1CompilerInstance.html#a422eaf55a6d7121462459a96f23c2ccd">getFrontendOpts</a>().<a class="code" href="classclang_1_1FrontendOptions.html#ad946ec38adf247d42c789415e47e251c">RelocatablePCH</a>)</div>
+<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> Sysroot.clear();</div>
+<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> </div>
+<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> CI.<a class="code" href="classclang_1_1CompilerInstance.html#aaf2cc0754c4058a1eb80f973472d694a" title="Return the current preprocessor.">getPreprocessor</a>().<a class="code" href="classclang_1_1Preprocessor.html#a671c7ba389abdc470a76ca6e40b3158d">addPPCallbacks</a>(<span class="keyword">new</span> MacroDefinitionTrackerPPCallbacks(</div>
+<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span> Unit.getCurrentTopLevelHashValue()));</div>
+<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> <span class="keywordflow">return</span> <span class="keyword">new</span> PrecompilePreambleConsumer(Unit, <span class="keyword">this</span>, CI.<a class="code" href="classclang_1_1CompilerInstance.html#aaf2cc0754c4058a1eb80f973472d694a" title="Return the current preprocessor.">getPreprocessor</a>(),</div>
+<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span> Sysroot, OS);</div>
+<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> }</div>
+<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> </div>
+<div class="line"><a name="l01079"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a86cfcf47ea534e584ddc48eb9b96287b"> 1079</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ASTUnit_8cpp.html#a86cfcf47ea534e584ddc48eb9b96287b">isNonDriverDiag</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1StoredDiagnostic.html" title="Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...">StoredDiagnostic</a> &StoredDiag) {</div>
+<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> <span class="keywordflow">return</span> StoredDiag.<a class="code" href="classclang_1_1StoredDiagnostic.html#a7482563937a50557c6605660b5a22936">getLocation</a>().<a class="code" href="classclang_1_1SourceLocation.html#ad504978d83973770506b6ddb1d7b48f9" title="Return true if this is a valid SourceLocation object.">isValid</a>();</div>
+<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> }</div>
+<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> </div>
+<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
+<div class="line"><a name="l01084"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a73c097a6945ffc4915084c7ad989fdb3"> 1084</a></span> <a class="code" href="ASTUnit_8cpp.html#a73c097a6945ffc4915084c7ad989fdb3">checkAndRemoveNonDriverDiags</a>(<a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<StoredDiagnostic></a> &StoredDiags) {</div>
+<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> <span class="comment">// Get rid of stored diagnostics except the ones from the driver which do not</span></div>
+<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="comment">// have a source location.</span></div>
+<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> StoredDiags.erase(</div>
+<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> std::remove_if(StoredDiags.begin(), StoredDiags.end(), <a class="code" href="ASTUnit_8cpp.html#a86cfcf47ea534e584ddc48eb9b96287b">isNonDriverDiag</a>),</div>
+<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> StoredDiags.end());</div>
+<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> }</div>
+<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> </div>
+<div class="line"><a name="l01092"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a07f15915897f886c41a1ef9d1803d740"> 1092</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ASTUnit_8cpp.html#a07f15915897f886c41a1ef9d1803d740">checkAndSanitizeDiags</a>(<a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<StoredDiagnostic></a> &</div>
+<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> StoredDiagnostics,</div>
+<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#afe4356a77609114d8df0bfc9c2b8701f">SM</a>) {</div>
+<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> <span class="comment">// The stored diagnostic has the old source manager in it; update</span></div>
+<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span> <span class="comment">// the locations to refer into the new source manager. Since we've</span></div>
+<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> <span class="comment">// been careful to make sure that the source manager's state</span></div>
+<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> <span class="comment">// before and after are identical, so that we can reuse the source</span></div>
+<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> <span class="comment">// location itself.</span></div>
+<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, N = StoredDiagnostics.size(); I < N; ++I) {</div>
+<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> <span class="keywordflow">if</span> (StoredDiagnostics[I].getLocation().isValid()) {</div>
+<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> <a class="code" href="classclang_1_1FullSourceLoc.html" title="A SourceLocation and its associated SourceManager.">FullSourceLoc</a> Loc(StoredDiagnostics[I].getLocation(), SM);</div>
+<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> StoredDiagnostics[I].setLocation(Loc);</div>
+<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> }</div>
+<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> }</div>
+<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span> }</div>
+<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> <span class="comment"></span></div>
+<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> <span class="comment">/// Parse the source file into a translation unit using the given compiler</span></div>
+<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> <span class="comment">/// invocation, replacing the current translation unit.</span></div>
+<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> <span class="comment">///</span></div>
+<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> <span class="comment">/// \returns True if a failure occurred that causes the ASTUnit not to</span></div>
+<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> <span class="comment">/// contain any translation-unit information, false otherwise.</span></div>
+<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> <span class="comment"></span><span class="keywordtype">bool</span> ASTUnit::Parse(llvm::MemoryBuffer *OverrideMainBuffer) {</div>
+<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span> <span class="keyword">delete</span> SavedMainFileBuffer;</div>
+<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> SavedMainFileBuffer = 0;</div>
+<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> </div>
+<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> <span class="keywordflow">if</span> (!Invocation) {</div>
+<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> <span class="keyword">delete</span> OverrideMainBuffer;</div>
+<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> }</div>
+<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> </div>
+<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> <span class="comment">// Create the compiler instance to use for building the AST.</span></div>
+<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<CompilerInstance></a> Clang(<span class="keyword">new</span> <a class="code" href="classclang_1_1CompilerInstance.html">CompilerInstance</a>());</div>
+<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> </div>
+<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> llvm::CrashRecoveryContextCleanupRegistrar<CompilerInstance></div>
+<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span> CICleanup(Clang.get());</div>
+<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span> </div>
+<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<CompilerInvocation></a></div>
+<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span> CCInvocation(<span class="keyword">new</span> <a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a>(*Invocation));</div>
+<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span> </div>
+<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> Clang->setInvocation(CCInvocation.getPtr());</div>
+<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile();</div>
+<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> </div>
+<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> <span class="comment">// Set up diagnostics, capturing any diagnostics that would</span></div>
+<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> <span class="comment">// otherwise be dropped.</span></div>
+<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> Clang->setDiagnostics(&<a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>());</div>
+<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> </div>
+<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> <span class="comment">// Create the target instance.</span></div>
+<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> Clang->setTarget(<a class="code" href="classclang_1_1TargetInfo.html#a4f871040b846cf9e01dd66a8b46e2985" title="Construct a target for the given options.">TargetInfo::CreateTargetInfo</a>(Clang->getDiagnostics(),</div>
+<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> &Clang->getTargetOpts()));</div>
+<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> <span class="keywordflow">if</span> (!Clang->hasTarget()) {</div>
+<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span> <span class="keyword">delete</span> OverrideMainBuffer;</div>
+<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> }</div>
+<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> </div>
+<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> <span class="comment">// Inform the target of the language options.</span></div>
+<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> <span class="comment">//</span></div>
+<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> <span class="comment">// FIXME: We shouldn't need to do this, the target should be immutable once</span></div>
+<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> <span class="comment">// created. This complexity should be lifted elsewhere.</span></div>
+<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> Clang->getTarget().setForcedLangOptions(Clang->getLangOpts());</div>
+<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> </div>
+<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span> assert(Clang->getFrontendOpts().Inputs.size() == 1 &&</div>
+<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> <span class="stringliteral">"Invocation must have exactly one source file!"</span>);</div>
+<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> assert(Clang->getFrontendOpts().Inputs[0].getKind() != <a class="code" href="namespaceclang.html#a7f0d2857e98f529ab752288e24013c10a6e091f96e7bc6407659089b0e0fa0b62">IK_AST</a> &&</div>
+<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> <span class="stringliteral">"FIXME: AST inputs not yet supported here!"</span>);</div>
+<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span> assert(Clang->getFrontendOpts().Inputs[0].getKind() != <a class="code" href="namespaceclang.html#a7f0d2857e98f529ab752288e24013c10af41e61b39aea3f735b903fdf7cd5049c">IK_LLVM_IR</a> &&</div>
+<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> <span class="stringliteral">"IR inputs not support here!"</span>);</div>
+<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> </div>
+<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> <span class="comment">// Configure the various subsystems.</span></div>
+<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> <span class="comment">// FIXME: Should we retain the previous file manager?</span></div>
+<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span> LangOpts = &Clang->getLangOpts();</div>
+<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span> FileSystemOpts = Clang->getFileSystemOpts();</div>
+<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span> FileMgr = <span class="keyword">new</span> <a class="code" href="classclang_1_1FileManager.html" title="Implements support for file system lookup, file system caching, and directory search management...">FileManager</a>(FileSystemOpts);</div>
+<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> SourceMgr = <span class="keyword">new</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a>(<a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>(), *FileMgr,</div>
+<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span> UserFilesAreVolatile);</div>
+<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> TheSema.reset();</div>
+<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> Ctx = 0;</div>
+<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span> PP = 0;</div>
+<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span> Reader = 0;</div>
+<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span> </div>
+<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span> <span class="comment">// Clear out old caches and data.</span></div>
+<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span> TopLevelDecls.clear();</div>
+<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span> clearFileLevelDecls();</div>
+<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> CleanTemporaryFiles();</div>
+<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> </div>
+<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> <span class="keywordflow">if</span> (!OverrideMainBuffer) {</div>
+<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> <a class="code" href="ASTUnit_8cpp.html#a73c097a6945ffc4915084c7ad989fdb3">checkAndRemoveNonDriverDiags</a>(StoredDiagnostics);</div>
+<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> TopLevelDeclsInPreamble.clear();</div>
+<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span> }</div>
+<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span> </div>
+<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> <span class="comment">// Create a file manager object to provide access to and cache the filesystem.</span></div>
+<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span> Clang->setFileManager(&<a class="code" href="classclang_1_1ASTUnit.html#a909401bc1781efef503af81509be57c7">getFileManager</a>());</div>
+<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> </div>
+<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> <span class="comment">// Create the source manager.</span></div>
+<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span> Clang->setSourceManager(&<a class="code" href="classclang_1_1ASTUnit.html#ac04280e780aac7894aa93e2cdda3469a">getSourceManager</a>());</div>
+<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> </div>
+<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span> <span class="comment">// If the main file has been overridden due to the use of a preamble,</span></div>
+<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span> <span class="comment">// make that override happen and introduce the preamble.</span></div>
+<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> <a class="code" href="classclang_1_1PreprocessorOptions.html">PreprocessorOptions</a> &PreprocessorOpts = Clang->getPreprocessorOpts();</div>
+<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> <span class="keywordflow">if</span> (OverrideMainBuffer) {</div>
+<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#ad3696370ca31e4f1b5871cb7d58f589f">addRemappedFile</a>(OriginalSourceFile, OverrideMainBuffer);</div>
+<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a24671d094917020114917c55ee0c7a11" title="If non-zero, the implicit PCH include is actually a precompiled preamble that covers this number of b...">PrecompiledPreambleBytes</a>.first = Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3dfca459bb7a7b012c59bd8fa5617fbb">size</a>();</div>
+<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a24671d094917020114917c55ee0c7a11" title="If non-zero, the implicit PCH include is actually a precompiled preamble that covers this number of b...">PrecompiledPreambleBytes</a>.second</div>
+<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span> = PreambleEndsAtStartOfLine;</div>
+<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#ab62f6211f45e53fb6a45ad84d2a87657" title="The implicit PCH included at the start of the translation unit, or empty.">ImplicitPCHInclude</a> = <a class="code" href="ASTUnit_8cpp.html#a75e06789aea0519a29c9943a73c3c0be">getPreambleFile</a>(<span class="keyword">this</span>);</div>
+<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#afbbf74f590f04a8fb30bb1c63547d828" title="When true, disables most of the normal validation performed on precompiled headers.">DisablePCHValidation</a> = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> </div>
+<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> <span class="comment">// The stored diagnostic has the old source manager in it; update</span></div>
+<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> <span class="comment">// the locations to refer into the new source manager. Since we've</span></div>
+<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> <span class="comment">// been careful to make sure that the source manager's state</span></div>
+<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> <span class="comment">// before and after are identical, so that we can reuse the source</span></div>
+<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> <span class="comment">// location itself.</span></div>
+<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> <a class="code" href="ASTUnit_8cpp.html#a07f15915897f886c41a1ef9d1803d740">checkAndSanitizeDiags</a>(StoredDiagnostics, <a class="code" href="classclang_1_1ASTUnit.html#ac04280e780aac7894aa93e2cdda3469a">getSourceManager</a>());</div>
+<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> </div>
+<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> <span class="comment">// Keep track of the override buffer;</span></div>
+<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> SavedMainFileBuffer = OverrideMainBuffer;</div>
+<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> }</div>
+<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> </div>
+<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<TopLevelDeclTrackerAction></a> Act(</div>
+<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> <span class="keyword">new</span> TopLevelDeclTrackerAction(*<span class="keyword">this</span>));</div>
+<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> </div>
+<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> llvm::CrashRecoveryContextCleanupRegistrar<TopLevelDeclTrackerAction></div>
+<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> ActCleanup(Act.get());</div>
+<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> </div>
+<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> <span class="keywordflow">if</span> (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0]))</div>
+<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span> <span class="keywordflow">goto</span> error;</div>
+<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> </div>
+<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span> <span class="keywordflow">if</span> (OverrideMainBuffer) {</div>
+<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> std::string ModName = <a class="code" href="ASTUnit_8cpp.html#a75e06789aea0519a29c9943a73c3c0be">getPreambleFile</a>(<span class="keyword">this</span>);</div>
+<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span> TranslateStoredDiagnostics(Clang->getModuleManager(), ModName,</div>
+<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> <a class="code" href="classclang_1_1ASTUnit.html#ac04280e780aac7894aa93e2cdda3469a">getSourceManager</a>(), PreambleDiagnostics,</div>
+<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span> StoredDiagnostics);</div>
+<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> }</div>
+<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span> </div>
+<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> <span class="keywordflow">if</span> (!Act->Execute())</div>
+<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> <span class="keywordflow">goto</span> error;</div>
+<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span> </div>
+<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> transferASTDataFromCompilerInstance(*Clang);</div>
+<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> </div>
+<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span> Act->EndSourceFile();</div>
+<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> </div>
+<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> FailedParseDiagnostics.clear();</div>
+<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span> </div>
+<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> </div>
+<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span> error:</div>
+<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span> <span class="comment">// Remove the overridden buffer we used for the preamble.</span></div>
+<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> <span class="keywordflow">if</span> (OverrideMainBuffer) {</div>
+<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span> <span class="keyword">delete</span> OverrideMainBuffer;</div>
+<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> SavedMainFileBuffer = 0;</div>
+<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> }</div>
+<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span> </div>
+<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span> <span class="comment">// Keep the ownership of the data in the ASTUnit because the client may</span></div>
+<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> <span class="comment">// want to see the diagnostics.</span></div>
+<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> transferASTDataFromCompilerInstance(*Clang);</div>
+<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span> FailedParseDiagnostics.swap(StoredDiagnostics);</div>
+<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> StoredDiagnostics.clear();</div>
+<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span> NumStoredDiagnosticsFromDriver = 0;</div>
+<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span> }</div>
+<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> <span class="comment"></span></div>
+<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> <span class="comment">/// \brief Simple function to retrieve a path for a preamble precompiled header.</span></div>
+<div class="line"><a name="l01255"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a7a81d6e7fb9befb421887c0bb4516cbc"> 1255</a></span> <span class="comment"></span><span class="keyword">static</span> std::string <a class="code" href="ASTUnit_8cpp.html#a7a81d6e7fb9befb421887c0bb4516cbc" title="Simple function to retrieve a path for a preamble precompiled header.">GetPreamblePCHPath</a>() {</div>
+<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span> <span class="comment">// FIXME: This is a hack so that we can override the preamble file during</span></div>
+<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> <span class="comment">// crash-recovery testing, which is the only case where the preamble files</span></div>
+<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> <span class="comment">// are not necessarily cleaned up.</span></div>
+<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *TmpFile = ::getenv(<span class="stringliteral">"CINDEXTEST_PREAMBLE_FILE"</span>);</div>
+<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span> <span class="keywordflow">if</span> (TmpFile)</div>
+<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> <span class="keywordflow">return</span> TmpFile;</div>
+<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> </div>
+<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> <a class="code" href="classllvm_1_1SmallString.html">SmallString<128></a> Path;</div>
+<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span> llvm::sys::fs::createTemporaryFile(<span class="stringliteral">"preamble"</span>, <span class="stringliteral">"pch"</span>, Path);</div>
+<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span> </div>
+<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> <span class="keywordflow">return</span> Path.str();</div>
+<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> }</div>
+<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> <span class="comment"></span></div>
+<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> <span class="comment">/// \brief Compute the preamble for the main file, providing the source buffer</span></div>
+<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> <span class="comment">/// that corresponds to the main file along with a pair (bytes, start-of-line)</span></div>
+<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span> <span class="comment">/// that describes the preamble.</span></div>
+<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> <span class="comment"></span>std::pair<llvm::MemoryBuffer *, std::pair<unsigned, bool> > </div>
+<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> ASTUnit::ComputePreamble(<a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a> &Invocation, </div>
+<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> <span class="keywordtype">unsigned</span> MaxLines, <span class="keywordtype">bool</span> &CreatedBuffer) {</div>
+<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> <a class="code" href="classclang_1_1FrontendOptions.html" title="FrontendOptions - Options for controlling the behavior of the frontend.">FrontendOptions</a> &FrontendOpts = Invocation.<a class="code" href="classclang_1_1CompilerInvocation.html#af457a44dcc046c3e14689989703c41c3">getFrontendOpts</a>();</div>
+<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> <a class="code" href="classclang_1_1PreprocessorOptions.html">PreprocessorOptions</a> &PreprocessorOpts = Invocation.<a class="code" href="classclang_1_1CompilerInvocationBase.html#af26aa2f4a5df780a3b5898eef70763d5">getPreprocessorOpts</a>();</div>
+<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span> CreatedBuffer = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> </div>
+<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> <span class="comment">// Try to determine if the main file has been remapped, either from the </span></div>
+<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> <span class="comment">// command line (to another file) or directly through the compiler invocation</span></div>
+<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> <span class="comment">// (to a memory buffer).</span></div>
+<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> llvm::MemoryBuffer *Buffer = 0;</div>
+<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> std::string MainFilePath(FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a95a3f648ae866e50b78434e049d87218" title="The input files and their types.">Inputs</a>[0].getFile());</div>
+<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> llvm::sys::fs::UniqueID MainFileID;</div>
+<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span> <span class="keywordflow">if</span> (!llvm::sys::fs::getUniqueID(MainFilePath, MainFileID)) {</div>
+<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> <span class="comment">// Check whether there is a file-file remapping of the main file</span></div>
+<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1PreprocessorOptions.html#aef94959d8758bafb3c055b60f60f36e1">PreprocessorOptions::remapped_file_iterator</a></div>
+<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span> M = PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#abe25a6b063b462346902351a75bb6543">remapped_file_begin</a>(),</div>
+<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span> E = PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a2f5ff2fffec1ee5f0b8516973d9dbd67">remapped_file_end</a>();</div>
+<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span> M != E;</div>
+<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> ++M) {</div>
+<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> std::string MPath(M->first);</div>
+<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> llvm::sys::fs::UniqueID MID;</div>
+<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span> <span class="keywordflow">if</span> (!llvm::sys::fs::getUniqueID(MPath, MID)) {</div>
+<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span> <span class="keywordflow">if</span> (MainFileID == MID) {</div>
+<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span> <span class="comment">// We found a remapping. Try to load the resulting, remapped source.</span></div>
+<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> <span class="keywordflow">if</span> (CreatedBuffer) {</div>
+<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> <span class="keyword">delete</span> Buffer;</div>
+<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> CreatedBuffer = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> }</div>
+<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> </div>
+<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span> Buffer = <a class="code" href="classclang_1_1ASTUnit.html#a237bce86e574bf434e42ee419ec382f6">getBufferForFile</a>(M->second);</div>
+<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span> <span class="keywordflow">if</span> (!Buffer)</div>
+<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span> <span class="keywordflow">return</span> std::make_pair((llvm::MemoryBuffer*)0, </div>
+<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span> std::make_pair(0, <span class="keyword">true</span>));</div>
+<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span> CreatedBuffer = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span> }</div>
+<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span> }</div>
+<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> }</div>
+<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> </div>
+<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span> <span class="comment">// Check whether there is a file-buffer remapping. It supercedes the</span></div>
+<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span> <span class="comment">// file-file remapping.</span></div>
+<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1PreprocessorOptions.html#ab5d93562d1b5eeae0b618779ccd34f5a">PreprocessorOptions::remapped_file_buffer_iterator</a></div>
+<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span> M = PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af278ce7e3d51c74252c8b4e00dc7f42b">remapped_file_buffer_begin</a>(),</div>
+<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span> E = PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af80ead86d2fa9d64e8e3cd8f76a65263">remapped_file_buffer_end</a>();</div>
+<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span> M != E;</div>
+<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span> ++M) {</div>
+<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span> std::string MPath(M->first);</div>
+<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span> llvm::sys::fs::UniqueID MID;</div>
+<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span> <span class="keywordflow">if</span> (!llvm::sys::fs::getUniqueID(MPath, MID)) {</div>
+<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span> <span class="keywordflow">if</span> (MainFileID == MID) {</div>
+<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span> <span class="comment">// We found a remapping.</span></div>
+<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span> <span class="keywordflow">if</span> (CreatedBuffer) {</div>
+<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span> <span class="keyword">delete</span> Buffer;</div>
+<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span> CreatedBuffer = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span> }</div>
+<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span> </div>
+<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span> Buffer = <span class="keyword">const_cast<</span>llvm::MemoryBuffer *<span class="keyword">></span>(M->second);</div>
+<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span> }</div>
+<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span> }</div>
+<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span> }</div>
+<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span> }</div>
+<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span> </div>
+<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span> <span class="comment">// If the main source file was not remapped, load it now.</span></div>
+<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span> <span class="keywordflow">if</span> (!Buffer) {</div>
+<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span> Buffer = <a class="code" href="classclang_1_1ASTUnit.html#a237bce86e574bf434e42ee419ec382f6">getBufferForFile</a>(FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a95a3f648ae866e50b78434e049d87218" title="The input files and their types.">Inputs</a>[0].getFile());</div>
+<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span> <span class="keywordflow">if</span> (!Buffer)</div>
+<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span> <span class="keywordflow">return</span> std::make_pair((llvm::MemoryBuffer*)0, std::make_pair(0, <span class="keyword">true</span>)); </div>
+<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span> </div>
+<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> CreatedBuffer = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span> }</div>
+<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span> </div>
+<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span> <span class="keywordflow">return</span> std::make_pair(Buffer, <a class="code" href="classclang_1_1Lexer.html#a9447d16f2043768c705f3b2e4a6eb5f8" title="Compute the preamble of the given file.">Lexer::ComputePreamble</a>(Buffer,</div>
+<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span> *Invocation.<a class="code" href="classclang_1_1CompilerInvocationBase.html#aa3ece9f5c035b7e3260e596c4e9f64fe">getLangOpts</a>(),</div>
+<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> MaxLines));</div>
+<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span> }</div>
+<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> </div>
+<div class="line"><a name="l01348"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a20dd6baec9fe74a1e64bbf61275664ae"> 1348</a></span> <span class="keyword">static</span> llvm::MemoryBuffer *<a class="code" href="ASTUnit_8cpp.html#a20dd6baec9fe74a1e64bbf61275664ae">CreatePaddedMainFileBuffer</a>(llvm::MemoryBuffer *Old,</div>
+<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> <span class="keywordtype">unsigned</span> NewSize,</div>
+<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> StringRef NewName) {</div>
+<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span> llvm::MemoryBuffer *Result</div>
+<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> = llvm::MemoryBuffer::getNewUninitMemBuffer(NewSize, NewName);</div>
+<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> memcpy(const_cast<char*>(Result->getBufferStart()), </div>
+<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span> Old->getBufferStart(), Old->getBufferSize());</div>
+<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span> memset(const_cast<char*>(Result->getBufferStart()) + Old->getBufferSize(), </div>
+<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span> <span class="charliteral">' '</span>, NewSize - Old->getBufferSize() - 1);</div>
+<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span> <span class="keyword">const_cast<</span><span class="keywordtype">char</span>*<span class="keyword">></span>(Result->getBufferEnd())[-1] = <span class="charliteral">'\n'</span>; </div>
+<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> </div>
+<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span> <span class="keywordflow">return</span> Result;</div>
+<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span> }</div>
+<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span> <span class="comment"></span></div>
+<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span> <span class="comment">/// \brief Attempt to build or re-use a precompiled preamble when (re-)parsing</span></div>
+<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span> <span class="comment">/// the source file.</span></div>
+<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span> <span class="comment">///</span></div>
+<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span> <span class="comment">/// This routine will compute the preamble of the main source file. If a</span></div>
+<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span> <span class="comment">/// non-trivial preamble is found, it will precompile that preamble into a </span></div>
+<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span> <span class="comment">/// precompiled header so that the precompiled preamble can be used to reduce</span></div>
+<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span> <span class="comment">/// reparsing time. If a precompiled preamble has already been constructed,</span></div>
+<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span> <span class="comment">/// this routine will determine if it is still valid and, if so, avoid </span></div>
+<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span> <span class="comment">/// rebuilding the precompiled preamble.</span></div>
+<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span> <span class="comment">///</span></div>
+<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span> <span class="comment">/// \param AllowRebuild When true (the default), this routine is</span></div>
+<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span> <span class="comment">/// allowed to rebuild the precompiled preamble if it is found to be</span></div>
+<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> <span class="comment">/// out-of-date.</span></div>
+<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span> <span class="comment">///</span></div>
+<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span> <span class="comment">/// \param MaxLines When non-zero, the maximum number of lines that</span></div>
+<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span> <span class="comment">/// can occur within the preamble.</span></div>
+<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span> <span class="comment">///</span></div>
+<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span> <span class="comment">/// \returns If the precompiled preamble can be used, returns a newly-allocated</span></div>
+<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span> <span class="comment">/// buffer that should be used in place of the main file when doing so.</span></div>
+<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span> <span class="comment">/// Otherwise, returns a NULL pointer.</span></div>
+<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span> <span class="comment"></span>llvm::MemoryBuffer *ASTUnit::getMainBufferWithPrecompiledPreamble(</div>
+<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a> &PreambleInvocationIn,</div>
+<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span> <span class="keywordtype">bool</span> AllowRebuild,</div>
+<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span> <span class="keywordtype">unsigned</span> MaxLines) {</div>
+<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> </div>
+<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<CompilerInvocation></a></div>
+<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span> PreambleInvocation(<span class="keyword">new</span> <a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a>(PreambleInvocationIn));</div>
+<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span> <a class="code" href="classclang_1_1FrontendOptions.html" title="FrontendOptions - Options for controlling the behavior of the frontend.">FrontendOptions</a> &FrontendOpts = PreambleInvocation->getFrontendOpts();</div>
+<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span> <a class="code" href="classclang_1_1PreprocessorOptions.html">PreprocessorOptions</a> &PreprocessorOpts</div>
+<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span> = PreambleInvocation->getPreprocessorOpts();</div>
+<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span> </div>
+<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> <span class="keywordtype">bool</span> CreatedPreambleBuffer = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> std::pair<llvm::MemoryBuffer *, std::pair<unsigned, bool> > NewPreamble </div>
+<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> = ComputePreamble(*PreambleInvocation, MaxLines, CreatedPreambleBuffer);</div>
+<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span> </div>
+<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span> <span class="comment">// If ComputePreamble() Take ownership of the preamble buffer.</span></div>
+<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<llvm::MemoryBuffer></a> OwnedPreambleBuffer;</div>
+<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span> <span class="keywordflow">if</span> (CreatedPreambleBuffer)</div>
+<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> OwnedPreambleBuffer.reset(NewPreamble.first);</div>
+<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span> </div>
+<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span> <span class="keywordflow">if</span> (!NewPreamble.second.first) {</div>
+<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span> <span class="comment">// We couldn't find a preamble in the main source. Clear out the current</span></div>
+<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span> <span class="comment">// preamble, if we have one. It's obviously no good any more.</span></div>
+<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span> Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#aafeaef58fac32a124550eda9f9317185">clear</a>();</div>
+<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> <a class="code" href="ASTUnit_8cpp.html#a59a40ecfcf0aa88c11e2814ce2abcc8f">erasePreambleFile</a>(<span class="keyword">this</span>);</div>
+<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> </div>
+<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span> <span class="comment">// The next time we actually see a preamble, precompile it.</span></div>
+<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> PreambleRebuildCounter = 1;</div>
+<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span> }</div>
+<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> </div>
+<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> <span class="keywordflow">if</span> (!Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#abe672377adaa89b4cb0eedbb76e90c6d">empty</a>()) {</div>
+<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span> <span class="comment">// We've previously computed a preamble. Check whether we have the same</span></div>
+<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span> <span class="comment">// preamble now that we did before, and that there's enough space in</span></div>
+<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span> <span class="comment">// the main-file buffer within the precompiled preamble to fit the</span></div>
+<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span> <span class="comment">// new main file.</span></div>
+<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span> <span class="keywordflow">if</span> (Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3dfca459bb7a7b012c59bd8fa5617fbb">size</a>() == NewPreamble.second.first &&</div>
+<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span> PreambleEndsAtStartOfLine == NewPreamble.second.second &&</div>
+<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span> NewPreamble.first->getBufferSize() < PreambleReservedSize-2 &&</div>
+<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span> memcmp(Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a2f3950110d708bc132720af899f47b80">getBufferStart</a>(), NewPreamble.first->getBufferStart(),</div>
+<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span> NewPreamble.second.first) == 0) {</div>
+<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span> <span class="comment">// The preamble has not changed. We may be able to re-use the precompiled</span></div>
+<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span> <span class="comment">// preamble.</span></div>
+<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> </div>
+<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span> <span class="comment">// Check that none of the files used by the preamble have changed.</span></div>
+<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span> <span class="keywordtype">bool</span> AnyFileChanged = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span> </div>
+<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span> <span class="comment">// First, make a record of those files that have been overridden via</span></div>
+<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span> <span class="comment">// remapping or unsaved_files.</span></div>
+<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span> llvm::StringMap<std::pair<off_t, time_t> > OverriddenFiles;</div>
+<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1PreprocessorOptions.html#aef94959d8758bafb3c055b60f60f36e1">PreprocessorOptions::remapped_file_iterator</a></div>
+<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span> R = PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#abe25a6b063b462346902351a75bb6543">remapped_file_begin</a>(),</div>
+<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span> REnd = PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a2f5ff2fffec1ee5f0b8516973d9dbd67">remapped_file_end</a>();</div>
+<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> !AnyFileChanged && R != REnd;</div>
+<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> ++R) {</div>
+<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span> llvm::sys::fs::file_status Status;</div>
+<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> <span class="keywordflow">if</span> (FileMgr->getNoncachedStatValue(R->second, Status)) {</div>
+<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="comment">// If we can't stat the file we're remapping to, assume that something</span></div>
+<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="comment">// horrible happened.</span></div>
+<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> AnyFileChanged = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span> }</div>
+<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> </div>
+<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span> OverriddenFiles[R->first] = std::make_pair(</div>
+<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span> Status.getSize(), Status.getLastModificationTime().toEpochTime());</div>
+<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> }</div>
+<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1PreprocessorOptions.html#ab5d93562d1b5eeae0b618779ccd34f5a">PreprocessorOptions::remapped_file_buffer_iterator</a></div>
+<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span> R = PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af278ce7e3d51c74252c8b4e00dc7f42b">remapped_file_buffer_begin</a>(),</div>
+<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span> REnd = PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af80ead86d2fa9d64e8e3cd8f76a65263">remapped_file_buffer_end</a>();</div>
+<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span> !AnyFileChanged && R != REnd;</div>
+<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> ++R) {</div>
+<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span> <span class="comment">// FIXME: Should we actually compare the contents of file->buffer</span></div>
+<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span> <span class="comment">// remappings?</span></div>
+<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span> OverriddenFiles[R->first] = std::make_pair(R->second->getBufferSize(), </div>
+<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span> 0);</div>
+<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span> }</div>
+<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span> </div>
+<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span> <span class="comment">// Check whether anything has changed.</span></div>
+<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span> <span class="keywordflow">for</span> (llvm::StringMap<std::pair<off_t, time_t> >::iterator </div>
+<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span> F = FilesInPreamble.begin(), FEnd = FilesInPreamble.end();</div>
+<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span> !AnyFileChanged && F != FEnd; </div>
+<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span> ++F) {</div>
+<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span> llvm::StringMap<std::pair<off_t, time_t> >::iterator Overridden</div>
+<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span> = OverriddenFiles.find(F->first());</div>
+<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span> <span class="keywordflow">if</span> (Overridden != OverriddenFiles.end()) {</div>
+<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> <span class="comment">// This file was remapped; check whether the newly-mapped file </span></div>
+<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span> <span class="comment">// matches up with the previous mapping.</span></div>
+<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span> <span class="keywordflow">if</span> (Overridden->second != F->second)</div>
+<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span> AnyFileChanged = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span> <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span> }</div>
+<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span> </div>
+<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span> <span class="comment">// The file was not remapped; check whether it has changed on disk.</span></div>
+<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span> llvm::sys::fs::file_status Status;</div>
+<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span> <span class="keywordflow">if</span> (FileMgr->getNoncachedStatValue(F->first(), Status)) {</div>
+<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span> <span class="comment">// If we can't stat the file, assume that something horrible happened.</span></div>
+<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span> AnyFileChanged = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (Status.getSize() != uint64_t(F->second.first) ||</div>
+<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span> Status.getLastModificationTime().toEpochTime() !=</div>
+<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span> uint64_t(F->second.second))</div>
+<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span> AnyFileChanged = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span> }</div>
+<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span> </div>
+<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span> <span class="keywordflow">if</span> (!AnyFileChanged) {</div>
+<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span> <span class="comment">// Okay! We can re-use the precompiled preamble.</span></div>
+<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span> </div>
+<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> <span class="comment">// Set the state of the diagnostic object to mimic its state</span></div>
+<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span> <span class="comment">// after parsing the preamble.</span></div>
+<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span> <a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a0e230f0a2fffbc40b97a9971e6b3939f" title="Reset the state of the diagnostic object to its initial configuration.">Reset</a>();</div>
+<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span> <a class="code" href="namespaceclang.html#a2eac92f50469af565dbfb390534b2ffd">ProcessWarningOptions</a>(<a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>(), </div>
+<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span> PreambleInvocation->getDiagnosticOpts());</div>
+<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span> <a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a25f41da44c55b33dae165d250f270f3e">setNumWarnings</a>(NumWarningsInPreamble);</div>
+<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> </div>
+<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span> <span class="comment">// Create a version of the main file buffer that is padded to</span></div>
+<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span> <span class="comment">// buffer size we reserved when creating the preamble.</span></div>
+<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span> <span class="keywordflow">return</span> <a class="code" href="ASTUnit_8cpp.html#a20dd6baec9fe74a1e64bbf61275664ae">CreatePaddedMainFileBuffer</a>(NewPreamble.first, </div>
+<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span> PreambleReservedSize,</div>
+<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span> FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a95a3f648ae866e50b78434e049d87218" title="The input files and their types.">Inputs</a>[0].getFile());</div>
+<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span> }</div>
+<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span> }</div>
+<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span> </div>
+<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span> <span class="comment">// If we aren't allowed to rebuild the precompiled preamble, just</span></div>
+<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span> <span class="comment">// return now.</span></div>
+<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span> <span class="keywordflow">if</span> (!AllowRebuild)</div>
+<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span> </div>
+<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span> <span class="comment">// We can't reuse the previously-computed preamble. Build a new one.</span></div>
+<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span> Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#aafeaef58fac32a124550eda9f9317185">clear</a>();</div>
+<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span> PreambleDiagnostics.clear();</div>
+<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span> <a class="code" href="ASTUnit_8cpp.html#a59a40ecfcf0aa88c11e2814ce2abcc8f">erasePreambleFile</a>(<span class="keyword">this</span>);</div>
+<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span> PreambleRebuildCounter = 1;</div>
+<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!AllowRebuild) {</div>
+<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span> <span class="comment">// We aren't allowed to rebuild the precompiled preamble; just</span></div>
+<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span> <span class="comment">// return now.</span></div>
+<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span> }</div>
+<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span> </div>
+<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span> <span class="comment">// If the preamble rebuild counter > 1, it's because we previously</span></div>
+<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span> <span class="comment">// failed to build a preamble and we're not yet ready to try</span></div>
+<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span> <span class="comment">// again. Decrement the counter and return a failure.</span></div>
+<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span> <span class="keywordflow">if</span> (PreambleRebuildCounter > 1) {</div>
+<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span> --PreambleRebuildCounter;</div>
+<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span> }</div>
+<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span> </div>
+<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span> <span class="comment">// Create a temporary file for the precompiled preamble. In rare </span></div>
+<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span> <span class="comment">// circumstances, this can fail.</span></div>
+<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span> std::string PreamblePCHPath = <a class="code" href="ASTUnit_8cpp.html#a7a81d6e7fb9befb421887c0bb4516cbc" title="Simple function to retrieve a path for a preamble precompiled header.">GetPreamblePCHPath</a>();</div>
+<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span> <span class="keywordflow">if</span> (PreamblePCHPath.empty()) {</div>
+<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span> <span class="comment">// Try again next time.</span></div>
+<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span> PreambleRebuildCounter = 1;</div>
+<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span> }</div>
+<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span> </div>
+<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span> <span class="comment">// We did not previously compute a preamble, or it can't be reused anyway.</span></div>
+<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span> SimpleTimer PreambleTimer(WantTiming);</div>
+<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span> PreambleTimer.setOutput(<span class="stringliteral">"Precompiling preamble"</span>);</div>
+<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span> </div>
+<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span> <span class="comment">// Create a new buffer that stores the preamble. The buffer also contains</span></div>
+<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span> <span class="comment">// extra space for the original contents of the file (which will be present</span></div>
+<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span> <span class="comment">// when we actually parse the file) along with more room in case the file</span></div>
+<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span> <span class="comment">// grows. </span></div>
+<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span> PreambleReservedSize = NewPreamble.first->getBufferSize();</div>
+<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span> <span class="keywordflow">if</span> (PreambleReservedSize < 4096)</div>
+<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span> PreambleReservedSize = 8191;</div>
+<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span> <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span> PreambleReservedSize *= 2;</div>
+<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span> </div>
+<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span> <span class="comment">// Save the preamble text for later; we'll need to compare against it for</span></div>
+<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span> <span class="comment">// subsequent reparses.</span></div>
+<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span> StringRef MainFilename = PreambleInvocation->getFrontendOpts().Inputs[0].getFile();</div>
+<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span> Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3d024c9e05bdfdd0299fe66eced1bc34">assign</a>(FileMgr->getFile(MainFilename),</div>
+<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span> NewPreamble.first->getBufferStart(), </div>
+<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span> NewPreamble.first->getBufferStart() </div>
+<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span> + NewPreamble.second.first);</div>
+<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span> PreambleEndsAtStartOfLine = NewPreamble.second.second;</div>
+<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span> </div>
+<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span> <span class="keyword">delete</span> PreambleBuffer;</div>
+<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span> PreambleBuffer</div>
+<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span> = llvm::MemoryBuffer::getNewUninitMemBuffer(PreambleReservedSize,</div>
+<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span> FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a95a3f648ae866e50b78434e049d87218" title="The input files and their types.">Inputs</a>[0].getFile());</div>
+<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span> memcpy(const_cast<char*>(PreambleBuffer->getBufferStart()), </div>
+<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span> NewPreamble.first->getBufferStart(), Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3dfca459bb7a7b012c59bd8fa5617fbb">size</a>());</div>
+<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span> memset(const_cast<char*>(PreambleBuffer->getBufferStart()) + Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3dfca459bb7a7b012c59bd8fa5617fbb">size</a>(), </div>
+<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span> <span class="charliteral">' '</span>, PreambleReservedSize - Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3dfca459bb7a7b012c59bd8fa5617fbb">size</a>() - 1);</div>
+<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span> <span class="keyword">const_cast<</span><span class="keywordtype">char</span>*<span class="keyword">></span>(PreambleBuffer->getBufferEnd())[-1] = <span class="charliteral">'\n'</span>; </div>
+<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span> </div>
+<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span> <span class="comment">// Remap the main source file to the preamble buffer.</span></div>
+<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span> StringRef MainFilePath = FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a95a3f648ae866e50b78434e049d87218" title="The input files and their types.">Inputs</a>[0].getFile();</div>
+<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#ad3696370ca31e4f1b5871cb7d58f589f">addRemappedFile</a>(MainFilePath, PreambleBuffer);</div>
+<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span> </div>
+<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span> <span class="comment">// Tell the compiler invocation to generate a temporary precompiled header.</span></div>
+<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span> FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#aed06584fe9ea4e1cd6679c9a9ddfce77" title="The frontend action to perform.">ProgramAction</a> = <a class="code" href="namespaceclang_1_1frontend.html#af6106d0ffa6ce83f34a9961f2d374494ae47f6aa1ff0396b672fe55bc6d20c3c1" title="Generate pre-compiled header.">frontend::GeneratePCH</a>;</div>
+<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span> <span class="comment">// FIXME: Generate the precompiled header into memory?</span></div>
+<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span> FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a7b09d06e2ab796fc22e43f67a6f36b5b" title="The output file, if any.">OutputFile</a> = PreamblePCHPath;</div>
+<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a24671d094917020114917c55ee0c7a11" title="If non-zero, the implicit PCH include is actually a precompiled preamble that covers this number of b...">PrecompiledPreambleBytes</a>.first = 0;</div>
+<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a24671d094917020114917c55ee0c7a11" title="If non-zero, the implicit PCH include is actually a precompiled preamble that covers this number of b...">PrecompiledPreambleBytes</a>.second = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span> </div>
+<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span> <span class="comment">// Create the compiler instance to use for building the precompiled preamble.</span></div>
+<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<CompilerInstance></a> Clang(<span class="keyword">new</span> <a class="code" href="classclang_1_1CompilerInstance.html">CompilerInstance</a>());</div>
+<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span> </div>
+<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span> llvm::CrashRecoveryContextCleanupRegistrar<CompilerInstance></div>
+<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span> CICleanup(Clang.get());</div>
+<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span> </div>
+<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span> Clang->setInvocation(&*PreambleInvocation);</div>
+<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span> OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile();</div>
+<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span> </div>
+<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span> <span class="comment">// Set up diagnostics, capturing all of the diagnostics produced.</span></div>
+<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span> Clang->setDiagnostics(&<a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>());</div>
+<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span> </div>
+<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span> <span class="comment">// Create the target instance.</span></div>
+<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span> Clang->setTarget(<a class="code" href="classclang_1_1TargetInfo.html#a4f871040b846cf9e01dd66a8b46e2985" title="Construct a target for the given options.">TargetInfo::CreateTargetInfo</a>(Clang->getDiagnostics(),</div>
+<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span> &Clang->getTargetOpts()));</div>
+<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span> <span class="keywordflow">if</span> (!Clang->hasTarget()) {</div>
+<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span> llvm::sys::fs::remove(FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a7b09d06e2ab796fc22e43f67a6f36b5b" title="The output file, if any.">OutputFile</a>);</div>
+<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span> Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#aafeaef58fac32a124550eda9f9317185">clear</a>();</div>
+<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span> PreambleRebuildCounter = <a class="code" href="ASTUnit_8cpp.html#a7164eb680f1c0804fb14e4a16ced7035" title="After failing to build a precompiled preamble (due to errors in the source that occurs in the preambl...">DefaultPreambleRebuildInterval</a>;</div>
+<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#add722741ec7cbaef2e78c0b7fda1918b">eraseRemappedFile</a>(</div>
+<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af80ead86d2fa9d64e8e3cd8f76a65263">remapped_file_buffer_end</a>() - 1);</div>
+<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span> }</div>
+<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span> </div>
+<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span> <span class="comment">// Inform the target of the language options.</span></div>
+<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span> <span class="comment">//</span></div>
+<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span> <span class="comment">// FIXME: We shouldn't need to do this, the target should be immutable once</span></div>
+<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span> <span class="comment">// created. This complexity should be lifted elsewhere.</span></div>
+<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span> Clang->getTarget().setForcedLangOptions(Clang->getLangOpts());</div>
+<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span> </div>
+<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span> assert(Clang->getFrontendOpts().Inputs.size() == 1 &&</div>
+<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span> <span class="stringliteral">"Invocation must have exactly one source file!"</span>);</div>
+<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span> assert(Clang->getFrontendOpts().Inputs[0].getKind() != <a class="code" href="namespaceclang.html#a7f0d2857e98f529ab752288e24013c10a6e091f96e7bc6407659089b0e0fa0b62">IK_AST</a> &&</div>
+<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span> <span class="stringliteral">"FIXME: AST inputs not yet supported here!"</span>);</div>
+<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span> assert(Clang->getFrontendOpts().Inputs[0].getKind() != <a class="code" href="namespaceclang.html#a7f0d2857e98f529ab752288e24013c10af41e61b39aea3f735b903fdf7cd5049c">IK_LLVM_IR</a> &&</div>
+<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span> <span class="stringliteral">"IR inputs not support here!"</span>);</div>
+<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span> </div>
+<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span> <span class="comment">// Clear out old caches and data.</span></div>
+<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span> <a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a0e230f0a2fffbc40b97a9971e6b3939f" title="Reset the state of the diagnostic object to its initial configuration.">Reset</a>();</div>
+<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span> <a class="code" href="namespaceclang.html#a2eac92f50469af565dbfb390534b2ffd">ProcessWarningOptions</a>(<a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>(), Clang->getDiagnosticOpts());</div>
+<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span> <a class="code" href="ASTUnit_8cpp.html#a73c097a6945ffc4915084c7ad989fdb3">checkAndRemoveNonDriverDiags</a>(StoredDiagnostics);</div>
+<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span> TopLevelDecls.clear();</div>
+<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span> TopLevelDeclsInPreamble.clear();</div>
+<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span> </div>
+<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span> <span class="comment">// Create a file manager object to provide access to and cache the filesystem.</span></div>
+<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span> Clang->setFileManager(<span class="keyword">new</span> <a class="code" href="classclang_1_1FileManager.html" title="Implements support for file system lookup, file system caching, and directory search management...">FileManager</a>(Clang->getFileSystemOpts()));</div>
+<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span> </div>
+<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span> <span class="comment">// Create the source manager.</span></div>
+<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span> Clang->setSourceManager(<span class="keyword">new</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a>(<a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>(),</div>
+<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span> Clang->getFileManager()));</div>
+<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span> </div>
+<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<PrecompilePreambleAction></a> Act;</div>
+<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span> Act.reset(<span class="keyword">new</span> PrecompilePreambleAction(*<span class="keyword">this</span>));</div>
+<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span> <span class="keywordflow">if</span> (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) {</div>
+<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span> llvm::sys::fs::remove(FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a7b09d06e2ab796fc22e43f67a6f36b5b" title="The output file, if any.">OutputFile</a>);</div>
+<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span> Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#aafeaef58fac32a124550eda9f9317185">clear</a>();</div>
+<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span> PreambleRebuildCounter = <a class="code" href="ASTUnit_8cpp.html#a7164eb680f1c0804fb14e4a16ced7035" title="After failing to build a precompiled preamble (due to errors in the source that occurs in the preambl...">DefaultPreambleRebuildInterval</a>;</div>
+<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#add722741ec7cbaef2e78c0b7fda1918b">eraseRemappedFile</a>(</div>
+<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af80ead86d2fa9d64e8e3cd8f76a65263">remapped_file_buffer_end</a>() - 1);</div>
+<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span> }</div>
+<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span> </div>
+<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span> Act->Execute();</div>
+<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span> Act->EndSourceFile();</div>
+<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span> </div>
+<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span> <span class="keywordflow">if</span> (!Act->hasEmittedPreamblePCH()) {</div>
+<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span> <span class="comment">// The preamble PCH failed (e.g. there was a module loading fatal error),</span></div>
+<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span> <span class="comment">// so no precompiled header was generated. Forget that we even tried.</span></div>
+<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span> <span class="comment">// FIXME: Should we leave a note for ourselves to try again?</span></div>
+<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span> llvm::sys::fs::remove(FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a7b09d06e2ab796fc22e43f67a6f36b5b" title="The output file, if any.">OutputFile</a>);</div>
+<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span> Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#aafeaef58fac32a124550eda9f9317185">clear</a>();</div>
+<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span> TopLevelDeclsInPreamble.clear();</div>
+<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span> PreambleRebuildCounter = <a class="code" href="ASTUnit_8cpp.html#a7164eb680f1c0804fb14e4a16ced7035" title="After failing to build a precompiled preamble (due to errors in the source that occurs in the preambl...">DefaultPreambleRebuildInterval</a>;</div>
+<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#add722741ec7cbaef2e78c0b7fda1918b">eraseRemappedFile</a>(</div>
+<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af80ead86d2fa9d64e8e3cd8f76a65263">remapped_file_buffer_end</a>() - 1);</div>
+<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span> }</div>
+<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span> </div>
+<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span> <span class="comment">// Transfer any diagnostics generated when parsing the preamble into the set</span></div>
+<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span> <span class="comment">// of preamble diagnostics.</span></div>
+<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span> PreambleDiagnostics.clear();</div>
+<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span> PreambleDiagnostics.insert(PreambleDiagnostics.end(), </div>
+<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span> <a class="code" href="classclang_1_1ASTUnit.html#a8d8c378053956405bab09bf519b75517">stored_diag_afterDriver_begin</a>(), <a class="code" href="classclang_1_1ASTUnit.html#ad85efd4d173bf8675473be8fe04aca0f">stored_diag_end</a>());</div>
+<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span> <a class="code" href="ASTUnit_8cpp.html#a73c097a6945ffc4915084c7ad989fdb3">checkAndRemoveNonDriverDiags</a>(StoredDiagnostics);</div>
+<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span> </div>
+<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span> <span class="comment">// Keep track of the preamble we precompiled.</span></div>
+<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span> <a class="code" href="ASTUnit_8cpp.html#ad8391c60e1ad7821d7b0e0ce4a6e47e7">setPreambleFile</a>(<span class="keyword">this</span>, FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a7b09d06e2ab796fc22e43f67a6f36b5b" title="The output file, if any.">OutputFile</a>);</div>
+<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span> NumWarningsInPreamble = <a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a2eb47a0b7af348c412f4039581d71ff6">getNumWarnings</a>();</div>
+<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span> </div>
+<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span> <span class="comment">// Keep track of all of the files that the source manager knows about,</span></div>
+<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span> <span class="comment">// so we can verify whether they have changed or not.</span></div>
+<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span> FilesInPreamble.clear();</div>
+<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &SourceMgr = Clang->getSourceManager();</div>
+<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span> <span class="keyword">const</span> llvm::MemoryBuffer *MainFileBuffer</div>
+<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span> = SourceMgr.<a class="code" href="classclang_1_1SourceManager.html#a35f2a3fbf5cf9bff34b1d7f613096437" title="Return the buffer for the specified FileID.">getBuffer</a>(SourceMgr.<a class="code" href="classclang_1_1SourceManager.html#ad3ac47ab7380c82d19243a2db765479c" title="Returns the FileID of the main source file.">getMainFileID</a>());</div>
+<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1SourceManager.html#a332403dd0769544846b0fe7673b3a4c5">SourceManager::fileinfo_iterator</a> F = SourceMgr.<a class="code" href="classclang_1_1SourceManager.html#aa8f4e80c390577cd148e99ae22d1d06c">fileinfo_begin</a>(),</div>
+<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span> FEnd = SourceMgr.<a class="code" href="classclang_1_1SourceManager.html#aac5161c96defcbd56ee7ca4dd5a2c56f">fileinfo_end</a>();</div>
+<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span> F != FEnd;</div>
+<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span> ++F) {</div>
+<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *File = F->second->OrigEntry;</div>
+<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span> <span class="keywordflow">if</span> (!File || F->second->getRawBuffer() == MainFileBuffer)</div>
+<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span> <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span> </div>
+<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span> FilesInPreamble[File-><a class="code" href="classclang_1_1FileEntry.html#a94ddac74f217c35e19420dd6c419e25f">getName</a>()]</div>
+<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span> = std::make_pair(F->second->getSize(), File-><a class="code" href="classclang_1_1FileEntry.html#a2df68d04c7f85abdcf5075db7778e033">getModificationTime</a>());</div>
+<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span> }</div>
+<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span> </div>
+<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span> PreambleRebuildCounter = 1;</div>
+<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#add722741ec7cbaef2e78c0b7fda1918b">eraseRemappedFile</a>(</div>
+<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af80ead86d2fa9d64e8e3cd8f76a65263">remapped_file_buffer_end</a>() - 1);</div>
+<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span> </div>
+<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span> <span class="comment">// If the hash of top-level entities differs from the hash of the top-level</span></div>
+<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span> <span class="comment">// entities the last time we rebuilt the preamble, clear out the completion</span></div>
+<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span> <span class="comment">// cache.</span></div>
+<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span> <span class="keywordflow">if</span> (CurrentTopLevelHashValue != PreambleTopLevelHashValue) {</div>
+<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span> CompletionCacheTopLevelHashValue = 0;</div>
+<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span> PreambleTopLevelHashValue = CurrentTopLevelHashValue;</div>
+<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span> }</div>
+<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span> </div>
+<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span> <span class="keywordflow">return</span> <a class="code" href="ASTUnit_8cpp.html#a20dd6baec9fe74a1e64bbf61275664ae">CreatePaddedMainFileBuffer</a>(NewPreamble.first, </div>
+<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span> PreambleReservedSize,</div>
+<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span> FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a95a3f648ae866e50b78434e049d87218" title="The input files and their types.">Inputs</a>[0].getFile());</div>
+<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span> }</div>
+<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span> </div>
+<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span> <span class="keywordtype">void</span> ASTUnit::RealizeTopLevelDeclsFromPreamble() {</div>
+<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span> std::vector<Decl *> Resolved;</div>
+<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span> Resolved.reserve(TopLevelDeclsInPreamble.size());</div>
+<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span> <a class="code" href="classclang_1_1ExternalASTSource.html" title="Abstract interface for external sources of AST nodes.">ExternalASTSource</a> &Source = *<a class="code" href="classclang_1_1ASTUnit.html#a28cc35bdcdfd434ee5f0a16c1ab2f87e">getASTContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a28b9de2cb15f599454b7b92cfa65d7e3" title="Retrieve a pointer to the external AST source associated with this AST context, if any...">getExternalSource</a>();</div>
+<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, N = TopLevelDeclsInPreamble.size(); I != N; ++I) {</div>
+<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span> <span class="comment">// Resolve the declaration ID to an actual declaration, possibly</span></div>
+<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span> <span class="comment">// deserializing the declaration in the process.</span></div>
+<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D = Source.<a class="code" href="classclang_1_1ExternalASTSource.html#abf6b21c4e3af3b542dfb5367fba5fa9f" title="Resolve a declaration ID into a declaration, potentially building a new declaration.">GetExternalDecl</a>(TopLevelDeclsInPreamble[I]);</div>
+<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span> <span class="keywordflow">if</span> (D)</div>
+<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span> Resolved.push_back(D);</div>
+<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span> }</div>
+<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span> TopLevelDeclsInPreamble.clear();</div>
+<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span> TopLevelDecls.insert(TopLevelDecls.begin(), Resolved.begin(), Resolved.end());</div>
+<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span> }</div>
+<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span> </div>
+<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span> <span class="keywordtype">void</span> ASTUnit::transferASTDataFromCompilerInstance(<a class="code" href="classclang_1_1CompilerInstance.html">CompilerInstance</a> &CI) {</div>
+<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span> <span class="comment">// Steal the created target, context, and preprocessor.</span></div>
+<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span> TheSema.reset(CI.<a class="code" href="classclang_1_1CompilerInstance.html#a55df5f7516bec23cb8467e664cd49da6">takeSema</a>());</div>
+<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span> Consumer.reset(CI.<a class="code" href="classclang_1_1CompilerInstance.html#acca0f427ae072a2ab443e57ef26b6a2c">takeASTConsumer</a>());</div>
+<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span> Ctx = &CI.<a class="code" href="classclang_1_1CompilerInstance.html#a48b17496817d8a900aaebf55ed16fd56">getASTContext</a>();</div>
+<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span> PP = &CI.<a class="code" href="classclang_1_1CompilerInstance.html#aaf2cc0754c4058a1eb80f973472d694a" title="Return the current preprocessor.">getPreprocessor</a>();</div>
+<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span> CI.<a class="code" href="classclang_1_1CompilerInstance.html#a08d4c3c5277d0a97f2ae6e87ea7f6d68" title="setSourceManager - Replace the current source manager.">setSourceManager</a>(0);</div>
+<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span> CI.<a class="code" href="classclang_1_1CompilerInstance.html#a00535f0955b58840431fd633f856cdc4" title="setFileManager - Replace the current file manager.">setFileManager</a>(0);</div>
+<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span> Target = &CI.<a class="code" href="classclang_1_1CompilerInstance.html#ab733722f416a30b1ed7550c1555dbf80">getTarget</a>();</div>
+<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span> Reader = CI.<a class="code" href="classclang_1_1CompilerInstance.html#a7c975f2285d258dff4181213ed30d8e5">getModuleManager</a>();</div>
+<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span> HadModuleLoaderFatalFailure = CI.<a class="code" href="classclang_1_1CompilerInstance.html#a9c774764f95704d9fc2ae9110fc2dded">hadModuleLoaderFatalFailure</a>();</div>
+<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span> }</div>
+<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span> </div>
+<div class="line"><a name="l01733"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a08b10e4e3224f0bd5ff1a5e3dd58aa6c"> 1733</a></span> StringRef <a class="code" href="classclang_1_1ASTUnit.html#a08b10e4e3224f0bd5ff1a5e3dd58aa6c">ASTUnit::getMainFileName</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span> <span class="keywordflow">if</span> (Invocation && !Invocation-><a class="code" href="classclang_1_1CompilerInvocation.html#af457a44dcc046c3e14689989703c41c3">getFrontendOpts</a>().<a class="code" href="classclang_1_1FrontendOptions.html#a95a3f648ae866e50b78434e049d87218" title="The input files and their types.">Inputs</a>.empty()) {</div>
+<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FrontendInputFile.html" title="An input file for the front end.">FrontendInputFile</a> &<a class="code" href="JSONCompilationDatabase_8cpp.html#aece53df006a4f11f7ebaac621f5d3bdb">Input</a> = Invocation-><a class="code" href="classclang_1_1CompilerInvocation.html#af457a44dcc046c3e14689989703c41c3">getFrontendOpts</a>().<a class="code" href="classclang_1_1FrontendOptions.html#a95a3f648ae866e50b78434e049d87218" title="The input files and their types.">Inputs</a>[0];</div>
+<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span> <span class="keywordflow">if</span> (Input.<a class="code" href="classclang_1_1FrontendInputFile.html#af51b7b2417d6b111be3a71f07c7bf110">isFile</a>())</div>
+<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span> <span class="keywordflow">return</span> Input.<a class="code" href="classclang_1_1FrontendInputFile.html#a63b255666956f6c99367dcbdf0422bbe">getFile</a>();</div>
+<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span> <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span> <span class="keywordflow">return</span> Input.<a class="code" href="classclang_1_1FrontendInputFile.html#ad8709fbf3a8183c3d5dc7cc517072e6c">getBuffer</a>()->getBufferIdentifier();</div>
+<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span> }</div>
+<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span> </div>
+<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span> <span class="keywordflow">if</span> (SourceMgr) {</div>
+<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *</div>
+<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span> FE = SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#a89a4d1fa8ccc458bce84b0d72b4545db" title="Returns the FileEntry record for the provided FileID.">getFileEntryForID</a>(SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ad3ac47ab7380c82d19243a2db765479c" title="Returns the FileID of the main source file.">getMainFileID</a>()))</div>
+<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span> <span class="keywordflow">return</span> FE->getName();</div>
+<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span> }</div>
+<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span> </div>
+<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span> <span class="keywordflow">return</span> StringRef();</div>
+<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span> }</div>
+<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span> </div>
+<div class="line"><a name="l01751"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a4e0f0736ace0410d76bd125d400fc52d"> 1751</a></span> StringRef <a class="code" href="classclang_1_1ASTUnit.html#a4e0f0736ace0410d76bd125d400fc52d" title="If this ASTUnit came from an AST file, returns the filename for it.">ASTUnit::getASTFileName</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span> <span class="keywordflow">if</span> (!<a class="code" href="classclang_1_1ASTUnit.html#a096e29cf5e6208b218149ef7eb715144">isMainFileAST</a>())</div>
+<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span> <span class="keywordflow">return</span> StringRef();</div>
+<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span> </div>
+<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span> <a class="code" href="classclang_1_1serialization_1_1ModuleFile.html" title="Information about a module that has been loaded by the ASTReader.">serialization::ModuleFile</a> &</div>
+<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span> Mod = Reader-><a class="code" href="classclang_1_1ASTReader.html#addc10b73f09905870c78736345a691cc" title="Retrieve the module manager.">getModuleManager</a>().<a class="code" href="classclang_1_1serialization_1_1ModuleManager.html#a3789c7d5f6dcec7382ef69d452607164" title="Returns the primary module associated with the manager, that is, the first module loaded...">getPrimaryModule</a>();</div>
+<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span> <span class="keywordflow">return</span> Mod.<a class="code" href="classclang_1_1serialization_1_1ModuleFile.html#aa4695cae700072908654c579d193ddf1" title="The file name of the module file.">FileName</a>;</div>
+<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span> }</div>
+<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span> </div>
+<div class="line"><a name="l01760"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#acfffa304c392b13c3e1d78932e906331"> 1760</a></span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *<a class="code" href="classclang_1_1ASTUnit.html#acfffa304c392b13c3e1d78932e906331" title="Create a ASTUnit. Gets ownership of the passed CompilerInvocation.">ASTUnit::create</a>(<a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a> *CI,</div>
+<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> Diags,</div>
+<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span> <span class="keywordtype">bool</span> CaptureDiagnostics,</div>
+<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span> <span class="keywordtype">bool</span> UserFilesAreVolatile) {</div>
+<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTUnit></a> AST;</div>
+<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span> AST.reset(<span class="keyword">new</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a>(<span class="keyword">false</span>));</div>
+<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span> ConfigureDiags(Diags, 0, 0, *AST, CaptureDiagnostics);</div>
+<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span> AST->Diagnostics = Diags;</div>
+<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span> AST->Invocation = CI;</div>
+<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span> AST->FileSystemOpts = CI-><a class="code" href="classclang_1_1CompilerInvocation.html#a7d62299f8b36b09c37663996e6940621">getFileSystemOpts</a>();</div>
+<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span> AST->FileMgr = <span class="keyword">new</span> <a class="code" href="classclang_1_1FileManager.html" title="Implements support for file system lookup, file system caching, and directory search management...">FileManager</a>(AST->FileSystemOpts);</div>
+<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span> AST->UserFilesAreVolatile = UserFilesAreVolatile;</div>
+<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span> AST->SourceMgr = <span class="keyword">new</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a>(AST->getDiagnostics(), *AST->FileMgr,</div>
+<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span> UserFilesAreVolatile);</div>
+<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span> </div>
+<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span> <span class="keywordflow">return</span> AST.take();</div>
+<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span> }</div>
+<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span> </div>
+<div class="line"><a name="l01778"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a4ca266e64faf4a50d678a1179d31d5b4"> 1778</a></span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *<a class="code" href="classclang_1_1ASTUnit.html#a4ca266e64faf4a50d678a1179d31d5b4" title="Create an ASTUnit from a source file, via a CompilerInvocation object, by invoking the optionally pro...">ASTUnit::LoadFromCompilerInvocationAction</a>(<a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a> *CI,</div>
+<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> Diags,</div>
+<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span> <a class="code" href="classclang_1_1ASTFrontendAction.html" title="Abstract base class to use for AST consumer-based frontend actions.">ASTFrontendAction</a> *<a class="code" href="Tooling_8cpp.html#a611b216472a9171383c588b3c166b0a1">Action</a>,</div>
+<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *Unit,</div>
+<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span> <span class="keywordtype">bool</span> Persistent,</div>
+<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span> StringRef ResourceFilesPath,</div>
+<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span> <span class="keywordtype">bool</span> OnlyLocalDecls,</div>
+<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span> <span class="keywordtype">bool</span> CaptureDiagnostics,</div>
+<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span> <span class="keywordtype">bool</span> PrecompilePreamble,</div>
+<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span> <span class="keywordtype">bool</span> CacheCodeCompletionResults,</div>
+<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span> <span class="keywordtype">bool</span> IncludeBriefCommentsInCodeCompletion,</div>
+<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span> <span class="keywordtype">bool</span> UserFilesAreVolatile,</div>
+<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTUnit></a> *ErrAST) {</div>
+<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span> assert(CI && <span class="stringliteral">"A CompilerInvocation is required"</span>);</div>
+<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span> </div>
+<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTUnit></a> OwnAST;</div>
+<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *AST = Unit;</div>
+<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span> <span class="keywordflow">if</span> (!AST) {</div>
+<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span> <span class="comment">// Create the AST unit.</span></div>
+<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span> OwnAST.reset(<a class="code" href="classclang_1_1ASTUnit.html#acfffa304c392b13c3e1d78932e906331" title="Create a ASTUnit. Gets ownership of the passed CompilerInvocation.">create</a>(CI, Diags, CaptureDiagnostics, UserFilesAreVolatile));</div>
+<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span> AST = OwnAST.get();</div>
+<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span> }</div>
+<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span> </div>
+<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span> <span class="keywordflow">if</span> (!ResourceFilesPath.empty()) {</div>
+<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span> <span class="comment">// Override the resources path.</span></div>
+<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span> CI-><a class="code" href="classclang_1_1CompilerInvocationBase.html#a384464860a01f1954163a02df320e4e4">getHeaderSearchOpts</a>().<a class="code" href="classclang_1_1HeaderSearchOptions.html#ac3915152e45f4ff70c81bd8f48947006">ResourceDir</a> = ResourceFilesPath;</div>
+<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span> }</div>
+<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span> AST->OnlyLocalDecls = OnlyLocalDecls;</div>
+<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span> AST->CaptureDiagnostics = CaptureDiagnostics;</div>
+<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span> <span class="keywordflow">if</span> (PrecompilePreamble)</div>
+<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span> AST->PreambleRebuildCounter = 2;</div>
+<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span> AST->TUKind = Action ? Action-><a class="code" href="classclang_1_1FrontendAction.html#ac262512201f607d0aa6c561d865685b0" title="For AST-based actions, the kind of translation unit we're handling.">getTranslationUnitKind</a>() : <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21a5d885810d2d2df3c7bb2acb219f7c0e8" title="The translation unit is a complete translation unit.">TU_Complete</a>;</div>
+<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span> AST->ShouldCacheCodeCompletionResults = CacheCodeCompletionResults;</div>
+<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span> AST->IncludeBriefCommentsInCodeCompletion</div>
+<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span> = IncludeBriefCommentsInCodeCompletion;</div>
+<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span> </div>
+<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span> llvm::CrashRecoveryContextCleanupRegistrar<ASTUnit></div>
+<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span> ASTUnitCleanup(OwnAST.get());</div>
+<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span> llvm::CrashRecoveryContextCleanupRegistrar<<a class="code" href="classclang_1_1DiagnosticsEngine.html" title="Concrete class used by the front-end to report problems and issues.">DiagnosticsEngine</a>,</div>
+<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span> llvm::CrashRecoveryContextReleaseRefCleanup<DiagnosticsEngine> ></div>
+<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span> DiagCleanup(Diags.getPtr());</div>
+<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span> </div>
+<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span> <span class="comment">// We'll manage file buffers ourselves.</span></div>
+<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span> CI-><a class="code" href="classclang_1_1CompilerInvocationBase.html#af26aa2f4a5df780a3b5898eef70763d5">getPreprocessorOpts</a>().<a class="code" href="classclang_1_1PreprocessorOptions.html#a47eb4ea58ec9f1b60266df38f6840ed6" title="Whether the compiler instance should retain (i.e., not free) the buffers associated with remapped fil...">RetainRemappedFileBuffers</a> = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span> CI-><a class="code" href="classclang_1_1CompilerInvocation.html#af457a44dcc046c3e14689989703c41c3">getFrontendOpts</a>().<a class="code" href="classclang_1_1FrontendOptions.html#adccf396bebfe929285746d103e9d90b3" title="Disable memory freeing on exit.">DisableFree</a> = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span> <a class="code" href="namespaceclang.html#a2eac92f50469af565dbfb390534b2ffd">ProcessWarningOptions</a>(AST-><a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>(), CI-><a class="code" href="classclang_1_1CompilerInvocationBase.html#ac59ebcd24489a402872ebb041e8bdc4c">getDiagnosticOpts</a>());</div>
+<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span> </div>
+<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span> <span class="comment">// Create the compiler instance to use for building the AST.</span></div>
+<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<CompilerInstance></a> Clang(<span class="keyword">new</span> <a class="code" href="classclang_1_1CompilerInstance.html">CompilerInstance</a>());</div>
+<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span> </div>
+<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span> llvm::CrashRecoveryContextCleanupRegistrar<CompilerInstance></div>
+<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span> CICleanup(Clang.get());</div>
+<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span> </div>
+<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span> Clang->setInvocation(CI);</div>
+<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span> AST->OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile();</div>
+<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span> </div>
+<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span> <span class="comment">// Set up diagnostics, capturing any diagnostics that would</span></div>
+<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span> <span class="comment">// otherwise be dropped.</span></div>
+<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span> Clang->setDiagnostics(&AST-><a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>());</div>
+<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span> </div>
+<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span> <span class="comment">// Create the target instance.</span></div>
+<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span> Clang->setTarget(<a class="code" href="classclang_1_1TargetInfo.html#a4f871040b846cf9e01dd66a8b46e2985" title="Construct a target for the given options.">TargetInfo::CreateTargetInfo</a>(Clang->getDiagnostics(),</div>
+<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span> &Clang->getTargetOpts()));</div>
+<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span> <span class="keywordflow">if</span> (!Clang->hasTarget())</div>
+<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span> </div>
+<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span> <span class="comment">// Inform the target of the language options.</span></div>
+<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span> <span class="comment">//</span></div>
+<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span> <span class="comment">// FIXME: We shouldn't need to do this, the target should be immutable once</span></div>
+<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span> <span class="comment">// created. This complexity should be lifted elsewhere.</span></div>
+<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span> Clang->getTarget().setForcedLangOptions(Clang->getLangOpts());</div>
+<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span> </div>
+<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span> assert(Clang->getFrontendOpts().Inputs.size() == 1 &&</div>
+<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span> <span class="stringliteral">"Invocation must have exactly one source file!"</span>);</div>
+<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span> assert(Clang->getFrontendOpts().Inputs[0].getKind() != <a class="code" href="namespaceclang.html#a7f0d2857e98f529ab752288e24013c10a6e091f96e7bc6407659089b0e0fa0b62">IK_AST</a> &&</div>
+<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span> <span class="stringliteral">"FIXME: AST inputs not yet supported here!"</span>);</div>
+<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span> assert(Clang->getFrontendOpts().Inputs[0].getKind() != <a class="code" href="namespaceclang.html#a7f0d2857e98f529ab752288e24013c10af41e61b39aea3f735b903fdf7cd5049c">IK_LLVM_IR</a> &&</div>
+<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span> <span class="stringliteral">"IR inputs not supported here!"</span>);</div>
+<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span> </div>
+<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span> <span class="comment">// Configure the various subsystems.</span></div>
+<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span> AST->TheSema.reset();</div>
+<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span> AST->Ctx = 0;</div>
+<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span> AST->PP = 0;</div>
+<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span> AST->Reader = 0;</div>
+<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span> </div>
+<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span> <span class="comment">// Create a file manager object to provide access to and cache the filesystem.</span></div>
+<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span> Clang->setFileManager(&AST-><a class="code" href="classclang_1_1ASTUnit.html#a909401bc1781efef503af81509be57c7">getFileManager</a>());</div>
+<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span> </div>
+<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span> <span class="comment">// Create the source manager.</span></div>
+<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span> Clang->setSourceManager(&AST-><a class="code" href="classclang_1_1ASTUnit.html#ac04280e780aac7894aa93e2cdda3469a">getSourceManager</a>());</div>
+<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span> </div>
+<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span> <a class="code" href="classclang_1_1ASTFrontendAction.html" title="Abstract base class to use for AST consumer-based frontend actions.">ASTFrontendAction</a> *Act = <a class="code" href="Tooling_8cpp.html#a611b216472a9171383c588b3c166b0a1">Action</a>;</div>
+<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span> </div>
+<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<TopLevelDeclTrackerAction></a> TrackerAct;</div>
+<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span> <span class="keywordflow">if</span> (!Act) {</div>
+<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span> TrackerAct.reset(<span class="keyword">new</span> TopLevelDeclTrackerAction(*AST));</div>
+<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span> Act = TrackerAct.get();</div>
+<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span> }</div>
+<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span> </div>
+<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span> llvm::CrashRecoveryContextCleanupRegistrar<TopLevelDeclTrackerAction></div>
+<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span> ActCleanup(TrackerAct.get());</div>
+<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span> </div>
+<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span> <span class="keywordflow">if</span> (!Act-><a class="code" href="classclang_1_1FrontendAction.html#ad771b06cb303a508bac775897363b73d" title="Prepare the action for processing the input file Input.">BeginSourceFile</a>(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) {</div>
+<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span> AST->transferASTDataFromCompilerInstance(*Clang);</div>
+<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span> <span class="keywordflow">if</span> (OwnAST && ErrAST)</div>
+<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span> ErrAST->swap(OwnAST);</div>
+<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span> </div>
+<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span> }</div>
+<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span> </div>
+<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span> <span class="keywordflow">if</span> (Persistent && !TrackerAct) {</div>
+<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span> Clang->getPreprocessor().addPPCallbacks(</div>
+<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span> <span class="keyword">new</span> MacroDefinitionTrackerPPCallbacks(AST-><a class="code" href="classclang_1_1ASTUnit.html#a77894d8e68e5dda9990130035cd39957" title="Retrieve a reference to the current top-level name hash value.">getCurrentTopLevelHashValue</a>()));</div>
+<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span> std::vector<ASTConsumer*> Consumers;</div>
+<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span> <span class="keywordflow">if</span> (Clang->hasASTConsumer())</div>
+<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span> Consumers.push_back(Clang->takeASTConsumer());</div>
+<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span> Consumers.push_back(<span class="keyword">new</span> TopLevelDeclTrackerConsumer(*AST,</div>
+<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span> AST-><a class="code" href="classclang_1_1ASTUnit.html#a77894d8e68e5dda9990130035cd39957" title="Retrieve a reference to the current top-level name hash value.">getCurrentTopLevelHashValue</a>()));</div>
+<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span> Clang->setASTConsumer(<span class="keyword">new</span> <a class="code" href="classclang_1_1MultiplexConsumer.html">MultiplexConsumer</a>(Consumers));</div>
+<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span> }</div>
+<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span> <span class="keywordflow">if</span> (!Act-><a class="code" href="classclang_1_1FrontendAction.html#a01490ca84fdda64ce002f93508018f9a" title="Set the source manager's main input file, and run the action.">Execute</a>()) {</div>
+<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span> AST->transferASTDataFromCompilerInstance(*Clang);</div>
+<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span> <span class="keywordflow">if</span> (OwnAST && ErrAST)</div>
+<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span> ErrAST->swap(OwnAST);</div>
+<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span> </div>
+<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span> }</div>
+<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span> </div>
+<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span> <span class="comment">// Steal the created target, context, and preprocessor.</span></div>
+<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span> AST->transferASTDataFromCompilerInstance(*Clang);</div>
+<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span> </div>
+<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span> Act-><a class="code" href="classclang_1_1FrontendAction.html#a0c0da9a416e556c83ab65e1a2691c0f2" title="Perform any per-file post processing, deallocate per-file objects, and run statistics and output file...">EndSourceFile</a>();</div>
+<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span> </div>
+<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span> <span class="keywordflow">if</span> (OwnAST)</div>
+<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span> <span class="keywordflow">return</span> OwnAST.take();</div>
+<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span> <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span> <span class="keywordflow">return</span> AST;</div>
+<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span> }</div>
+<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span> </div>
+<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span> <span class="keywordtype">bool</span> ASTUnit::LoadFromCompilerInvocation(<span class="keywordtype">bool</span> PrecompilePreamble) {</div>
+<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span> <span class="keywordflow">if</span> (!Invocation)</div>
+<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span> </div>
+<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span> <span class="comment">// We'll manage file buffers ourselves.</span></div>
+<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span> Invocation-><a class="code" href="classclang_1_1CompilerInvocationBase.html#af26aa2f4a5df780a3b5898eef70763d5">getPreprocessorOpts</a>().<a class="code" href="classclang_1_1PreprocessorOptions.html#a47eb4ea58ec9f1b60266df38f6840ed6" title="Whether the compiler instance should retain (i.e., not free) the buffers associated with remapped fil...">RetainRemappedFileBuffers</a> = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span> Invocation-><a class="code" href="classclang_1_1CompilerInvocation.html#af457a44dcc046c3e14689989703c41c3">getFrontendOpts</a>().<a class="code" href="classclang_1_1FrontendOptions.html#adccf396bebfe929285746d103e9d90b3" title="Disable memory freeing on exit.">DisableFree</a> = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span> <a class="code" href="namespaceclang.html#a2eac92f50469af565dbfb390534b2ffd">ProcessWarningOptions</a>(<a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>(), Invocation-><a class="code" href="classclang_1_1CompilerInvocationBase.html#ac59ebcd24489a402872ebb041e8bdc4c">getDiagnosticOpts</a>());</div>
+<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span> </div>
+<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span> llvm::MemoryBuffer *OverrideMainBuffer = 0;</div>
+<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span> <span class="keywordflow">if</span> (PrecompilePreamble) {</div>
+<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span> PreambleRebuildCounter = 2;</div>
+<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span> OverrideMainBuffer</div>
+<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span> = getMainBufferWithPrecompiledPreamble(*Invocation);</div>
+<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span> }</div>
+<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span> </div>
+<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span> SimpleTimer ParsingTimer(WantTiming);</div>
+<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span> ParsingTimer.setOutput(<span class="stringliteral">"Parsing "</span> + <a class="code" href="classclang_1_1ASTUnit.html#a08b10e4e3224f0bd5ff1a5e3dd58aa6c">getMainFileName</a>());</div>
+<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span> </div>
+<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span> llvm::CrashRecoveryContextCleanupRegistrar<llvm::MemoryBuffer></div>
+<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span> MemBufferCleanup(OverrideMainBuffer);</div>
+<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span> </div>
+<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span> <span class="keywordflow">return</span> Parse(OverrideMainBuffer);</div>
+<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span> }</div>
+<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span> </div>
+<div class="line"><a name="l01946"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a9bf8f8430720b2ea7fc9e9850067f621"> 1946</a></span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *ASTUnit::LoadFromCompilerInvocation(<a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a> *CI,</div>
+<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> Diags,</div>
+<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span> <span class="keywordtype">bool</span> OnlyLocalDecls,</div>
+<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span> <span class="keywordtype">bool</span> CaptureDiagnostics,</div>
+<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span> <span class="keywordtype">bool</span> PrecompilePreamble,</div>
+<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span> <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21" title="Describes the kind of translation unit being processed.">TranslationUnitKind</a> TUKind,</div>
+<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span> <span class="keywordtype">bool</span> CacheCodeCompletionResults,</div>
+<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span> <span class="keywordtype">bool</span> IncludeBriefCommentsInCodeCompletion,</div>
+<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span> <span class="keywordtype">bool</span> UserFilesAreVolatile) {</div>
+<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span> <span class="comment">// Create the AST unit.</span></div>
+<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTUnit></a> AST;</div>
+<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span> AST.reset(<span class="keyword">new</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a>(<span class="keyword">false</span>));</div>
+<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span> ConfigureDiags(Diags, 0, 0, *AST, CaptureDiagnostics);</div>
+<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span> AST->Diagnostics = Diags;</div>
+<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span> AST->OnlyLocalDecls = OnlyLocalDecls;</div>
+<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span> AST->CaptureDiagnostics = CaptureDiagnostics;</div>
+<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span> AST->TUKind = TUKind;</div>
+<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span> AST->ShouldCacheCodeCompletionResults = CacheCodeCompletionResults;</div>
+<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span> AST->IncludeBriefCommentsInCodeCompletion</div>
+<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span> = IncludeBriefCommentsInCodeCompletion;</div>
+<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span> AST->Invocation = CI;</div>
+<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span> AST->FileSystemOpts = CI-><a class="code" href="classclang_1_1CompilerInvocation.html#a7d62299f8b36b09c37663996e6940621">getFileSystemOpts</a>();</div>
+<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span> AST->FileMgr = <span class="keyword">new</span> <a class="code" href="classclang_1_1FileManager.html" title="Implements support for file system lookup, file system caching, and directory search management...">FileManager</a>(AST->FileSystemOpts);</div>
+<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span> AST->UserFilesAreVolatile = UserFilesAreVolatile;</div>
+<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span> </div>
+<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span> llvm::CrashRecoveryContextCleanupRegistrar<ASTUnit></div>
+<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span> ASTUnitCleanup(AST.get());</div>
+<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span> llvm::CrashRecoveryContextCleanupRegistrar<<a class="code" href="classclang_1_1DiagnosticsEngine.html" title="Concrete class used by the front-end to report problems and issues.">DiagnosticsEngine</a>,</div>
+<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span> llvm::CrashRecoveryContextReleaseRefCleanup<DiagnosticsEngine> ></div>
+<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span> DiagCleanup(Diags.getPtr());</div>
+<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span> </div>
+<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span> <span class="keywordflow">return</span> AST->LoadFromCompilerInvocation(PrecompilePreamble)? 0 : AST.take();</div>
+<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span> }</div>
+<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span> </div>
+<div class="line"><a name="l01981"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ae2e8358ba4f7158ac19112c6870fba0a"> 1981</a></span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *<a class="code" href="classclang_1_1ASTUnit.html#ae2e8358ba4f7158ac19112c6870fba0a">ASTUnit::LoadFromCommandLine</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> **ArgBegin,</div>
+<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span> <span class="keyword">const</span> <span class="keywordtype">char</span> **ArgEnd,</div>
+<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> Diags,</div>
+<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span> StringRef ResourceFilesPath,</div>
+<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span> <span class="keywordtype">bool</span> OnlyLocalDecls,</div>
+<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span> <span class="keywordtype">bool</span> CaptureDiagnostics,</div>
+<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span> <a class="code" href="classclang_1_1ASTUnit.html#af409234e858b8fcd48bcd81bd86ee9e5" title="A mapping from a file name to the memory buffer that stores the remapped contents of that file...">RemappedFile</a> *RemappedFiles,</div>
+<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span> <span class="keywordtype">unsigned</span> NumRemappedFiles,</div>
+<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span> <span class="keywordtype">bool</span> RemappedFilesKeepOriginalName,</div>
+<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span> <span class="keywordtype">bool</span> PrecompilePreamble,</div>
+<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span> <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21" title="Describes the kind of translation unit being processed.">TranslationUnitKind</a> TUKind,</div>
+<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span> <span class="keywordtype">bool</span> CacheCodeCompletionResults,</div>
+<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span> <span class="keywordtype">bool</span> IncludeBriefCommentsInCodeCompletion,</div>
+<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span> <span class="keywordtype">bool</span> AllowPCHWithCompilerErrors,</div>
+<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span> <span class="keywordtype">bool</span> SkipFunctionBodies,</div>
+<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span> <span class="keywordtype">bool</span> UserFilesAreVolatile,</div>
+<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span> <span class="keywordtype">bool</span> ForSerialization,</div>
+<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTUnit></a> *ErrAST) {</div>
+<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span> <span class="keywordflow">if</span> (!Diags.getPtr()) {</div>
+<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span> <span class="comment">// No diagnostics engine was provided, so create our own diagnostics object</span></div>
+<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span> <span class="comment">// with the default options.</span></div>
+<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span> Diags = <a class="code" href="classclang_1_1CompilerInstance.html#ac82999fc69998009afeb1342e86b04b3">CompilerInstance::createDiagnostics</a>(<span class="keyword">new</span> <a class="code" href="classclang_1_1DiagnosticOptions.html" title="Options for controlling the compiler diagnostics engine.">DiagnosticOptions</a>());</div>
+<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span> }</div>
+<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span> </div>
+<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<StoredDiagnostic, 4></a> StoredDiagnostics;</div>
+<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span> </div>
+<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<CompilerInvocation></a> CI;</div>
+<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span> </div>
+<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span> {</div>
+<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span> </div>
+<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span> CaptureDroppedDiagnostics Capture(CaptureDiagnostics, *Diags, </div>
+<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span> StoredDiagnostics);</div>
+<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span> </div>
+<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span> CI = <a class="code" href="namespaceclang.html#a05f3c391ae3c3f0a6fa8223c8e4211b7">clang::createInvocationFromCommandLine</a>(</div>
+<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span> llvm::makeArrayRef(ArgBegin, ArgEnd),</div>
+<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span> Diags);</div>
+<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span> <span class="keywordflow">if</span> (!CI)</div>
+<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span> }</div>
+<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span> </div>
+<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span> <span class="comment">// Override any files that need remapping</span></div>
+<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0; I != NumRemappedFiles; ++I) {</div>
+<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span> <a class="code" href="classclang_1_1ASTUnit.html#ae83ad523bb8f9f39961398ae5e7e5687">FilenameOrMemBuf</a> fileOrBuf = RemappedFiles[I].second;</div>
+<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> llvm::MemoryBuffer *</div>
+<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span> memBuf = fileOrBuf.dyn_cast<<span class="keyword">const</span> llvm::MemoryBuffer *>()) {</div>
+<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span> CI->getPreprocessorOpts().addRemappedFile(RemappedFiles[I].first, memBuf);</div>
+<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span> } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *fname = fileOrBuf.get<<span class="keyword">const</span> <span class="keywordtype">char</span> *>();</div>
+<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span> CI->getPreprocessorOpts().addRemappedFile(RemappedFiles[I].first, fname);</div>
+<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span> }</div>
+<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span> }</div>
+<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span> <a class="code" href="classclang_1_1PreprocessorOptions.html">PreprocessorOptions</a> &PPOpts = CI->getPreprocessorOpts();</div>
+<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span> PPOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a30f576ae311b7fd39a265a41ab6ab09c" title="True if the SourceManager should report the original file name for contents of files that were remapp...">RemappedFilesKeepOriginalName</a> = RemappedFilesKeepOriginalName;</div>
+<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span> PPOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af6e9d99354f380a90bb472af9e036f0b" title="When true, a PCH with compiler errors will not be rejected.">AllowPCHWithCompilerErrors</a> = AllowPCHWithCompilerErrors;</div>
+<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span> </div>
+<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span> <span class="comment">// Override the resources path.</span></div>
+<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span> CI->getHeaderSearchOpts().ResourceDir = ResourceFilesPath;</div>
+<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span> </div>
+<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span> CI->getFrontendOpts().SkipFunctionBodies = SkipFunctionBodies;</div>
+<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span> </div>
+<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span> <span class="comment">// Create the AST unit.</span></div>
+<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTUnit></a> AST;</div>
+<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span> AST.reset(<span class="keyword">new</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a>(<span class="keyword">false</span>));</div>
+<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span> ConfigureDiags(Diags, ArgBegin, ArgEnd, *AST, CaptureDiagnostics);</div>
+<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span> AST->Diagnostics = Diags;</div>
+<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span> Diags = 0; <span class="comment">// Zero out now to ease cleanup during crash recovery.</span></div>
+<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span> AST->FileSystemOpts = CI->getFileSystemOpts();</div>
+<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span> AST->FileMgr = <span class="keyword">new</span> <a class="code" href="classclang_1_1FileManager.html" title="Implements support for file system lookup, file system caching, and directory search management...">FileManager</a>(AST->FileSystemOpts);</div>
+<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span> AST->OnlyLocalDecls = OnlyLocalDecls;</div>
+<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span> AST->CaptureDiagnostics = CaptureDiagnostics;</div>
+<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span> AST->TUKind = TUKind;</div>
+<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span> AST->ShouldCacheCodeCompletionResults = CacheCodeCompletionResults;</div>
+<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span> AST->IncludeBriefCommentsInCodeCompletion</div>
+<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span> = IncludeBriefCommentsInCodeCompletion;</div>
+<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span> AST->UserFilesAreVolatile = UserFilesAreVolatile;</div>
+<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span> AST->NumStoredDiagnosticsFromDriver = StoredDiagnostics.size();</div>
+<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span> AST->StoredDiagnostics.swap(StoredDiagnostics);</div>
+<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span> AST->Invocation = CI;</div>
+<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span> <span class="keywordflow">if</span> (ForSerialization)</div>
+<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span> AST->WriterData.reset(<span class="keyword">new</span> <a class="code" href="structASTUnit_1_1ASTWriterData.html">ASTWriterData</a>());</div>
+<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span> CI = 0; <span class="comment">// Zero out now to ease cleanup during crash recovery.</span></div>
+<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span> </div>
+<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span> llvm::CrashRecoveryContextCleanupRegistrar<ASTUnit></div>
+<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span> ASTUnitCleanup(AST.get());</div>
+<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span> </div>
+<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span> <span class="keywordflow">if</span> (AST->LoadFromCompilerInvocation(PrecompilePreamble)) {</div>
+<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span> <span class="comment">// Some error occurred, if caller wants to examine diagnostics, pass it the</span></div>
+<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span> <span class="comment">// ASTUnit.</span></div>
+<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span> <span class="keywordflow">if</span> (ErrAST) {</div>
+<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span> AST->StoredDiagnostics.swap(AST->FailedParseDiagnostics);</div>
+<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span> ErrAST->swap(AST);</div>
+<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span> }</div>
+<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span> }</div>
+<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span> </div>
+<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span> <span class="keywordflow">return</span> AST.take();</div>
+<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span> }</div>
+<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span> </div>
+<div class="line"><a name="l02080"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#aa52cd652dee36444742e423189d8ce34"> 2080</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#aa52cd652dee36444742e423189d8ce34" title="Reparse the source files using the same command-line options that were originally used to produce thi...">ASTUnit::Reparse</a>(<a class="code" href="classclang_1_1ASTUnit.html#af409234e858b8fcd48bcd81bd86ee9e5" title="A mapping from a file name to the memory buffer that stores the remapped contents of that file...">RemappedFile</a> *RemappedFiles, <span class="keywordtype">unsigned</span> NumRemappedFiles) {</div>
+<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span> <span class="keywordflow">if</span> (!Invocation)</div>
+<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span> </div>
+<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span> clearFileLevelDecls();</div>
+<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span> </div>
+<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span> SimpleTimer ParsingTimer(WantTiming);</div>
+<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span> ParsingTimer.setOutput(<span class="stringliteral">"Reparsing "</span> + <a class="code" href="classclang_1_1ASTUnit.html#a08b10e4e3224f0bd5ff1a5e3dd58aa6c">getMainFileName</a>());</div>
+<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span> </div>
+<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span> <span class="comment">// Remap files.</span></div>
+<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span> <a class="code" href="classclang_1_1PreprocessorOptions.html">PreprocessorOptions</a> &PPOpts = Invocation-><a class="code" href="classclang_1_1CompilerInvocationBase.html#af26aa2f4a5df780a3b5898eef70763d5">getPreprocessorOpts</a>();</div>
+<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1PreprocessorOptions.html#ab5d93562d1b5eeae0b618779ccd34f5a">PreprocessorOptions::remapped_file_buffer_iterator</a> </div>
+<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span> R = PPOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af278ce7e3d51c74252c8b4e00dc7f42b">remapped_file_buffer_begin</a>(),</div>
+<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span> REnd = PPOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af80ead86d2fa9d64e8e3cd8f76a65263">remapped_file_buffer_end</a>();</div>
+<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span> R != REnd; </div>
+<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span> ++R) {</div>
+<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span> <span class="keyword">delete</span> R->second;</div>
+<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span> }</div>
+<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span> Invocation-><a class="code" href="classclang_1_1CompilerInvocationBase.html#af26aa2f4a5df780a3b5898eef70763d5">getPreprocessorOpts</a>().<a class="code" href="classclang_1_1PreprocessorOptions.html#aabd9512af78b2b8d7dae7eb62fc65001">clearRemappedFiles</a>();</div>
+<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0; I != NumRemappedFiles; ++I) {</div>
+<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span> <a class="code" href="classclang_1_1ASTUnit.html#ae83ad523bb8f9f39961398ae5e7e5687">FilenameOrMemBuf</a> fileOrBuf = RemappedFiles[I].second;</div>
+<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> llvm::MemoryBuffer *</div>
+<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span> memBuf = fileOrBuf.dyn_cast<<span class="keyword">const</span> llvm::MemoryBuffer *>()) {</div>
+<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span> Invocation-><a class="code" href="classclang_1_1CompilerInvocationBase.html#af26aa2f4a5df780a3b5898eef70763d5">getPreprocessorOpts</a>().<a class="code" href="classclang_1_1PreprocessorOptions.html#ad3696370ca31e4f1b5871cb7d58f589f">addRemappedFile</a>(RemappedFiles[I].first,</div>
+<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span> memBuf);</div>
+<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span> } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *fname = fileOrBuf.get<<span class="keyword">const</span> <span class="keywordtype">char</span> *>();</div>
+<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span> Invocation-><a class="code" href="classclang_1_1CompilerInvocationBase.html#af26aa2f4a5df780a3b5898eef70763d5">getPreprocessorOpts</a>().<a class="code" href="classclang_1_1PreprocessorOptions.html#ad3696370ca31e4f1b5871cb7d58f589f">addRemappedFile</a>(RemappedFiles[I].first,</div>
+<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span> fname);</div>
+<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span> }</div>
+<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span> }</div>
+<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span> </div>
+<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span> <span class="comment">// If we have a preamble file lying around, or if we might try to</span></div>
+<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span> <span class="comment">// build a precompiled preamble, do so now.</span></div>
+<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span> llvm::MemoryBuffer *OverrideMainBuffer = 0;</div>
+<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span> <span class="keywordflow">if</span> (!<a class="code" href="ASTUnit_8cpp.html#a75e06789aea0519a29c9943a73c3c0be">getPreambleFile</a>(<span class="keyword">this</span>).empty() || PreambleRebuildCounter > 0)</div>
+<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span> OverrideMainBuffer = getMainBufferWithPrecompiledPreamble(*Invocation);</div>
+<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span> </div>
+<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span> <span class="comment">// Clear out the diagnostics state.</span></div>
+<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span> <a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a0e230f0a2fffbc40b97a9971e6b3939f" title="Reset the state of the diagnostic object to its initial configuration.">Reset</a>();</div>
+<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span> <a class="code" href="namespaceclang.html#a2eac92f50469af565dbfb390534b2ffd">ProcessWarningOptions</a>(<a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>(), Invocation-><a class="code" href="classclang_1_1CompilerInvocationBase.html#ac59ebcd24489a402872ebb041e8bdc4c">getDiagnosticOpts</a>());</div>
+<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span> <span class="keywordflow">if</span> (OverrideMainBuffer)</div>
+<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span> <a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a25f41da44c55b33dae165d250f270f3e">setNumWarnings</a>(NumWarningsInPreamble);</div>
+<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span> </div>
+<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span> <span class="comment">// Parse the sources</span></div>
+<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span> <span class="keywordtype">bool</span> Result = Parse(OverrideMainBuffer);</div>
+<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span> </div>
+<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span> <span class="comment">// If we're caching global code-completion results, and the top-level </span></div>
+<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span> <span class="comment">// declarations have changed, clear out the code-completion cache.</span></div>
+<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span> <span class="keywordflow">if</span> (!Result && ShouldCacheCodeCompletionResults &&</div>
+<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span> CurrentTopLevelHashValue != CompletionCacheTopLevelHashValue)</div>
+<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span> CacheCodeCompletionResults();</div>
+<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span> </div>
+<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span> <span class="comment">// We now need to clear out the completion info related to this translation</span></div>
+<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span> <span class="comment">// unit; it'll be recreated if necessary.</span></div>
+<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span> CCTUInfo.reset();</div>
+<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span> </div>
+<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span> <span class="keywordflow">return</span> Result;</div>
+<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span> }</div>
+<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span> </div>
+<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span> <span class="comment">//----------------------------------------------------------------------------//</span></div>
+<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span> <span class="comment">// Code completion</span></div>
+<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span> <span class="comment">//----------------------------------------------------------------------------//</span></div>
+<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span> </div>
+<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span> <span class="keyword">namespace </span>{<span class="comment"></span></div>
+<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span> <span class="comment"> /// \brief Code completion consumer that combines the cached code-completion</span></div>
+<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span> <span class="comment"> /// results from an ASTUnit with the code-completion results provided to it,</span></div>
+<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span> <span class="comment"> /// then passes the result on to </span></div>
+<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span> <span class="comment"></span> <span class="keyword">class </span>AugmentedCodeCompleteConsumer : <span class="keyword">public</span> <a class="code" href="classclang_1_1CodeCompleteConsumer.html" title="Abstract interface for a consumer of code-completion information.">CodeCompleteConsumer</a> {</div>
+<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span> uint64_t NormalContexts;</div>
+<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &AST;</div>
+<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span> <a class="code" href="classclang_1_1CodeCompleteConsumer.html" title="Abstract interface for a consumer of code-completion information.">CodeCompleteConsumer</a> &Next;</div>
+<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span> </div>
+<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span> AugmentedCodeCompleteConsumer(<a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &AST, <a class="code" href="classclang_1_1CodeCompleteConsumer.html" title="Abstract interface for a consumer of code-completion information.">CodeCompleteConsumer</a> &Next,</div>
+<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span> <span class="keyword">const</span> <a class="code" href="classCodeCompleteOptions.html" title="Options controlling the behavior of code completion.">CodeCompleteOptions</a> &CodeCompleteOpts)</div>
+<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span> : <a class="code" href="classclang_1_1CodeCompleteConsumer.html" title="Abstract interface for a consumer of code-completion information.">CodeCompleteConsumer</a>(CodeCompleteOpts, Next.isOutputBinary()),</div>
+<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span> AST(AST), Next(Next)</div>
+<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span> { </div>
+<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span> <span class="comment">// Compute the set of contexts in which we will look when we don't have</span></div>
+<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span> <span class="comment">// any information about the specific context.</span></div>
+<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span> NormalContexts </div>
+<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span> = (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a56b0e8aad53d4905445855ebbbb33888" title="Code completion occurred within a "top-level" completion context, e.g., at namespace or global scope...">CodeCompletionContext::CCC_TopLevel</a>)</div>
+<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a37857addc919f1d6b11e2a93d802729d" title="Code completion occurred within an Objective-C interface, protocol, or category interface.">CodeCompletionContext::CCC_ObjCInterface</a>)</div>
+<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a6032bad18db6a7017fcef05d2cdad61c" title="Code completion occurred within an Objective-C implementation or category implementation.">CodeCompletionContext::CCC_ObjCImplementation</a>)</div>
+<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a0cf3c12af3e4a2ac3dd4207a86fceed9" title="Code completion occurred within the instance variable list of an Objective-C interface, implementation, or category implementation.">CodeCompletionContext::CCC_ObjCIvarList</a>)</div>
+<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a13c2f63f612699c4b3552f85643adf29" title="Code completion occurred where a statement (or declaration) is expected in a function, method, or block.">CodeCompletionContext::CCC_Statement</a>)</div>
+<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4084b7d565e9d8122beff5c2367389bf" title="Code completion occurred where an expression is expected.">CodeCompletionContext::CCC_Expression</a>)</div>
+<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a03074df58224a8b6c81abec3b7ba199d" title="Code completion occurred where an Objective-C message receiver is expected.">CodeCompletionContext::CCC_ObjCMessageReceiver</a>)</div>
+<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759ac823da0abed150d8fb1c6eced558232e" title="Code completion occurred on the right-hand side of a member access expression using the dot operator...">CodeCompletionContext::CCC_DotMemberAccess</a>)</div>
+<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a1eb8a7862370b4cf616746eae3ef463b" title="Code completion occurred on the right-hand side of a member access expression using the arrow operato...">CodeCompletionContext::CCC_ArrowMemberAccess</a>)</div>
+<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a3f234aeb2d451127f5f34a8e3f3206cd" title="Code completion occurred on the right-hand side of an Objective-C property access expression...">CodeCompletionContext::CCC_ObjCPropertyAccess</a>)</div>
+<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a73bba261cf574139e243f0ec444bd8f1" title="Code completion occurred where a protocol name is expected.">CodeCompletionContext::CCC_ObjCProtocolName</a>)</div>
+<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a5290f588f50a51cbb00920c00998da80" title="Code completion in a parenthesized expression, which means that we may also have types here in C and ...">CodeCompletionContext::CCC_ParenthesizedExpression</a>)</div>
+<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a69bf3fc5775f147b185649e93465eb6d" title="An unknown context, in which we are recovering from a parsing error and don't know which completions ...">CodeCompletionContext::CCC_Recovery</a>);</div>
+<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span> </div>
+<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span> <span class="keywordflow">if</span> (AST.<a class="code" href="classclang_1_1ASTUnit.html#a28cc35bdcdfd434ee5f0a16c1ab2f87e">getASTContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a3faa7b5a5e8d1637c53dea680acca0ff">getLangOpts</a>().CPlusPlus)</div>
+<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span> NormalContexts |= (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4534c8c0e9c0778059cc523fc54df7e6" title="Code completion occurred after the "enum" keyword, to indicate an enumeration name.">CodeCompletionContext::CCC_EnumTag</a>)</div>
+<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4e76e30191db0d9f227f8fe7e0e83629" title="Code completion occurred after the "union" keyword, to indicate a union name.">CodeCompletionContext::CCC_UnionTag</a>)</div>
+<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span> | (1LL << <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a5db9175a5e68235dd17f3cf9ebb9ba6f" title="Code completion occurred after the "struct" or "class" keyword, to indicate a struct or class name...">CodeCompletionContext::CCC_ClassOrStructTag</a>);</div>
+<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span> }</div>
+<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span> </div>
+<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> ProcessCodeCompleteResults(<a class="code" href="classclang_1_1Sema.html" title="Sema - This implements semantic analysis and AST building for C.">Sema</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>, </div>
+<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span> <a class="code" href="classclang_1_1CodeCompletionContext.html" title="The context in which code completion occurred, so that the code-completion consumer can process the r...">CodeCompletionContext</a> <a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a>,</div>
+<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span> <a class="code" href="classclang_1_1CodeCompletionResult.html" title="Captures a result of code completion.">CodeCompletionResult</a> *Results,</div>
+<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span> <span class="keywordtype">unsigned</span> NumResults);</div>
+<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span> </div>
+<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> ProcessOverloadCandidates(<a class="code" href="classclang_1_1Sema.html" title="Sema - This implements semantic analysis and AST building for C.">Sema</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>, <span class="keywordtype">unsigned</span> CurrentArg,</div>
+<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span> <a class="code" href="structclang_1_1OverloadCandidate.html" title="OverloadCandidate - A single candidate in an overload set (C++ 13.3).">OverloadCandidate</a> *Candidates,</div>
+<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span> <span class="keywordtype">unsigned</span> NumCandidates) { </div>
+<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span> Next.<a class="code" href="classclang_1_1CodeCompleteConsumer.html#a05a68595f56c78baa9e790f76dd779d9">ProcessOverloadCandidates</a>(S, CurrentArg, Candidates, NumCandidates);</div>
+<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span> }</div>
+<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span> </div>
+<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span> <span class="keyword">virtual</span> <a class="code" href="classclang_1_1CodeCompletionAllocator.html" title="An allocator used specifically for the purpose of code completion.">CodeCompletionAllocator</a> &getAllocator() {</div>
+<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span> <span class="keywordflow">return</span> Next.<a class="code" href="classclang_1_1CodeCompleteConsumer.html#a10fd1486d3915ec766f85b61d6574e42" title="Retrieve the allocator that will be used to allocate code completion strings.">getAllocator</a>();</div>
+<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span> }</div>
+<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span> </div>
+<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span> <span class="keyword">virtual</span> <a class="code" href="classclang_1_1CodeCompletionTUInfo.html">CodeCompletionTUInfo</a> &getCodeCompletionTUInfo() {</div>
+<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span> <span class="keywordflow">return</span> Next.<a class="code" href="classclang_1_1CodeCompleteConsumer.html#a0879e5efe4c6a55ee11a93664faa9ee5">getCodeCompletionTUInfo</a>();</div>
+<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span> }</div>
+<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span> };</div>
+<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span> }</div>
+<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span> <span class="comment"></span></div>
+<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span> <span class="comment">/// \brief Helper function that computes which global names are hidden by the</span></div>
+<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span> <span class="comment">/// local code-completion results.</span></div>
+<div class="line"><a name="l02205"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a0e2c94100c7641673fa1d4e7af82bfe3"> 2205</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ASTUnit_8cpp.html#a0e2c94100c7641673fa1d4e7af82bfe3" title="Helper function that computes which global names are hidden by the local code-completion results...">CalculateHiddenNames</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1CodeCompletionContext.html" title="The context in which code completion occurred, so that the code-completion consumer can process the r...">CodeCompletionContext</a> &<a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a>,</div>
+<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span> <a class="code" href="classclang_1_1CodeCompletionResult.html" title="Captures a result of code completion.">CodeCompletionResult</a> *Results,</div>
+<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span> <span class="keywordtype">unsigned</span> NumResults,</div>
+<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx,</div>
+<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span> llvm::StringSet<llvm::BumpPtrAllocator> &HiddenNames){</div>
+<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span> <span class="keywordtype">bool</span> OnlyTagNames = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span> <span class="keywordflow">switch</span> (Context.<a class="code" href="classclang_1_1CodeCompletionContext.html#ae476a66637bd349565f670d9b42b42cf" title="Retrieve the kind of code-completion context.">getKind</a>()) {</div>
+<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a69bf3fc5775f147b185649e93465eb6d" title="An unknown context, in which we are recovering from a parsing error and don't know which completions ...">CodeCompletionContext::CCC_Recovery</a>:</div>
+<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a56b0e8aad53d4905445855ebbbb33888" title="Code completion occurred within a "top-level" completion context, e.g., at namespace or global scope...">CodeCompletionContext::CCC_TopLevel</a>:</div>
+<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a37857addc919f1d6b11e2a93d802729d" title="Code completion occurred within an Objective-C interface, protocol, or category interface.">CodeCompletionContext::CCC_ObjCInterface</a>:</div>
+<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a6032bad18db6a7017fcef05d2cdad61c" title="Code completion occurred within an Objective-C implementation or category implementation.">CodeCompletionContext::CCC_ObjCImplementation</a>:</div>
+<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a0cf3c12af3e4a2ac3dd4207a86fceed9" title="Code completion occurred within the instance variable list of an Objective-C interface, implementation, or category implementation.">CodeCompletionContext::CCC_ObjCIvarList</a>:</div>
+<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a2bfab44d6cc7a1c9ab31142245b74592" title="Code completion occurred within a class, struct, or union.">CodeCompletionContext::CCC_ClassStructUnion</a>:</div>
+<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a13c2f63f612699c4b3552f85643adf29" title="Code completion occurred where a statement (or declaration) is expected in a function, method, or block.">CodeCompletionContext::CCC_Statement</a>:</div>
+<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4084b7d565e9d8122beff5c2367389bf" title="Code completion occurred where an expression is expected.">CodeCompletionContext::CCC_Expression</a>:</div>
+<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a03074df58224a8b6c81abec3b7ba199d" title="Code completion occurred where an Objective-C message receiver is expected.">CodeCompletionContext::CCC_ObjCMessageReceiver</a>:</div>
+<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759ac823da0abed150d8fb1c6eced558232e" title="Code completion occurred on the right-hand side of a member access expression using the dot operator...">CodeCompletionContext::CCC_DotMemberAccess</a>:</div>
+<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a1eb8a7862370b4cf616746eae3ef463b" title="Code completion occurred on the right-hand side of a member access expression using the arrow operato...">CodeCompletionContext::CCC_ArrowMemberAccess</a>:</div>
+<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a3f234aeb2d451127f5f34a8e3f3206cd" title="Code completion occurred on the right-hand side of an Objective-C property access expression...">CodeCompletionContext::CCC_ObjCPropertyAccess</a>:</div>
+<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759ad31baacff239007fe3c55f88d1eb5676" title="Code completion occurred where a namespace or namespace alias is expected.">CodeCompletionContext::CCC_Namespace</a>:</div>
+<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a16de7083cf4caa60d5cd83a130c2c032" title="Code completion occurred where a type name is expected.">CodeCompletionContext::CCC_Type</a>:</div>
+<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759aa27b633f10e092ad3f37fa58dd6e0410" title="Code completion occurred where a new name is expected.">CodeCompletionContext::CCC_Name</a>:</div>
+<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a9634eb7cf3520729491cb3549c311dca" title="Code completion occurred where a new name is expected and a qualified name is permissible.">CodeCompletionContext::CCC_PotentiallyQualifiedName</a>:</div>
+<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a5290f588f50a51cbb00920c00998da80" title="Code completion in a parenthesized expression, which means that we may also have types here in C and ...">CodeCompletionContext::CCC_ParenthesizedExpression</a>:</div>
+<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759ae41fc3bbfc9404f4d437fa26e08a4f24" title="Code completion where the name of an Objective-C class is expected.">CodeCompletionContext::CCC_ObjCInterfaceName</a>:</div>
+<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span> <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span> </div>
+<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4534c8c0e9c0778059cc523fc54df7e6" title="Code completion occurred after the "enum" keyword, to indicate an enumeration name.">CodeCompletionContext::CCC_EnumTag</a>:</div>
+<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a4e76e30191db0d9f227f8fe7e0e83629" title="Code completion occurred after the "union" keyword, to indicate a union name.">CodeCompletionContext::CCC_UnionTag</a>:</div>
+<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a5db9175a5e68235dd17f3cf9ebb9ba6f" title="Code completion occurred after the "struct" or "class" keyword, to indicate a struct or class name...">CodeCompletionContext::CCC_ClassOrStructTag</a>:</div>
+<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span> OnlyTagNames = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span> <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span> </div>
+<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a73bba261cf574139e243f0ec444bd8f1" title="Code completion occurred where a protocol name is expected.">CodeCompletionContext::CCC_ObjCProtocolName</a>:</div>
+<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759ac95f6c58b29301f4bc955fdb7a6735aa" title="Code completion occurred where an macro is being defined.">CodeCompletionContext::CCC_MacroName</a>:</div>
+<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759aa0318a685087feb3a1efa8a90c4afe13" title="Code completion occurred where a macro name is expected (without any arguments, in the case of a func...">CodeCompletionContext::CCC_MacroNameUse</a>:</div>
+<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a072334efb6532d4578a4c722a2869781" title="Code completion occurred within a preprocessor expression.">CodeCompletionContext::CCC_PreprocessorExpression</a>:</div>
+<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759ad549d5fe781c7646bfb3ff839beffde0" title="Code completion occurred where a preprocessor directive is expected.">CodeCompletionContext::CCC_PreprocessorDirective</a>:</div>
+<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759aded83683af14ec4322f7f78d9ded201d" title="Code completion occurred in a context where natural language is expected, e.g., a comment or string l...">CodeCompletionContext::CCC_NaturalLanguage</a>:</div>
+<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a422413122d1b1701dcd18baba8136a68" title="Code completion for a selector, as in an @selector expression.">CodeCompletionContext::CCC_SelectorName</a>:</div>
+<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a0038f45757d60e62c1629c39112b281c" title="Code completion within a type-qualifier list.">CodeCompletionContext::CCC_TypeQualifiers</a>:</div>
+<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759ab37af1fdf0aaff92dd3705e4061b5e72" title="An unspecified code-completion context.">CodeCompletionContext::CCC_Other</a>:</div>
+<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a7f03c180e88c0aee394ff53935d4645c" title="An unspecified code-completion context where we should also add macro completions.">CodeCompletionContext::CCC_OtherWithMacros</a>:</div>
+<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a6384527d42d9e39ab40069c8ba1db485" title="Code completion where an Objective-C instance message is expected.">CodeCompletionContext::CCC_ObjCInstanceMessage</a>:</div>
+<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a5f32225763c592ac02b4b1260461cfdc" title="Code completion where an Objective-C class message is expected.">CodeCompletionContext::CCC_ObjCClassMessage</a>:</div>
+<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span> <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a0c743b616dd8d462a9711cf287fcb325" title="Code completion where an Objective-C category name is expected.">CodeCompletionContext::CCC_ObjCCategoryName</a>:</div>
+<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span> <span class="comment">// We're looking for nothing, or we're looking for names that cannot</span></div>
+<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span> <span class="comment">// be hidden.</span></div>
+<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span> }</div>
+<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span> </div>
+<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span> <span class="keyword">typedef</span> <a class="code" href="classclang_1_1CodeCompletionResult.html" title="Captures a result of code completion.">CodeCompletionResult</a> Result;</div>
+<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0; I != NumResults; ++I) {</div>
+<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span> <span class="keywordflow">if</span> (Results[I].Kind != Result::RK_Declaration)</div>
+<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span> <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span> </div>
+<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span> <span class="keywordtype">unsigned</span> IDNS</div>
+<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span> = Results[I].<a class="code" href="classclang_1_1CodeCompletionResult.html#a7818572cfbaeb9675e08f6a8c82c7440" title="When Kind == RK_Declaration or RK_Pattern, the declaration we are referring to. In the latter case...">Declaration</a>-><a class="code" href="classclang_1_1NamedDecl.html#a8fee30304b9ae8b24136a279b678b951" title="Looks through UsingDecls and ObjCCompatibleAliasDecls for the underlying named decl.">getUnderlyingDecl</a>()-><a class="code" href="classclang_1_1Decl.html#a1172fe32c48af6bf358c3ae0e81a9257">getIdentifierNamespace</a>();</div>
+<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span> </div>
+<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span> <span class="keywordtype">bool</span> Hiding = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span> <span class="keywordflow">if</span> (OnlyTagNames)</div>
+<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span> Hiding = (IDNS & <a class="code" href="classclang_1_1Decl.html#a9e38ae17197f1ebf6cdbb58260133710af56b326acd2688e908a81d22fdbf5f47">Decl::IDNS_Tag</a>);</div>
+<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span> <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span> <span class="keywordtype">unsigned</span> HiddenIDNS = (<a class="code" href="classclang_1_1Decl.html#a9e38ae17197f1ebf6cdbb58260133710a6cb28bd82a63a8a39fd86a3dbba7494e">Decl::IDNS_Type</a> | <a class="code" href="classclang_1_1Decl.html#a9e38ae17197f1ebf6cdbb58260133710a96e26295d5162e8a76b56de4e5b11602">Decl::IDNS_Member</a> | </div>
+<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span> <a class="code" href="classclang_1_1Decl.html#a9e38ae17197f1ebf6cdbb58260133710ac22906eb1b728c3ed9e7524777b8ea79">Decl::IDNS_Namespace</a> | <a class="code" href="classclang_1_1Decl.html#a9e38ae17197f1ebf6cdbb58260133710a404c48f346be24fe30ae9bb910177a34">Decl::IDNS_Ordinary</a> |</div>
+<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span> <a class="code" href="classclang_1_1Decl.html#a9e38ae17197f1ebf6cdbb58260133710a172a261a236a3ca59c24d63c3e797006">Decl::IDNS_NonMemberOperator</a>);</div>
+<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span> <span class="keywordflow">if</span> (Ctx.<a class="code" href="classclang_1_1ASTContext.html#a3faa7b5a5e8d1637c53dea680acca0ff">getLangOpts</a>().CPlusPlus)</div>
+<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span> HiddenIDNS |= <a class="code" href="classclang_1_1Decl.html#a9e38ae17197f1ebf6cdbb58260133710af56b326acd2688e908a81d22fdbf5f47">Decl::IDNS_Tag</a>;</div>
+<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span> Hiding = (IDNS & HiddenIDNS);</div>
+<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span> }</div>
+<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span> </div>
+<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span> <span class="keywordflow">if</span> (!Hiding)</div>
+<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span> <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span> </div>
+<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span> <a class="code" href="classclang_1_1DeclarationName.html">DeclarationName</a> Name = Results[I].<a class="code" href="classclang_1_1CodeCompletionResult.html#a7818572cfbaeb9675e08f6a8c82c7440" title="When Kind == RK_Declaration or RK_Pattern, the declaration we are referring to. In the latter case...">Declaration</a>-><a class="code" href="classclang_1_1NamedDecl.html#a1e3e90455be89bb5c7c23640cbbd7153">getDeclName</a>();</div>
+<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *Identifier = Name.<a class="code" href="classclang_1_1DeclarationName.html#a1ac2d6e470af6bb6313c390760a1e155">getAsIdentifierInfo</a>())</div>
+<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span> HiddenNames.insert(Identifier->getName());</div>
+<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span> <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span> HiddenNames.insert(Name.<a class="code" href="classclang_1_1DeclarationName.html#acdcc2ae303f4e46575a08e2ba278dd33" title="getNameAsString - Retrieve the human-readable string for this name.">getAsString</a>());</div>
+<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span> }</div>
+<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span> }</div>
+<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span> </div>
+<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span> </div>
+<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span> <span class="keywordtype">void</span> AugmentedCodeCompleteConsumer::ProcessCodeCompleteResults(<a class="code" href="classclang_1_1Sema.html" title="Sema - This implements semantic analysis and AST building for C.">Sema</a> &S,</div>
+<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span> <a class="code" href="classclang_1_1CodeCompletionContext.html" title="The context in which code completion occurred, so that the code-completion consumer can process the r...">CodeCompletionContext</a> <a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a>,</div>
+<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span> <a class="code" href="classclang_1_1CodeCompletionResult.html" title="Captures a result of code completion.">CodeCompletionResult</a> *Results,</div>
+<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span> <span class="keywordtype">unsigned</span> NumResults) { </div>
+<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span> <span class="comment">// Merge the results we were given with the results we cached.</span></div>
+<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span> <span class="keywordtype">bool</span> AddedResult = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span> uint64_t InContexts =</div>
+<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span> Context.<a class="code" href="classclang_1_1CodeCompletionContext.html#ae476a66637bd349565f670d9b42b42cf" title="Retrieve the kind of code-completion context.">getKind</a>() == <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759a69bf3fc5775f147b185649e93465eb6d" title="An unknown context, in which we are recovering from a parsing error and don't know which completions ...">CodeCompletionContext::CCC_Recovery</a></div>
+<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span> ? NormalContexts : (1LL << Context.<a class="code" href="classclang_1_1CodeCompletionContext.html#ae476a66637bd349565f670d9b42b42cf" title="Retrieve the kind of code-completion context.">getKind</a>());</div>
+<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span> <span class="comment">// Contains the set of names that are hidden by "local" completion results.</span></div>
+<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span> llvm::StringSet<llvm::BumpPtrAllocator> HiddenNames;</div>
+<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span> <span class="keyword">typedef</span> <a class="code" href="classclang_1_1CodeCompletionResult.html" title="Captures a result of code completion.">CodeCompletionResult</a> Result;</div>
+<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<Result, 8></a> AllResults;</div>
+<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1ASTUnit.html#ab3079f97489459e1650adf6b1323118e">ASTUnit::cached_completion_iterator</a> </div>
+<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span> C = AST.<a class="code" href="classclang_1_1ASTUnit.html#a6f0e75b26d6019f4cfbe8aa21ab7bc97">cached_completion_begin</a>(),</div>
+<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span> CEnd = AST.<a class="code" href="classclang_1_1ASTUnit.html#a19d706921e772292a34dc57ef5fbedaf">cached_completion_end</a>();</div>
+<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span> C != CEnd; ++C) {</div>
+<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span> <span class="comment">// If the context we are in matches any of the contexts we are </span></div>
+<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span> <span class="comment">// interested in, we'll add this result.</span></div>
+<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span> <span class="keywordflow">if</span> ((C->ShowInContexts & InContexts) == 0)</div>
+<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span> <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span> </div>
+<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span> <span class="comment">// If we haven't added any results previously, do so now.</span></div>
+<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span> <span class="keywordflow">if</span> (!AddedResult) {</div>
+<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span> <a class="code" href="ASTUnit_8cpp.html#a0e2c94100c7641673fa1d4e7af82bfe3" title="Helper function that computes which global names are hidden by the local code-completion results...">CalculateHiddenNames</a>(Context, Results, NumResults, S.<a class="code" href="classclang_1_1Sema.html#a3ccddacb1f4f71b084296175cc9e5b0e">Context</a>, </div>
+<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span> HiddenNames);</div>
+<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span> AllResults.insert(AllResults.end(), Results, Results + NumResults);</div>
+<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span> AddedResult = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span> }</div>
+<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span> </div>
+<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span> <span class="comment">// Determine whether this global completion result is hidden by a local</span></div>
+<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span> <span class="comment">// completion result. If so, skip it.</span></div>
+<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span> <span class="keywordflow">if</span> (C->Kind != <a class="code" href="group__CINDEX.html#ggaaccc432245b4cd9f2d470913f9ef0013aaf2a8a83171b883cabe83ef3d729e138">CXCursor_MacroDefinition</a> &&</div>
+<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span> HiddenNames.count(C->Completion->getTypedText()))</div>
+<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span> <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span> </div>
+<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span> <span class="comment">// Adjust priority based on similar type classes.</span></div>
+<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span> <span class="keywordtype">unsigned</span> Priority = C->Priority;</div>
+<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span> <a class="code" href="classclang_1_1CodeCompletionString.html" title="A "string" used to describe how code completion can be performed for an entity.">CodeCompletionString</a> *Completion = C->Completion;</div>
+<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span> <span class="keywordflow">if</span> (!Context.<a class="code" href="classclang_1_1CodeCompletionContext.html#aaf2a144929dd8f148a4dd3d04ff9ec7f" title="Retrieve the type that this expression would prefer to have, e.g., if the expression is a variable in...">getPreferredType</a>().<a class="code" href="classclang_1_1QualType.html#a8f87f58000490ad01cd09add1f27d7ac" title="isNull - Return true if this QualType doesn't point to a type yet.">isNull</a>()) {</div>
+<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span> <span class="keywordflow">if</span> (C->Kind == <a class="code" href="group__CINDEX.html#ggaaccc432245b4cd9f2d470913f9ef0013aaf2a8a83171b883cabe83ef3d729e138">CXCursor_MacroDefinition</a>) {</div>
+<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span> Priority = <a class="code" href="namespaceclang.html#acd6f3724d6fdd74cfb7d432cb2f55051" title="Determine the priority to be given to a macro code completion result with the given name...">getMacroUsagePriority</a>(C->Completion->getTypedText(),</div>
+<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span> S.<a class="code" href="classclang_1_1Sema.html#a5f632d714a520550786bde65d3771228">getLangOpts</a>(),</div>
+<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span> Context.<a class="code" href="classclang_1_1CodeCompletionContext.html#aaf2a144929dd8f148a4dd3d04ff9ec7f" title="Retrieve the type that this expression would prefer to have, e.g., if the expression is a variable in...">getPreferredType</a>()-><a class="code" href="classclang_1_1Type.html#a08e1571405fafb2467ba1a1cdd8d9c04">isAnyPointerType</a>()); </div>
+<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (C->Type) {</div>
+<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span> <a class="code" href="classclang_1_1CanQual.html">CanQualType</a> Expected</div>
+<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span> = S.<a class="code" href="classclang_1_1Sema.html#a3ccddacb1f4f71b084296175cc9e5b0e">Context</a>.<a class="code" href="classclang_1_1ASTContext.html#a7e70bb7eebf01548a0cab752e390ba37" title="Return the canonical (structural) type corresponding to the specified potentially non-canonical type ...">getCanonicalType</a>(</div>
+<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span> Context.<a class="code" href="classclang_1_1CodeCompletionContext.html#aaf2a144929dd8f148a4dd3d04ff9ec7f" title="Retrieve the type that this expression would prefer to have, e.g., if the expression is a variable in...">getPreferredType</a>().<a class="code" href="classclang_1_1QualType.html#a5ddbce9d32b4f8043b641584599fe7e5" title="Retrieve the unqualified variant of the given type, removing as little sugar as possible.">getUnqualifiedType</a>());</div>
+<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span> <a class="code" href="namespaceclang.html#a7b6f7a71a039a553c0cb4c5c5eb2cc05" title="A simplified classification of types used when determining "similar" types for code completion...">SimplifiedTypeClass</a> ExpectedSTC = <a class="code" href="namespaceclang.html#ab0bf4fe918d555b304d1b1ad34468bec" title="Determine the simplified type class of the given canonical type.">getSimplifiedTypeClass</a>(Expected);</div>
+<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span> <span class="keywordflow">if</span> (ExpectedSTC == C->TypeClass) {</div>
+<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span> <span class="comment">// We know this type is similar; check for an exact match.</span></div>
+<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span> llvm::StringMap<unsigned> &CachedCompletionTypes</div>
+<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span> = AST.<a class="code" href="classclang_1_1ASTUnit.html#a15a0563e78428883697cd603a9bd0892" title="Retrieve the mapping from formatted type names to unique type identifiers.">getCachedCompletionTypes</a>();</div>
+<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span> llvm::StringMap<unsigned>::iterator Pos</div>
+<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span> = CachedCompletionTypes.find(<a class="code" href="classclang_1_1QualType.html">QualType</a>(Expected).getAsString());</div>
+<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span> <span class="keywordflow">if</span> (Pos != CachedCompletionTypes.end() && Pos->second == C->Type)</div>
+<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span> Priority /= <a class="code" href="namespaceclang.html#adafed62a4bc13091ee1bfda398e04227a2e70105c7be302c8f9e949c94a2ff8df" title="Divide by this factor when a code-completion result's type exactly matches the type we expect...">CCF_ExactTypeMatch</a>;</div>
+<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span> <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span> Priority /= <a class="code" href="namespaceclang.html#adafed62a4bc13091ee1bfda398e04227ad1637eb383ac097b0e87ef26b0dda9d6" title="Divide by this factor when a code-completion result's type is similar to the type we expect (e...">CCF_SimilarTypeMatch</a>;</div>
+<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span> }</div>
+<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span> }</div>
+<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span> }</div>
+<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span> </div>
+<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span> <span class="comment">// Adjust the completion string, if required.</span></div>
+<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span> <span class="keywordflow">if</span> (C->Kind == <a class="code" href="group__CINDEX.html#ggaaccc432245b4cd9f2d470913f9ef0013aaf2a8a83171b883cabe83ef3d729e138">CXCursor_MacroDefinition</a> &&</div>
+<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span> Context.<a class="code" href="classclang_1_1CodeCompletionContext.html#ae476a66637bd349565f670d9b42b42cf" title="Retrieve the kind of code-completion context.">getKind</a>() == <a class="code" href="classclang_1_1CodeCompletionContext.html#a22964e3bcd2b70572ce9bcf5ed725759aa0318a685087feb3a1efa8a90c4afe13" title="Code completion occurred where a macro name is expected (without any arguments, in the case of a func...">CodeCompletionContext::CCC_MacroNameUse</a>) {</div>
+<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span> <span class="comment">// Create a new code-completion string that just contains the</span></div>
+<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span> <span class="comment">// macro name, without its arguments.</span></div>
+<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span> <a class="code" href="classclang_1_1CodeCompletionBuilder.html" title="A builder class used to construct new code-completion strings.">CodeCompletionBuilder</a> <a class="code" href="ASTMatchFinder_8cpp.html#a4cd8cc8f712cd1e4ebf8cb152b8a1531">Builder</a>(getAllocator(), getCodeCompletionTUInfo(),</div>
+<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span> <a class="code" href="namespaceclang.html#a73fc8d23e5cfb84c4faa91578a49409ead7332087c922f59cd4bcda9559a852b3" title="Priority for a code pattern.">CCP_CodePattern</a>, C->Availability);</div>
+<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span> <a class="code" href="ASTMatchFinder_8cpp.html#a4cd8cc8f712cd1e4ebf8cb152b8a1531">Builder</a>.AddTypedTextChunk(C->Completion->getTypedText());</div>
+<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span> Priority = <a class="code" href="namespaceclang.html#a73fc8d23e5cfb84c4faa91578a49409ead7332087c922f59cd4bcda9559a852b3" title="Priority for a code pattern.">CCP_CodePattern</a>;</div>
+<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span> Completion = <a class="code" href="ASTMatchFinder_8cpp.html#a4cd8cc8f712cd1e4ebf8cb152b8a1531">Builder</a>.TakeString();</div>
+<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span> }</div>
+<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span> </div>
+<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span> AllResults.push_back(Result(Completion, Priority, C->Kind,</div>
+<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span> C->Availability));</div>
+<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span> }</div>
+<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span> </div>
+<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span> <span class="comment">// If we did not add any cached completion results, just forward the</span></div>
+<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span> <span class="comment">// results we were given to the next consumer.</span></div>
+<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span> <span class="keywordflow">if</span> (!AddedResult) {</div>
+<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span> Next.<a class="code" href="classclang_1_1CodeCompleteConsumer.html#a5f5a99b3fe82b56631bf07bc58bb8635" title="Process the finalized code-completion results.">ProcessCodeCompleteResults</a>(S, Context, Results, NumResults);</div>
+<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span> }</div>
+<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span> </div>
+<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span> Next.<a class="code" href="classclang_1_1CodeCompleteConsumer.html#a5f5a99b3fe82b56631bf07bc58bb8635" title="Process the finalized code-completion results.">ProcessCodeCompleteResults</a>(S, Context, AllResults.data(),</div>
+<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span> AllResults.size());</div>
+<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span> }</div>
+<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span> </div>
+<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span> </div>
+<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span> </div>
+<div class="line"><a name="l02380"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a0c8331e5be64cf2448f70829aa3a38ff"> 2380</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#a0c8331e5be64cf2448f70829aa3a38ff" title="Perform code completion at the given file, line, and column within this translation unit...">ASTUnit::CodeComplete</a>(StringRef File, <span class="keywordtype">unsigned</span> <a class="code" href="TokenAnnotator_8cpp.html#a0d95c6acfc477accd6ff1b1ca93c82cc">Line</a>, <span class="keywordtype">unsigned</span> <a class="code" href="Format_8cpp.html#a1eea5be0eff1070e17b69bc5b9f281ae">Column</a>,</div>
+<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span> <a class="code" href="classclang_1_1ASTUnit.html#af409234e858b8fcd48bcd81bd86ee9e5" title="A mapping from a file name to the memory buffer that stores the remapped contents of that file...">RemappedFile</a> *RemappedFiles, </div>
+<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span> <span class="keywordtype">unsigned</span> NumRemappedFiles,</div>
+<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span> <span class="keywordtype">bool</span> IncludeMacros, </div>
+<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span> <span class="keywordtype">bool</span> IncludeCodePatterns,</div>
+<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span> <span class="keywordtype">bool</span> IncludeBriefComments,</div>
+<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span> <a class="code" href="classclang_1_1CodeCompleteConsumer.html" title="Abstract interface for a consumer of code-completion information.">CodeCompleteConsumer</a> &Consumer,</div>
+<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span> <a class="code" href="classclang_1_1DiagnosticsEngine.html" title="Concrete class used by the front-end to report problems and issues.">DiagnosticsEngine</a> &<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>, <a class="code" href="classclang_1_1LangOptions.html" title="Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...">LangOptions</a> &LangOpts,</div>
+<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &SourceMgr, <a class="code" href="classclang_1_1FileManager.html" title="Implements support for file system lookup, file system caching, and directory search management...">FileManager</a> &FileMgr,</div>
+<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<StoredDiagnostic></a> &StoredDiagnostics,</div>
+<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<const llvm::MemoryBuffer *></a> &OwnedBuffers) {</div>
+<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span> <span class="keywordflow">if</span> (!Invocation)</div>
+<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span> </div>
+<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span> SimpleTimer CompletionTimer(WantTiming);</div>
+<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span> CompletionTimer.setOutput(<span class="stringliteral">"Code completion @ "</span> + File + <span class="stringliteral">":"</span> +</div>
+<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span> Twine(Line) + <span class="stringliteral">":"</span> + Twine(Column));</div>
+<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span> </div>
+<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<CompilerInvocation></a></div>
+<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span> CCInvocation(<span class="keyword">new</span> <a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a>(*Invocation));</div>
+<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span> </div>
+<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span> <a class="code" href="classclang_1_1FrontendOptions.html" title="FrontendOptions - Options for controlling the behavior of the frontend.">FrontendOptions</a> &FrontendOpts = CCInvocation->getFrontendOpts();</div>
+<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span> <a class="code" href="classCodeCompleteOptions.html" title="Options controlling the behavior of code completion.">CodeCompleteOptions</a> &CodeCompleteOpts = FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a49040beb19ec84f87f56d587a1f38c7d">CodeCompleteOpts</a>;</div>
+<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span> <a class="code" href="classclang_1_1PreprocessorOptions.html">PreprocessorOptions</a> &PreprocessorOpts = CCInvocation->getPreprocessorOpts();</div>
+<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span> </div>
+<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span> CodeCompleteOpts.<a class="code" href="classCodeCompleteOptions.html#ac5b3d452e0447cddcf8f5882e2755b4b" title="Show macros in code completion results.">IncludeMacros</a> = IncludeMacros &&</div>
+<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span> CachedCompletionResults.empty();</div>
+<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span> CodeCompleteOpts.<a class="code" href="classCodeCompleteOptions.html#add5e87275781ae6d17e8ffcb3a862a1c" title="Show code patterns in code completion results.">IncludeCodePatterns</a> = IncludeCodePatterns;</div>
+<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span> CodeCompleteOpts.<a class="code" href="classCodeCompleteOptions.html#aea98aa991b2bdff783c211f6d96a8ab6" title="Show top-level decls in code completion results.">IncludeGlobals</a> = CachedCompletionResults.empty();</div>
+<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span> CodeCompleteOpts.<a class="code" href="classCodeCompleteOptions.html#a6e0f45c95b365c35889d95b327a3b49c" title="Show brief documentation comments in code completion results.">IncludeBriefComments</a> = IncludeBriefComments;</div>
+<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span> </div>
+<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span> assert(IncludeBriefComments == this->IncludeBriefCommentsInCodeCompletion);</div>
+<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span> </div>
+<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span> FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a903a24bd127beba3fdd54b84329a5a27" title="If given, enable code completion at the provided location.">CodeCompletionAt</a>.<a class="code" href="structclang_1_1ParsedSourceLocation.html#a917c224d7d608bc1cf3aebdf4a0cbf7f">FileName</a> = File;</div>
+<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span> FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a903a24bd127beba3fdd54b84329a5a27" title="If given, enable code completion at the provided location.">CodeCompletionAt</a>.<a class="code" href="structclang_1_1ParsedSourceLocation.html#a06f4d9edc6baa398219dc2ba702f22ed">Line</a> = <a class="code" href="TokenAnnotator_8cpp.html#a0d95c6acfc477accd6ff1b1ca93c82cc">Line</a>;</div>
+<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span> FrontendOpts.<a class="code" href="classclang_1_1FrontendOptions.html#a903a24bd127beba3fdd54b84329a5a27" title="If given, enable code completion at the provided location.">CodeCompletionAt</a>.<a class="code" href="structclang_1_1ParsedSourceLocation.html#a9b37cc5758c96017fc78fe52aec95c29">Column</a> = <a class="code" href="Format_8cpp.html#a1eea5be0eff1070e17b69bc5b9f281ae">Column</a>;</div>
+<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span> </div>
+<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span> <span class="comment">// Set the language options appropriately.</span></div>
+<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span> LangOpts = *CCInvocation->getLangOpts();</div>
+<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span> </div>
+<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<CompilerInstance></a> Clang(<span class="keyword">new</span> <a class="code" href="classclang_1_1CompilerInstance.html">CompilerInstance</a>());</div>
+<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span> </div>
+<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span> <span class="comment">// Recover resources if we crash before exiting this method.</span></div>
+<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span> llvm::CrashRecoveryContextCleanupRegistrar<CompilerInstance></div>
+<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span> CICleanup(Clang.get());</div>
+<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span> </div>
+<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span> Clang->setInvocation(&*CCInvocation);</div>
+<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span> OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile();</div>
+<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span> </div>
+<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span> <span class="comment">// Set up diagnostics, capturing any diagnostics produced.</span></div>
+<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span> Clang->setDiagnostics(&Diag);</div>
+<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span> CaptureDroppedDiagnostics Capture(<span class="keyword">true</span>, </div>
+<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span> Clang->getDiagnostics(), </div>
+<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span> StoredDiagnostics);</div>
+<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span> <a class="code" href="namespaceclang.html#a2eac92f50469af565dbfb390534b2ffd">ProcessWarningOptions</a>(Diag, CCInvocation->getDiagnosticOpts());</div>
+<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span> </div>
+<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span> <span class="comment">// Create the target instance.</span></div>
+<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span> Clang->setTarget(<a class="code" href="classclang_1_1TargetInfo.html#a4f871040b846cf9e01dd66a8b46e2985" title="Construct a target for the given options.">TargetInfo::CreateTargetInfo</a>(Clang->getDiagnostics(),</div>
+<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span> &Clang->getTargetOpts()));</div>
+<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span> <span class="keywordflow">if</span> (!Clang->hasTarget()) {</div>
+<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span> Clang->setInvocation(0);</div>
+<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span> }</div>
+<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span> </div>
+<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span> <span class="comment">// Inform the target of the language options.</span></div>
+<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span> <span class="comment">//</span></div>
+<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span> <span class="comment">// FIXME: We shouldn't need to do this, the target should be immutable once</span></div>
+<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span> <span class="comment">// created. This complexity should be lifted elsewhere.</span></div>
+<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span> Clang->getTarget().setForcedLangOptions(Clang->getLangOpts());</div>
+<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span> </div>
+<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span> assert(Clang->getFrontendOpts().Inputs.size() == 1 &&</div>
+<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span> <span class="stringliteral">"Invocation must have exactly one source file!"</span>);</div>
+<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span> assert(Clang->getFrontendOpts().Inputs[0].getKind() != <a class="code" href="namespaceclang.html#a7f0d2857e98f529ab752288e24013c10a6e091f96e7bc6407659089b0e0fa0b62">IK_AST</a> &&</div>
+<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span> <span class="stringliteral">"FIXME: AST inputs not yet supported here!"</span>);</div>
+<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span> assert(Clang->getFrontendOpts().Inputs[0].getKind() != <a class="code" href="namespaceclang.html#a7f0d2857e98f529ab752288e24013c10af41e61b39aea3f735b903fdf7cd5049c">IK_LLVM_IR</a> &&</div>
+<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span> <span class="stringliteral">"IR inputs not support here!"</span>);</div>
+<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span> </div>
+<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span> </div>
+<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span> <span class="comment">// Use the source and file managers that we were given.</span></div>
+<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span> Clang->setFileManager(&FileMgr);</div>
+<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span> Clang->setSourceManager(&SourceMgr);</div>
+<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span> </div>
+<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span> <span class="comment">// Remap files.</span></div>
+<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#aabd9512af78b2b8d7dae7eb62fc65001">clearRemappedFiles</a>();</div>
+<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a47eb4ea58ec9f1b60266df38f6840ed6" title="Whether the compiler instance should retain (i.e., not free) the buffers associated with remapped fil...">RetainRemappedFileBuffers</a> = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0; I != NumRemappedFiles; ++I) {</div>
+<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span> <a class="code" href="classclang_1_1ASTUnit.html#ae83ad523bb8f9f39961398ae5e7e5687">FilenameOrMemBuf</a> fileOrBuf = RemappedFiles[I].second;</div>
+<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> llvm::MemoryBuffer *</div>
+<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span> memBuf = fileOrBuf.dyn_cast<<span class="keyword">const</span> llvm::MemoryBuffer *>()) {</div>
+<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#ad3696370ca31e4f1b5871cb7d58f589f">addRemappedFile</a>(RemappedFiles[I].first, memBuf);</div>
+<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span> OwnedBuffers.push_back(memBuf);</div>
+<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span> } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *fname = fileOrBuf.get<<span class="keyword">const</span> <span class="keywordtype">char</span> *>();</div>
+<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#ad3696370ca31e4f1b5871cb7d58f589f">addRemappedFile</a>(RemappedFiles[I].first, fname);</div>
+<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span> }</div>
+<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span> }</div>
+<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span> </div>
+<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span> <span class="comment">// Use the code completion consumer we were given, but adding any cached</span></div>
+<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span> <span class="comment">// code-completion results.</span></div>
+<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span> AugmentedCodeCompleteConsumer *AugmentedConsumer</div>
+<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span> = <span class="keyword">new</span> AugmentedCodeCompleteConsumer(*<span class="keyword">this</span>, Consumer, CodeCompleteOpts);</div>
+<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span> Clang->setCodeCompletionConsumer(AugmentedConsumer);</div>
+<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span> </div>
+<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span> <span class="comment">// If we have a precompiled preamble, try to use it. We only allow</span></div>
+<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span> <span class="comment">// the use of the precompiled preamble if we're if the completion</span></div>
+<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span> <span class="comment">// point is within the main file, after the end of the precompiled</span></div>
+<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span> <span class="comment">// preamble.</span></div>
+<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span> llvm::MemoryBuffer *OverrideMainBuffer = 0;</div>
+<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span> <span class="keywordflow">if</span> (!<a class="code" href="ASTUnit_8cpp.html#a75e06789aea0519a29c9943a73c3c0be">getPreambleFile</a>(<span class="keyword">this</span>).empty()) {</div>
+<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span> std::string CompleteFilePath(File);</div>
+<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span> llvm::sys::fs::UniqueID CompleteFileID;</div>
+<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span> </div>
+<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span> <span class="keywordflow">if</span> (!llvm::sys::fs::getUniqueID(CompleteFilePath, CompleteFileID)) {</div>
+<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span> std::string MainPath(OriginalSourceFile);</div>
+<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span> llvm::sys::fs::UniqueID MainID;</div>
+<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span> <span class="keywordflow">if</span> (!llvm::sys::fs::getUniqueID(MainPath, MainID)) {</div>
+<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span> <span class="keywordflow">if</span> (CompleteFileID == MainID && Line > 1)</div>
+<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span> OverrideMainBuffer</div>
+<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span> = getMainBufferWithPrecompiledPreamble(*CCInvocation, <span class="keyword">false</span>, </div>
+<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span> Line - 1);</div>
+<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span> }</div>
+<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span> }</div>
+<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span> }</div>
+<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span> </div>
+<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span> <span class="comment">// If the main file has been overridden due to the use of a preamble,</span></div>
+<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span> <span class="comment">// make that override happen and introduce the preamble.</span></div>
+<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span> <span class="keywordflow">if</span> (OverrideMainBuffer) {</div>
+<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#ad3696370ca31e4f1b5871cb7d58f589f">addRemappedFile</a>(OriginalSourceFile, OverrideMainBuffer);</div>
+<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a24671d094917020114917c55ee0c7a11" title="If non-zero, the implicit PCH include is actually a precompiled preamble that covers this number of b...">PrecompiledPreambleBytes</a>.first = Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3dfca459bb7a7b012c59bd8fa5617fbb">size</a>();</div>
+<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a24671d094917020114917c55ee0c7a11" title="If non-zero, the implicit PCH include is actually a precompiled preamble that covers this number of b...">PrecompiledPreambleBytes</a>.second</div>
+<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span> = PreambleEndsAtStartOfLine;</div>
+<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#ab62f6211f45e53fb6a45ad84d2a87657" title="The implicit PCH included at the start of the translation unit, or empty.">ImplicitPCHInclude</a> = <a class="code" href="ASTUnit_8cpp.html#a75e06789aea0519a29c9943a73c3c0be">getPreambleFile</a>(<span class="keyword">this</span>);</div>
+<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#afbbf74f590f04a8fb30bb1c63547d828" title="When true, disables most of the normal validation performed on precompiled headers.">DisablePCHValidation</a> = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span> </div>
+<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span> OwnedBuffers.push_back(OverrideMainBuffer);</div>
+<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span> } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a24671d094917020114917c55ee0c7a11" title="If non-zero, the implicit PCH include is actually a precompiled preamble that covers this number of b...">PrecompiledPreambleBytes</a>.first = 0;</div>
+<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#a24671d094917020114917c55ee0c7a11" title="If non-zero, the implicit PCH include is actually a precompiled preamble that covers this number of b...">PrecompiledPreambleBytes</a>.second = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span> }</div>
+<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span> </div>
+<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span> <span class="comment">// Disable the preprocessing record if modules are not enabled.</span></div>
+<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span> <span class="keywordflow">if</span> (!Clang->getLangOpts().Modules)</div>
+<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span> PreprocessorOpts.<a class="code" href="classclang_1_1PreprocessorOptions.html#af9425f8ba984d1f17bbf5417bb45fb94" title="Whether we should maintain a detailed record of all macro definitions and expansions.">DetailedRecord</a> = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span> </div>
+<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<SyntaxOnlyAction></a> Act;</div>
+<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span> Act.reset(<span class="keyword">new</span> <a class="code" href="classclang_1_1SyntaxOnlyAction.html">SyntaxOnlyAction</a>);</div>
+<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span> <span class="keywordflow">if</span> (Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) {</div>
+<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span> Act->Execute();</div>
+<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span> Act->EndSourceFile();</div>
+<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span> }</div>
+<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span> }</div>
+<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span> </div>
+<div class="line"><a name="l02532"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#acc7acc51ccd1fc3525e372ebc90de647"> 2532</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#acc7acc51ccd1fc3525e372ebc90de647" title="Save this translation unit to a file with the given name.">ASTUnit::Save</a>(StringRef File) {</div>
+<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span> <span class="keywordflow">if</span> (HadModuleLoaderFatalFailure)</div>
+<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span> </div>
+<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span> <span class="comment">// Write to a temporary file and later rename it to the actual file, to avoid</span></div>
+<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span> <span class="comment">// possible race conditions.</span></div>
+<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span> <a class="code" href="classllvm_1_1SmallString.html">SmallString<128></a> TempPath;</div>
+<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span> TempPath = File;</div>
+<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span> TempPath += <span class="stringliteral">"-%%%%%%%%"</span>;</div>
+<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span> <span class="keywordtype">int</span> fd;</div>
+<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span> <span class="keywordflow">if</span> (llvm::sys::fs::createUniqueFile(TempPath.str(), fd, TempPath))</div>
+<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span> </div>
+<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span> <span class="comment">// FIXME: Can we somehow regenerate the stat cache here, or do we need to </span></div>
+<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span> <span class="comment">// unconditionally create a stat cache when we parse the file?</span></div>
+<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span> llvm::raw_fd_ostream Out(fd, <span class="comment">/*shouldClose=*/</span><span class="keyword">true</span>);</div>
+<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span> </div>
+<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span> <a class="code" href="classclang_1_1ASTUnit.html#a1d57dc558d836d1399bf5ea13a3c99a4" title="Serialize this translation unit with the given output stream.">serialize</a>(Out);</div>
+<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span> Out.close();</div>
+<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span> <span class="keywordflow">if</span> (Out.has_error()) {</div>
+<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span> Out.clear_error();</div>
+<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span> }</div>
+<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span> </div>
+<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span> <span class="keywordflow">if</span> (llvm::sys::fs::rename(TempPath.str(), File)) {</div>
+<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span> <span class="keywordtype">bool</span> exists;</div>
+<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span> llvm::sys::fs::remove(TempPath.str(), exists);</div>
+<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span> }</div>
+<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span> </div>
+<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span> }</div>
+<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span> </div>
+<div class="line"><a name="l02565"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a84e5d021784c02a87446699b95cee81e"> 2565</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ASTUnit_8cpp.html#a84e5d021784c02a87446699b95cee81e">serializeUnit</a>(<a class="code" href="classclang_1_1ASTWriter.html" title="Writes an AST file containing the contents of a translation unit.">ASTWriter</a> &Writer,</div>
+<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<char></a> &Buffer,</div>
+<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span> <a class="code" href="classclang_1_1Sema.html" title="Sema - This implements semantic analysis and AST building for C.">Sema</a> &S,</div>
+<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span> <span class="keywordtype">bool</span> hasErrors,</div>
+<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span> raw_ostream &OS) {</div>
+<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span> Writer.<a class="code" href="classclang_1_1ASTWriter.html#a570bb682fab761e09a9e020d3d295efe" title="Write a precompiled header for the given semantic analysis.">WriteAST</a>(S, std::string(), 0, <span class="stringliteral">""</span>, hasErrors);</div>
+<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span> </div>
+<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span> <span class="comment">// Write the generated bitstream to "Out".</span></div>
+<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span> <span class="keywordflow">if</span> (!Buffer.empty())</div>
+<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span> OS.write(Buffer.data(), Buffer.size());</div>
+<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span> </div>
+<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span> }</div>
+<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span> </div>
+<div class="line"><a name="l02579"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a1d57dc558d836d1399bf5ea13a3c99a4"> 2579</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#a1d57dc558d836d1399bf5ea13a3c99a4" title="Serialize this translation unit with the given output stream.">ASTUnit::serialize</a>(raw_ostream &OS) {</div>
+<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span> <span class="keywordtype">bool</span> hasErrors = <a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a21110920a247c38d762a8de1b7e8e767">hasErrorOccurred</a>();</div>
+<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span> </div>
+<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span> <span class="keywordflow">if</span> (WriterData)</div>
+<div class="line"><a name="l02583"></a><span class="lineno"> 2583</span> <span class="keywordflow">return</span> <a class="code" href="ASTUnit_8cpp.html#a84e5d021784c02a87446699b95cee81e">serializeUnit</a>(WriterData->Writer, WriterData->Buffer,</div>
+<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span> <a class="code" href="classclang_1_1ASTUnit.html#a8d27a3cab7f5b873efab08cd50c56399">getSema</a>(), hasErrors, OS);</div>
+<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span> </div>
+<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span> <a class="code" href="classllvm_1_1SmallString.html">SmallString<128></a> Buffer;</div>
+<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span> llvm::BitstreamWriter Stream(Buffer);</div>
+<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span> <a class="code" href="classclang_1_1ASTWriter.html" title="Writes an AST file containing the contents of a translation unit.">ASTWriter</a> Writer(Stream);</div>
+<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span> <span class="keywordflow">return</span> <a class="code" href="ASTUnit_8cpp.html#a84e5d021784c02a87446699b95cee81e">serializeUnit</a>(Writer, Buffer, <a class="code" href="classclang_1_1ASTUnit.html#a8d27a3cab7f5b873efab08cd50c56399">getSema</a>(), hasErrors, OS);</div>
+<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span> }</div>
+<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span> </div>
+<div class="line"><a name="l02592"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a06c501597be28a92c396d145057d9449"> 2592</a></span> <span class="keyword">typedef</span> <a class="code" href="classclang_1_1ContinuousRangeMap.html" title="A map from continuous integer ranges to some value, with a very specialized interface.">ContinuousRangeMap<unsigned, int, 2></a> <a class="code" href="ASTUnit_8cpp.html#a06c501597be28a92c396d145057d9449">SLocRemap</a>;</div>
+<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span> </div>
+<div class="line"><a name="l02594"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#aedab057c51144539d2a377f041061696"> 2594</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ASTUnit_8cpp.html#aedab057c51144539d2a377f041061696">TranslateSLoc</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> &L, <a class="code" href="classclang_1_1ContinuousRangeMap.html" title="A map from continuous integer ranges to some value, with a very specialized interface.">SLocRemap</a> &Remap) {</div>
+<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span> <span class="keywordtype">unsigned</span> Raw = L.<a class="code" href="classclang_1_1SourceLocation.html#a3b9eca838127c4105fd77fd0d3b5962a" title="When a SourceLocation itself cannot be used, this returns an (opaque) 32-bit integer encoding for it...">getRawEncoding</a>();</div>
+<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> MacroBit = 1U << 31;</div>
+<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span> L = <a class="code" href="classclang_1_1SourceLocation.html#af6ffb91a339feae6d6a5101c533f1494" title="Turn a raw encoding of a SourceLocation object into a real SourceLocation.">SourceLocation::getFromRawEncoding</a>((Raw & MacroBit) |</div>
+<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span> ((Raw & ~MacroBit) + Remap.<a class="code" href="classclang_1_1ContinuousRangeMap.html#a06262ebf6496cd8a76111461eeb977f9">find</a>(Raw & ~MacroBit)->second));</div>
+<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span> }</div>
+<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span> </div>
+<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span> <span class="keywordtype">void</span> ASTUnit::TranslateStoredDiagnostics(</div>
+<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span> <a class="code" href="classclang_1_1ASTReader.html" title="Reads an AST files chain containing the contents of a translation unit.">ASTReader</a> *MMan,</div>
+<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span> StringRef ModName,</div>
+<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &SrcMgr,</div>
+<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span> <span class="keyword">const</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<StoredDiagnostic></a> &Diags,</div>
+<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<StoredDiagnostic></a> &Out) {</div>
+<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span> <span class="comment">// The stored diagnostic has the old source manager in it; update</span></div>
+<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span> <span class="comment">// the locations to refer into the new source manager. We also need to remap</span></div>
+<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span> <span class="comment">// all the locations to the new view. This includes the diag location, any</span></div>
+<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span> <span class="comment">// associated source ranges, and the source ranges of associated fix-its.</span></div>
+<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span> <span class="comment">// FIXME: There should be a cleaner way to do this.</span></div>
+<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span> </div>
+<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<StoredDiagnostic, 4></a> Result;</div>
+<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span> Result.reserve(Diags.size());</div>
+<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span> assert(MMan && <span class="stringliteral">"Don't have a module manager"</span>);</div>
+<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span> <a class="code" href="classclang_1_1serialization_1_1ModuleFile.html" title="Information about a module that has been loaded by the ASTReader.">serialization::ModuleFile</a> *Mod = MMan->ModuleMgr.<a class="code" href="classclang_1_1serialization_1_1ModuleManager.html#a4b14a8eba3914c834a5c6888d8d4aa7b" title="Returns the module associated with the given name.">lookup</a>(ModName);</div>
+<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span> assert(Mod && <span class="stringliteral">"Don't have preamble module"</span>);</div>
+<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span> <a class="code" href="classclang_1_1ContinuousRangeMap.html" title="A map from continuous integer ranges to some value, with a very specialized interface.">SLocRemap</a> &Remap = Mod-><a class="code" href="classclang_1_1serialization_1_1ModuleFile.html#a2e8fed7e615e8cf799e6f6dcd9e0c7cb" title="Remapping table for source locations in this module.">SLocRemap</a>;</div>
+<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, N = Diags.size(); I != N; ++I) {</div>
+<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span> <span class="comment">// Rebuild the StoredDiagnostic.</span></div>
+<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1StoredDiagnostic.html" title="Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...">StoredDiagnostic</a> &SD = Diags[I];</div>
+<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> L = SD.<a class="code" href="classclang_1_1StoredDiagnostic.html#a7482563937a50557c6605660b5a22936">getLocation</a>();</div>
+<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span> <a class="code" href="ASTUnit_8cpp.html#aedab057c51144539d2a377f041061696">TranslateSLoc</a>(L, Remap);</div>
+<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span> <a class="code" href="classclang_1_1FullSourceLoc.html" title="A SourceLocation and its associated SourceManager.">FullSourceLoc</a> Loc(L, SrcMgr);</div>
+<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span> </div>
+<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<CharSourceRange, 4></a> <a class="code" href="Format_8cpp.html#aef493d34e5188d58ad804f7954a8ed5b">Ranges</a>;</div>
+<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span> Ranges.reserve(SD.<a class="code" href="classclang_1_1StoredDiagnostic.html#a3b5b35bbabb1e5c0f2bc464b9aa4eeed">range_size</a>());</div>
+<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1StoredDiagnostic.html#a82f6d9a3fc3dfd93675aa57f58bce5cc">StoredDiagnostic::range_iterator</a> I = SD.<a class="code" href="classclang_1_1StoredDiagnostic.html#aea11e5c14766fbab04f2308e5d63c91f">range_begin</a>(),</div>
+<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span> E = SD.<a class="code" href="classclang_1_1StoredDiagnostic.html#a0dc083f2a06a8fa90b4955c6fae71b70">range_end</a>();</div>
+<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span> I != E; ++I) {</div>
+<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> BL = I->getBegin();</div>
+<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span> <a class="code" href="ASTUnit_8cpp.html#aedab057c51144539d2a377f041061696">TranslateSLoc</a>(BL, Remap);</div>
+<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> EL = I->getEnd();</div>
+<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span> <a class="code" href="ASTUnit_8cpp.html#aedab057c51144539d2a377f041061696">TranslateSLoc</a>(EL, Remap);</div>
+<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span> Ranges.push_back(<a class="code" href="classclang_1_1CharSourceRange.html" title="Represents a character-granular source range.">CharSourceRange</a>(<a class="code" href="classclang_1_1SourceRange.html" title="A trival tuple used to represent a source range.">SourceRange</a>(BL, EL), I->isTokenRange()));</div>
+<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span> }</div>
+<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span> </div>
+<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<FixItHint, 2></a> FixIts;</div>
+<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span> FixIts.reserve(SD.<a class="code" href="classclang_1_1StoredDiagnostic.html#a2c9ad98e65f2b35321248ba36f536fda">fixit_size</a>());</div>
+<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1StoredDiagnostic.html#aa9d4ae3cad3f312bc461a1526e97a9fd">StoredDiagnostic::fixit_iterator</a> I = SD.<a class="code" href="classclang_1_1StoredDiagnostic.html#a7d89c9cf2710d1c4f59789355896e83a">fixit_begin</a>(),</div>
+<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span> E = SD.<a class="code" href="classclang_1_1StoredDiagnostic.html#a92390882e3763b046f8fbe089c861d6b">fixit_end</a>();</div>
+<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span> I != E; ++I) {</div>
+<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span> FixIts.push_back(<a class="code" href="classclang_1_1FixItHint.html" title="Annotates a diagnostic with some code that should be inserted, removed, or replaced to fix the proble...">FixItHint</a>());</div>
+<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span> <a class="code" href="classclang_1_1FixItHint.html" title="Annotates a diagnostic with some code that should be inserted, removed, or replaced to fix the proble...">FixItHint</a> &FH = FixIts.back();</div>
+<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span> FH.<a class="code" href="classclang_1_1FixItHint.html#ad81794cbfdb9d0e7dd9ac0c0b43b0301" title="The actual code to insert at the insertion location, as a string.">CodeToInsert</a> = I->CodeToInsert;</div>
+<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> BL = I->RemoveRange.getBegin();</div>
+<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span> <a class="code" href="ASTUnit_8cpp.html#aedab057c51144539d2a377f041061696">TranslateSLoc</a>(BL, Remap);</div>
+<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> EL = I->RemoveRange.getEnd();</div>
+<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span> <a class="code" href="ASTUnit_8cpp.html#aedab057c51144539d2a377f041061696">TranslateSLoc</a>(EL, Remap);</div>
+<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span> FH.<a class="code" href="classclang_1_1FixItHint.html#a5f7f3e68c26742c35764ebd1b0e94abb" title="Code that should be replaced to correct the error. Empty for an insertion hint.">RemoveRange</a> = <a class="code" href="classclang_1_1CharSourceRange.html" title="Represents a character-granular source range.">CharSourceRange</a>(<a class="code" href="classclang_1_1SourceRange.html" title="A trival tuple used to represent a source range.">SourceRange</a>(BL, EL),</div>
+<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span> I->RemoveRange.isTokenRange());</div>
+<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span> }</div>
+<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span> </div>
+<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span> Result.push_back(<a class="code" href="classclang_1_1StoredDiagnostic.html" title="Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...">StoredDiagnostic</a>(SD.<a class="code" href="classclang_1_1StoredDiagnostic.html#ab552a4e1500b50decc509e276b7f39d8">getLevel</a>(), SD.<a class="code" href="classclang_1_1StoredDiagnostic.html#a944fbd9a65e9b809a2ecde0c95905fad">getID</a>(), </div>
+<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span> SD.<a class="code" href="classclang_1_1StoredDiagnostic.html#a3611557c9f468be514e9715e2de60d3b">getMessage</a>(), Loc, <a class="code" href="Format_8cpp.html#aef493d34e5188d58ad804f7954a8ed5b">Ranges</a>, FixIts));</div>
+<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span> }</div>
+<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span> Result.swap(Out);</div>
+<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span> }</div>
+<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span> </div>
+<div class="line"><a name="l02660"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a0651d6027d8c640efcf14ccb857d0956"> 2660</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#a0651d6027d8c640efcf14ccb857d0956" title="Add a new local file-level declaration.">ASTUnit::addFileLevelDecl</a>(<a class="code" href="classclang_1_1Decl.html">Decl</a> *D) {</div>
+<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span> assert(D);</div>
+<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span> </div>
+<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span> <span class="comment">// We only care about local declarations.</span></div>
+<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span> <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#a65e7ee086555015067f692bb1c2036f7" title="Determine whether this declaration came from an AST file (such as a precompiled header or module) rat...">isFromASTFile</a>())</div>
+<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span> </div>
+<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#afe4356a77609114d8df0bfc9c2b8701f">SM</a> = *SourceMgr;</div>
+<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc = D-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>();</div>
+<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span> <span class="keywordflow">if</span> (Loc.<a class="code" href="classclang_1_1SourceLocation.html#a1936fc09837ff8a195fa63e29f05796f">isInvalid</a>() || !SM.<a class="code" href="classclang_1_1SourceManager.html#af1194356bbade1c672011d939b75ebd2" title="Returns true if Loc did not come from a PCH/Module.">isLocalSourceLocation</a>(Loc))</div>
+<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span> </div>
+<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span> <span class="comment">// We only keep track of the file-level declarations of each file.</span></div>
+<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span> <span class="keywordflow">if</span> (!D-><a class="code" href="classclang_1_1Decl.html#aa390f755d0a0a1fc7fc557af886e4c93">getLexicalDeclContext</a>()-><a class="code" href="classclang_1_1DeclContext.html#ac33a346d4e8db5e892aba87393f4e8e4">isFileContext</a>())</div>
+<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span> </div>
+<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> FileLoc = SM.<a class="code" href="classclang_1_1SourceManager.html#a0a48eea62efa1672fb1da24a310d36db" title="Given Loc, if it is a macro location return the expansion location or the spelling location...">getFileLoc</a>(Loc);</div>
+<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span> assert(SM.<a class="code" href="classclang_1_1SourceManager.html#af1194356bbade1c672011d939b75ebd2" title="Returns true if Loc did not come from a PCH/Module.">isLocalSourceLocation</a>(FileLoc));</div>
+<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span> <a class="code" href="classclang_1_1FileID.html" title="An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...">FileID</a> FID;</div>
+<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span> <span class="keywordtype">unsigned</span> <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>;</div>
+<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span> llvm::tie(FID, Offset) = SM.<a class="code" href="classclang_1_1SourceManager.html#a957bbe1ee3d932ad3f82bcbeac422e35" title="Decompose the specified location into a raw FileID + Offset pair.">getDecomposedLoc</a>(FileLoc);</div>
+<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span> <span class="keywordflow">if</span> (FID.isInvalid())</div>
+<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span> </div>
+<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span> <a class="code" href="classllvm_1_1SmallVector.html">LocDeclsTy</a> *&Decls = FileDecls[FID];</div>
+<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span> <span class="keywordflow">if</span> (!Decls)</div>
+<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span> Decls = <span class="keyword">new</span> <a class="code" href="classllvm_1_1SmallVector.html">LocDeclsTy</a>();</div>
+<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span> </div>
+<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span> std::pair<unsigned, Decl *> LocDecl(Offset, D);</div>
+<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span> </div>
+<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span> <span class="keywordflow">if</span> (Decls->empty() || Decls->back().first <= <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>) {</div>
+<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span> Decls->push_back(LocDecl);</div>
+<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span> }</div>
+<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span> </div>
+<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span> LocDeclsTy::iterator I = std::upper_bound(Decls->begin(), Decls->end(),</div>
+<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span> LocDecl, llvm::less_first());</div>
+<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span> </div>
+<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span> Decls->insert(I, LocDecl);</div>
+<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span> }</div>
+<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span> </div>
+<div class="line"><a name="l02701"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#aef7a5e5342a9e9506fb2407bf1b2d3a6"> 2701</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#aef7a5e5342a9e9506fb2407bf1b2d3a6" title="Get the decls that are contained in a file in the Offset/Length range. Length can be 0 to indicate a ...">ASTUnit::findFileRegionDecls</a>(<a class="code" href="classclang_1_1FileID.html" title="An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...">FileID</a> File, <span class="keywordtype">unsigned</span> <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>, <span class="keywordtype">unsigned</span> Length,</div>
+<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<Decl *></a> &Decls) {</div>
+<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span> <span class="keywordflow">if</span> (File.<a class="code" href="classclang_1_1FileID.html#a89ac6cca1064b7275a777f86450c7863">isInvalid</a>())</div>
+<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span> </div>
+<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span> <span class="keywordflow">if</span> (SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#a81afa55a40a09ccd4ae10a5830f85961" title="Returns true if FID came from a PCH/Module.">isLoadedFileID</a>(File)) {</div>
+<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span> assert(Ctx-><a class="code" href="classclang_1_1ASTContext.html#a28b9de2cb15f599454b7b92cfa65d7e3" title="Retrieve a pointer to the external AST source associated with this AST context, if any...">getExternalSource</a>() && <span class="stringliteral">"No external source!"</span>);</div>
+<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span> <span class="keywordflow">return</span> Ctx-><a class="code" href="classclang_1_1ASTContext.html#a28b9de2cb15f599454b7b92cfa65d7e3" title="Retrieve a pointer to the external AST source associated with this AST context, if any...">getExternalSource</a>()-><a class="code" href="classclang_1_1ExternalASTSource.html#a91916ac16d26e9216d54b84950256e0a" title="Get the decls that are contained in a file in the Offset/Length range. Length can be 0 to indicate a ...">FindFileRegionDecls</a>(File, Offset, Length,</div>
+<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span> Decls);</div>
+<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span> }</div>
+<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span> </div>
+<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span> FileDeclsTy::iterator I = FileDecls.find(File);</div>
+<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span> <span class="keywordflow">if</span> (I == FileDecls.end())</div>
+<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span> </div>
+<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span> <a class="code" href="classllvm_1_1SmallVector.html">LocDeclsTy</a> &LocDecls = *I->second;</div>
+<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span> <span class="keywordflow">if</span> (LocDecls.empty())</div>
+<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span> </div>
+<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span> LocDeclsTy::iterator BeginIt =</div>
+<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span> std::lower_bound(LocDecls.begin(), LocDecls.end(),</div>
+<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span> std::make_pair(Offset, (<a class="code" href="classclang_1_1Decl.html">Decl</a> *)0), llvm::less_first());</div>
+<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span> <span class="keywordflow">if</span> (BeginIt != LocDecls.begin())</div>
+<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span> --BeginIt;</div>
+<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span> </div>
+<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span> <span class="comment">// If we are pointing at a top-level decl inside an objc container, we need</span></div>
+<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span> <span class="comment">// to backtrack until we find it otherwise we will fail to report that the</span></div>
+<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span> <span class="comment">// region overlaps with an objc container.</span></div>
+<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span> <span class="keywordflow">while</span> (BeginIt != LocDecls.begin() &&</div>
+<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span> BeginIt->second->isTopLevelDeclInObjCContainer())</div>
+<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span> --BeginIt;</div>
+<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span> </div>
+<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span> LocDeclsTy::iterator EndIt = std::upper_bound(</div>
+<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span> LocDecls.begin(), LocDecls.end(),</div>
+<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span> std::make_pair(Offset + Length, (<a class="code" href="classclang_1_1Decl.html">Decl</a> *)0), llvm::less_first());</div>
+<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span> <span class="keywordflow">if</span> (EndIt != LocDecls.end())</div>
+<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span> ++EndIt;</div>
+<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span> </div>
+<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span> <span class="keywordflow">for</span> (LocDeclsTy::iterator DIt = BeginIt; DIt != EndIt; ++DIt)</div>
+<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span> Decls.push_back(DIt->second);</div>
+<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span> }</div>
+<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span> </div>
+<div class="line"><a name="l02743"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#aa6f2acb33a53d0964ab7ea64e1fd212b"> 2743</a></span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#aa6f2acb33a53d0964ab7ea64e1fd212b" title="Get the source location for the given file:line:col triplet.">ASTUnit::getLocation</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *File,</div>
+<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span> <span class="keywordtype">unsigned</span> <a class="code" href="TokenAnnotator_8cpp.html#a0d95c6acfc477accd6ff1b1ca93c82cc">Line</a>, <span class="keywordtype">unsigned</span> Col)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#afe4356a77609114d8df0bfc9c2b8701f">SM</a> = <a class="code" href="classclang_1_1ASTUnit.html#ac04280e780aac7894aa93e2cdda3469a">getSourceManager</a>();</div>
+<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc = SM.<a class="code" href="classclang_1_1SourceManager.html#a5573aab1578a194e43c7934e6902aeec" title="Get the source location for the given file:line:col triplet.">translateFileLineCol</a>(File, Line, Col);</div>
+<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span> <span class="keywordflow">return</span> SM.<a class="code" href="classclang_1_1SourceManager.html#adbef30eb1b9c876ee96772f16c8e1c50" title="If Loc points inside a function macro argument, the returned location will be the macro location in w...">getMacroArgExpandedLocation</a>(Loc);</div>
+<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span> }</div>
+<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span> </div>
+<div class="line"><a name="l02750"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ad62eb992aaf149535dae8b7a29314289"> 2750</a></span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#aa6f2acb33a53d0964ab7ea64e1fd212b" title="Get the source location for the given file:line:col triplet.">ASTUnit::getLocation</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *File,</div>
+<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span> <span class="keywordtype">unsigned</span> <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#afe4356a77609114d8df0bfc9c2b8701f">SM</a> = <a class="code" href="classclang_1_1ASTUnit.html#ac04280e780aac7894aa93e2cdda3469a">getSourceManager</a>();</div>
+<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> FileLoc = SM.<a class="code" href="classclang_1_1SourceManager.html#a5573aab1578a194e43c7934e6902aeec" title="Get the source location for the given file:line:col triplet.">translateFileLineCol</a>(File, 1, 1);</div>
+<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span> <span class="keywordflow">return</span> SM.<a class="code" href="classclang_1_1SourceManager.html#adbef30eb1b9c876ee96772f16c8e1c50" title="If Loc points inside a function macro argument, the returned location will be the macro location in w...">getMacroArgExpandedLocation</a>(FileLoc.<a class="code" href="classclang_1_1SourceLocation.html#a1abf1cac74e512604b1f2c8921a446fa" title="Return a source location with the specified offset from this SourceLocation.">getLocWithOffset</a>(Offset));</div>
+<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span> }</div>
+<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span> <span class="comment"></span></div>
+<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span> <span class="comment">/// \brief If \arg Loc is a loaded location from the preamble, returns</span></div>
+<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span> <span class="comment">/// the corresponding local location of the main file, otherwise it returns</span></div>
+<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span> <span class="comment">/// \arg Loc.</span></div>
+<div class="line"><a name="l02760"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ae8720ef2f38cd71fbc317760cae9e5f0"> 2760</a></span> <span class="comment"></span><a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#ae8720ef2f38cd71fbc317760cae9e5f0" title="If Loc is a loaded location from the preamble, returns the corresponding local location of the main f...">ASTUnit::mapLocationFromPreamble</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc) {</div>
+<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span> <a class="code" href="classclang_1_1FileID.html" title="An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...">FileID</a> PreambleID;</div>
+<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span> <span class="keywordflow">if</span> (SourceMgr)</div>
+<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span> PreambleID = SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#a0cecf294e287bdaa16731595bbbe7efc" title="Get the file ID for the precompiled preamble if there is one.">getPreambleFileID</a>();</div>
+<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span> </div>
+<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span> <span class="keywordflow">if</span> (Loc.<a class="code" href="classclang_1_1SourceLocation.html#a1936fc09837ff8a195fa63e29f05796f">isInvalid</a>() || Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#abe672377adaa89b4cb0eedbb76e90c6d">empty</a>() || PreambleID.<a class="code" href="classclang_1_1FileID.html#a89ac6cca1064b7275a777f86450c7863">isInvalid</a>())</div>
+<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span> <span class="keywordflow">return</span> Loc;</div>
+<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span> </div>
+<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span> <span class="keywordtype">unsigned</span> Offs;</div>
+<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span> <span class="keywordflow">if</span> (SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ab7ef8050c9bcf7a743dab59f2487382c" title="Given a specific FileID, returns true if Loc is inside that FileID chunk and sets relative offset (of...">isInFileID</a>(Loc, PreambleID, &Offs) && Offs < Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3dfca459bb7a7b012c59bd8fa5617fbb">size</a>()) {</div>
+<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> FileLoc</div>
+<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span> = SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ae1f1d6c242c1db7b224a7a6dd35cb82e" title="Return the source location corresponding to the first byte of the specified file.">getLocForStartOfFile</a>(SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ad3ac47ab7380c82d19243a2db765479c" title="Returns the FileID of the main source file.">getMainFileID</a>());</div>
+<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span> <span class="keywordflow">return</span> FileLoc.<a class="code" href="classclang_1_1SourceLocation.html#a1abf1cac74e512604b1f2c8921a446fa" title="Return a source location with the specified offset from this SourceLocation.">getLocWithOffset</a>(Offs);</div>
+<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span> }</div>
+<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span> </div>
+<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span> <span class="keywordflow">return</span> Loc;</div>
+<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span> }</div>
+<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span> <span class="comment"></span></div>
+<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span> <span class="comment">/// \brief If \arg Loc is a local location of the main file but inside the</span></div>
+<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span> <span class="comment">/// preamble chunk, returns the corresponding loaded location from the</span></div>
+<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span> <span class="comment">/// preamble, otherwise it returns \arg Loc.</span></div>
+<div class="line"><a name="l02781"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#adae41906c1e9d29b27f162326d25e79f"> 2781</a></span> <span class="comment"></span><a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#adae41906c1e9d29b27f162326d25e79f" title="If Loc is a local location of the main file but inside the preamble chunk, returns the corresponding ...">ASTUnit::mapLocationToPreamble</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc) {</div>
+<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span> <a class="code" href="classclang_1_1FileID.html" title="An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...">FileID</a> PreambleID;</div>
+<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span> <span class="keywordflow">if</span> (SourceMgr)</div>
+<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span> PreambleID = SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#a0cecf294e287bdaa16731595bbbe7efc" title="Get the file ID for the precompiled preamble if there is one.">getPreambleFileID</a>();</div>
+<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span> </div>
+<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span> <span class="keywordflow">if</span> (Loc.<a class="code" href="classclang_1_1SourceLocation.html#a1936fc09837ff8a195fa63e29f05796f">isInvalid</a>() || Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#abe672377adaa89b4cb0eedbb76e90c6d">empty</a>() || PreambleID.<a class="code" href="classclang_1_1FileID.html#a89ac6cca1064b7275a777f86450c7863">isInvalid</a>())</div>
+<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span> <span class="keywordflow">return</span> Loc;</div>
+<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span> </div>
+<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span> <span class="keywordtype">unsigned</span> Offs;</div>
+<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span> <span class="keywordflow">if</span> (SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ab7ef8050c9bcf7a743dab59f2487382c" title="Given a specific FileID, returns true if Loc is inside that FileID chunk and sets relative offset (of...">isInFileID</a>(Loc, SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ad3ac47ab7380c82d19243a2db765479c" title="Returns the FileID of the main source file.">getMainFileID</a>(), &Offs) &&</div>
+<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span> Offs < Preamble.<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3dfca459bb7a7b012c59bd8fa5617fbb">size</a>()) {</div>
+<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> FileLoc = SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ae1f1d6c242c1db7b224a7a6dd35cb82e" title="Return the source location corresponding to the first byte of the specified file.">getLocForStartOfFile</a>(PreambleID);</div>
+<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span> <span class="keywordflow">return</span> FileLoc.<a class="code" href="classclang_1_1SourceLocation.html#a1abf1cac74e512604b1f2c8921a446fa" title="Return a source location with the specified offset from this SourceLocation.">getLocWithOffset</a>(Offs);</div>
+<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span> }</div>
+<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span> </div>
+<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span> <span class="keywordflow">return</span> Loc;</div>
+<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span> }</div>
+<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span> </div>
+<div class="line"><a name="l02799"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a66a84c83ac8cb73b8e2b1385ec85303d"> 2799</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#a66a84c83ac8cb73b8e2b1385ec85303d">ASTUnit::isInPreambleFileID</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc) {</div>
+<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span> <a class="code" href="classclang_1_1FileID.html" title="An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...">FileID</a> FID;</div>
+<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span> <span class="keywordflow">if</span> (SourceMgr)</div>
+<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span> FID = SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#a0cecf294e287bdaa16731595bbbe7efc" title="Get the file ID for the precompiled preamble if there is one.">getPreambleFileID</a>();</div>
+<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span> </div>
+<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span> <span class="keywordflow">if</span> (Loc.<a class="code" href="classclang_1_1SourceLocation.html#a1936fc09837ff8a195fa63e29f05796f">isInvalid</a>() || FID.<a class="code" href="classclang_1_1FileID.html#a89ac6cca1064b7275a777f86450c7863">isInvalid</a>())</div>
+<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span> </div>
+<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span> <span class="keywordflow">return</span> SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ab7ef8050c9bcf7a743dab59f2487382c" title="Given a specific FileID, returns true if Loc is inside that FileID chunk and sets relative offset (of...">isInFileID</a>(Loc, FID);</div>
+<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span> }</div>
+<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span> </div>
+<div class="line"><a name="l02810"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#abb079a3fc31e1a1c4d8df9f04d8abb6c"> 2810</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#abb079a3fc31e1a1c4d8df9f04d8abb6c">ASTUnit::isInMainFileID</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc) {</div>
+<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span> <a class="code" href="classclang_1_1FileID.html" title="An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...">FileID</a> FID;</div>
+<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span> <span class="keywordflow">if</span> (SourceMgr)</div>
+<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span> FID = SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ad3ac47ab7380c82d19243a2db765479c" title="Returns the FileID of the main source file.">getMainFileID</a>();</div>
+<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span> </div>
+<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span> <span class="keywordflow">if</span> (Loc.<a class="code" href="classclang_1_1SourceLocation.html#a1936fc09837ff8a195fa63e29f05796f">isInvalid</a>() || FID.<a class="code" href="classclang_1_1FileID.html#a89ac6cca1064b7275a777f86450c7863">isInvalid</a>())</div>
+<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span> </div>
+<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span> <span class="keywordflow">return</span> SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ab7ef8050c9bcf7a743dab59f2487382c" title="Given a specific FileID, returns true if Loc is inside that FileID chunk and sets relative offset (of...">isInFileID</a>(Loc, FID);</div>
+<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span> }</div>
+<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span> </div>
+<div class="line"><a name="l02821"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a4bd3b57548cf93183b31b1f1a771730e"> 2821</a></span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#a4bd3b57548cf93183b31b1f1a771730e">ASTUnit::getEndOfPreambleFileID</a>() {</div>
+<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span> <a class="code" href="classclang_1_1FileID.html" title="An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...">FileID</a> FID;</div>
+<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span> <span class="keywordflow">if</span> (SourceMgr)</div>
+<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span> FID = SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#a0cecf294e287bdaa16731595bbbe7efc" title="Get the file ID for the precompiled preamble if there is one.">getPreambleFileID</a>();</div>
+<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span> </div>
+<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span> <span class="keywordflow">if</span> (FID.<a class="code" href="classclang_1_1FileID.html#a89ac6cca1064b7275a777f86450c7863">isInvalid</a>())</div>
+<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a>();</div>
+<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span> </div>
+<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span> <span class="keywordflow">return</span> SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#addb07c2f2e315023e10ceff3c67b63b5" title="Return the source location corresponding to the last byte of the specified file.">getLocForEndOfFile</a>(FID);</div>
+<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span> }</div>
+<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span> </div>
+<div class="line"><a name="l02832"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a0e1deea2bdb93466ad8a4eab9717dd22"> 2832</a></span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#a0e1deea2bdb93466ad8a4eab9717dd22">ASTUnit::getStartOfMainFileID</a>() {</div>
+<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span> <a class="code" href="classclang_1_1FileID.html" title="An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...">FileID</a> FID;</div>
+<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span> <span class="keywordflow">if</span> (SourceMgr)</div>
+<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span> FID = SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ad3ac47ab7380c82d19243a2db765479c" title="Returns the FileID of the main source file.">getMainFileID</a>();</div>
+<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span> </div>
+<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span> <span class="keywordflow">if</span> (FID.<a class="code" href="classclang_1_1FileID.html#a89ac6cca1064b7275a777f86450c7863">isInvalid</a>())</div>
+<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a>();</div>
+<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span> </div>
+<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span> <span class="keywordflow">return</span> SourceMgr-><a class="code" href="classclang_1_1SourceManager.html#ae1f1d6c242c1db7b224a7a6dd35cb82e" title="Return the source location corresponding to the first byte of the specified file.">getLocForStartOfFile</a>(FID);</div>
+<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span> }</div>
+<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span> </div>
+<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span> std::pair<PreprocessingRecord::iterator, PreprocessingRecord::iterator></div>
+<div class="line"><a name="l02844"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#aaa7689a05dcb28317588835f580757eb"> 2844</a></span> <a class="code" href="classclang_1_1ASTUnit.html#aaa7689a05dcb28317588835f580757eb" title="Returns an iterator range for the local preprocessing entities of the local Preprocessor, if this is a parsed source file, or the loaded preprocessing entities of the primary module if this is an AST file.">ASTUnit::getLocalPreprocessingEntities</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1ASTUnit.html#a096e29cf5e6208b218149ef7eb715144">isMainFileAST</a>()) {</div>
+<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span> <a class="code" href="classclang_1_1serialization_1_1ModuleFile.html" title="Information about a module that has been loaded by the ASTReader.">serialization::ModuleFile</a> &</div>
+<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span> Mod = Reader-><a class="code" href="classclang_1_1ASTReader.html#addc10b73f09905870c78736345a691cc" title="Retrieve the module manager.">getModuleManager</a>().<a class="code" href="classclang_1_1serialization_1_1ModuleManager.html#a3789c7d5f6dcec7382ef69d452607164" title="Returns the primary module associated with the manager, that is, the first module loaded...">getPrimaryModule</a>();</div>
+<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span> <span class="keywordflow">return</span> Reader->getModulePreprocessedEntities(Mod);</div>
+<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span> }</div>
+<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span> </div>
+<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1PreprocessingRecord.html" title="A record of the steps taken while preprocessing a source file, including the various preprocessing di...">PreprocessingRecord</a> *PPRec = PP->getPreprocessingRecord())</div>
+<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span> <span class="keywordflow">return</span> std::make_pair(PPRec->local_begin(), PPRec->local_end());</div>
+<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span> </div>
+<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span> <span class="keywordflow">return</span> std::make_pair(<a class="code" href="classclang_1_1PreprocessingRecord_1_1iterator.html">PreprocessingRecord::iterator</a>(),</div>
+<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span> <a class="code" href="classclang_1_1PreprocessingRecord_1_1iterator.html">PreprocessingRecord::iterator</a>());</div>
+<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span> }</div>
+<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span> </div>
+<div class="line"><a name="l02858"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ab0277ee093bc34eff0b17fa7e48fc5fd"> 2858</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#ab0277ee093bc34eff0b17fa7e48fc5fd" title="Iterate over local declarations (locally parsed if this is a parsed source file or the loaded declara...">ASTUnit::visitLocalTopLevelDecls</a>(<span class="keywordtype">void</span> *context, DeclVisitorFn Fn) {</div>
+<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1ASTUnit.html#a096e29cf5e6208b218149ef7eb715144">isMainFileAST</a>()) {</div>
+<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span> <a class="code" href="classclang_1_1serialization_1_1ModuleFile.html" title="Information about a module that has been loaded by the ASTReader.">serialization::ModuleFile</a> &</div>
+<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span> Mod = Reader-><a class="code" href="classclang_1_1ASTReader.html#addc10b73f09905870c78736345a691cc" title="Retrieve the module manager.">getModuleManager</a>().<a class="code" href="classclang_1_1serialization_1_1ModuleManager.html#a3789c7d5f6dcec7382ef69d452607164" title="Returns the primary module associated with the manager, that is, the first module loaded...">getPrimaryModule</a>();</div>
+<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span> ASTReader::ModuleDeclIterator MDI, MDE;</div>
+<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span> llvm::tie(MDI, MDE) = Reader->getModuleFileLevelDecls(Mod);</div>
+<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span> <span class="keywordflow">for</span> (; MDI != MDE; ++MDI) {</div>
+<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span> <span class="keywordflow">if</span> (!Fn(context, *MDI))</div>
+<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span> }</div>
+<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span> </div>
+<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span> }</div>
+<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span> </div>
+<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1ASTUnit.html#af873ac7dff72cdaffd8137f3bf389aed">ASTUnit::top_level_iterator</a> TL = <a class="code" href="classclang_1_1ASTUnit.html#ab48aae35ccc89757f372201b1508e5ab">top_level_begin</a>(),</div>
+<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span> TLEnd = <a class="code" href="classclang_1_1ASTUnit.html#a9545b5b7adc116c3372a941e5f3f23e8">top_level_end</a>();</div>
+<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span> TL != TLEnd; ++TL) {</div>
+<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span> <span class="keywordflow">if</span> (!Fn(context, *TL))</div>
+<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span> }</div>
+<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span> </div>
+<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span> }</div>
+<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span> </div>
+<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span> <span class="keyword">struct </span>PCHLocatorInfo {</div>
+<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span> <a class="code" href="classclang_1_1serialization_1_1ModuleFile.html" title="Information about a module that has been loaded by the ASTReader.">serialization::ModuleFile</a> *Mod;</div>
+<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span> PCHLocatorInfo() : Mod(0) {}</div>
+<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span> };</div>
+<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span> }</div>
+<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span> </div>
+<div class="line"><a name="l02889"></a><span class="lineno"><a class="code" href="ASTUnit_8cpp.html#a7677acf70aa160fa298e547c96eb2057"> 2889</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ASTUnit_8cpp.html#a7677acf70aa160fa298e547c96eb2057">PCHLocator</a>(<a class="code" href="classclang_1_1serialization_1_1ModuleFile.html" title="Information about a module that has been loaded by the ASTReader.">serialization::ModuleFile</a> &M, <span class="keywordtype">void</span> *UserData) {</div>
+<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span> PCHLocatorInfo &Info = *<span class="keyword">static_cast<</span>PCHLocatorInfo*<span class="keyword">></span>(UserData);</div>
+<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span> <span class="keywordflow">switch</span> (M.<a class="code" href="classclang_1_1serialization_1_1ModuleFile.html#af0cdb3be9cdc29ae4a8f351ab0f91083" title="The type of this module.">Kind</a>) {</div>
+<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span> <span class="keywordflow">case</span> <a class="code" href="namespaceclang_1_1serialization.html#ac4e913a3b4b4721b8995cb7dd6d9bb1ea22e2f1dba8920d73cd2979ca1e17a097" title="File is a module proper.">serialization::MK_Module</a>:</div>
+<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span> <span class="keywordflow">return</span> <span class="keyword">true</span>; <span class="comment">// skip dependencies.</span></div>
+<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span> <span class="keywordflow">case</span> <a class="code" href="namespaceclang_1_1serialization.html#ac4e913a3b4b4721b8995cb7dd6d9bb1ea3be10581dcaa249a8ba0d5c740b18e49" title="File is a PCH file treated as such.">serialization::MK_PCH</a>:</div>
+<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span> Info.Mod = &M;</div>
+<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span> <span class="keywordflow">return</span> <span class="keyword">true</span>; <span class="comment">// found it.</span></div>
+<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span> <span class="keywordflow">case</span> <a class="code" href="namespaceclang_1_1serialization.html#ac4e913a3b4b4721b8995cb7dd6d9bb1ea53fc1233721074698c4b1ff9b78cc35d" title="File is a PCH file treated as the preamble.">serialization::MK_Preamble</a>:</div>
+<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span> <span class="keywordflow">return</span> <span class="keyword">false</span>; <span class="comment">// look in dependencies.</span></div>
+<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span> <span class="keywordflow">case</span> <a class="code" href="namespaceclang_1_1serialization.html#ac4e913a3b4b4721b8995cb7dd6d9bb1ea56f9f6ae59033d66f4f50e4fb149cce3" title="File is a PCH file treated as the actual main file.">serialization::MK_MainFile</a>:</div>
+<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span> <span class="keywordflow">return</span> <span class="keyword">false</span>; <span class="comment">// look in dependencies.</span></div>
+<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span> }</div>
+<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span> </div>
+<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span> }</div>
+<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span> </div>
+<div class="line"><a name="l02906"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a86f3134d696c0fd5b311a4a4e96a99d1"> 2906</a></span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *<a class="code" href="classclang_1_1ASTUnit.html#a86f3134d696c0fd5b311a4a4e96a99d1" title="Get the PCH file if one was included.">ASTUnit::getPCHFile</a>() {</div>
+<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span> <span class="keywordflow">if</span> (!Reader)</div>
+<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span> </div>
+<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span> PCHLocatorInfo Info;</div>
+<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span> Reader-><a class="code" href="classclang_1_1ASTReader.html#addc10b73f09905870c78736345a691cc" title="Retrieve the module manager.">getModuleManager</a>().<a class="code" href="classclang_1_1serialization_1_1ModuleManager.html#ac18e863c625539f388b9b5dfe123086b" title="Visit each of the modules.">visit</a>(<a class="code" href="ASTUnit_8cpp.html#a7677acf70aa160fa298e547c96eb2057">PCHLocator</a>, &Info);</div>
+<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span> <span class="keywordflow">if</span> (Info.Mod)</div>
+<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span> <span class="keywordflow">return</span> Info.Mod->File;</div>
+<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span> </div>
+<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span> <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span> }</div>
+<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span> </div>
+<div class="line"><a name="l02918"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a88e11e6fe73e28e253bbe76ba7731a11"> 2918</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#a88e11e6fe73e28e253bbe76ba7731a11" title="Returns true if the ASTUnit was constructed from a serialized module file.">ASTUnit::isModuleFile</a>() {</div>
+<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTUnit.html#a096e29cf5e6208b218149ef7eb715144">isMainFileAST</a>() && !ASTFileLangOpts.<a class="code" href="classclang_1_1LangOptions.html#afd139a4fe76990c1c01e77ae67cd1310" title="The name of the current module.">CurrentModule</a>.empty();</div>
+<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span> }</div>
+<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span> </div>
+<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span> <span class="keywordtype">void</span> ASTUnit::PreambleData::countLines()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span> NumLines = 0;</div>
+<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#abe672377adaa89b4cb0eedbb76e90c6d">empty</a>())</div>
+<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span> </div>
+<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span> <span class="keywordflow">for</span> (std::vector<char>::const_iterator</div>
+<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span> I = Buffer.begin(), E = Buffer.end(); I != E; ++I) {</div>
+<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span> <span class="keywordflow">if</span> (*I == <span class="charliteral">'\n'</span>)</div>
+<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span> ++NumLines;</div>
+<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span> }</div>
+<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span> <span class="keywordflow">if</span> (Buffer.back() != <span class="charliteral">'\n'</span>)</div>
+<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span> ++NumLines;</div>
+<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span> }</div>
+<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span> </div>
+<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span> <span class="preprocessor">#ifndef NDEBUG</span></div>
+<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span> <span class="preprocessor"></span>ASTUnit::ConcurrencyState::ConcurrencyState() {</div>
+<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span> Mutex = <span class="keyword">new</span> llvm::sys::MutexImpl(<span class="comment">/*recursive=*/</span><span class="keyword">true</span>);</div>
+<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span> }</div>
+<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span> </div>
+<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span> ASTUnit::ConcurrencyState::~ConcurrencyState() {</div>
+<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span> <span class="keyword">delete</span> <span class="keyword">static_cast<</span>llvm::sys::MutexImpl *<span class="keyword">></span>(Mutex);</div>
+<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span> }</div>
+<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span> </div>
+<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span> <span class="keywordtype">void</span> ASTUnit::ConcurrencyState::start() {</div>
+<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span> <span class="keywordtype">bool</span> acquired = <span class="keyword">static_cast<</span>llvm::sys::MutexImpl *<span class="keyword">></span>(Mutex)->tryacquire();</div>
+<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span> assert(acquired && <span class="stringliteral">"Concurrent access to ASTUnit!"</span>);</div>
+<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span> }</div>
+<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span> </div>
+<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span> <span class="keywordtype">void</span> ASTUnit::ConcurrencyState::finish() {</div>
+<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span> <span class="keyword">static_cast<</span>llvm::sys::MutexImpl *<span class="keyword">></span>(Mutex)->release();</div>
+<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span> }</div>
+<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span> </div>
+<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span> <span class="preprocessor">#else // NDEBUG</span></div>
+<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span> <span class="preprocessor"></span></div>
+<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span> ASTUnit::ConcurrencyState::ConcurrencyState() {}</div>
+<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span> ASTUnit::ConcurrencyState::~ConcurrencyState() {}</div>
+<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span> <span class="keywordtype">void</span> ASTUnit::ConcurrencyState::start() {}</div>
+<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span> <span class="keywordtype">void</span> ASTUnit::ConcurrencyState::finish() {}</div>
+<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span> </div>
+<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span> <span class="preprocessor">#endif</span></div>
+</div><!-- fragment --></div><!-- contents -->
+<hr>
+<p class="footer">
+Generated on Mon May 12 2014 12:13:16 for r$LatestRev$ by <a href="http://www.doxygen.org">Doxygen
+1.8.3.1</a>.</p>
+<p class="footer">
+See the <a href="http://clang.llvm.org">Main Clang Web Page</a> for more
+information.</p>
+</body>
+</html>
Added: www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8d_source.html
URL: http://llvm.org/viewvc/llvm-project/www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8d_source.html?rev=225843&view=auto
==============================================================================
--- www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8d_source.html (added)
+++ www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8d_source.html Tue Jan 13 16:55:20 2015
@@ -0,0 +1,787 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head>
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="keywords" content="clang,LLVM,Low Level Virtual Machine,C,C++,doxygen,API,frontend,documentation"/>
+<meta name="description" content="C++ source code API documentation for clang."/>
+<title>clang: ASTUnit.d Source File</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head><body>
+<p class="title">clang API Documentation</p>
+<!-- Generated by Doxygen 1.8.3.1 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li><a href="index.html"><span>Main Page</span></a></li>
+ <li><a href="pages.html"><span>Related Pages</span></a></li>
+ <li><a href="modules.html"><span>Modules</span></a></li>
+ <li><a href="namespaces.html"><span>Namespaces</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ <li>
+ <div id="MSearchBox" class="MSearchBoxInactive">
+ <span class="left">
+ <img id="MSearchSelect" src="search/mag_sel.png"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ alt=""/>
+ <input type="text" id="MSearchField" value="Search" accesskey="S"
+ onfocus="searchBox.OnSearchFieldFocus(true)"
+ onblur="searchBox.OnSearchFieldFocus(false)"
+ onkeyup="searchBox.OnSearchFieldChange(event)"/>
+ </span><span class="right">
+ <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+ </span>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li><a href="files.html"><span>File List</span></a></li>
+ <li><a href="globals.html"><span>File Members</span></a></li>
+ </ul>
+ </div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void
(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark"> </span>Pages</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_f65986501076cc710d4b9355ae3fe06d.html">clang</a></li><li class="navelem"><a class="el" href="dir_87e2a7550f83bd8cbfc92736891468fc.html">lib</a></li><li class="navelem"><a class="el" href="dir_cfd7caa53089bfce4c036750f74ca8fe.html">Frontend</a></li><li class="navelem"><a class="el" href="dir_d028e0ee810452766990d0b974c930cc.html">Release+Asserts</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">ASTUnit.d</div> </div>
+</div><!--header-->
+<div class="contents">
+<a href="ASTUnit_8d.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> /home/tstellar/llvm/tools/clang/lib/Frontend/Release+Asserts/ASTUnit.o \</div>
+<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> /home/tstellar/llvm/tools/clang/lib/Frontend/Release+Asserts/ASTUnit.d: \</div>
+<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> ASTUnit.cpp \</div>
+<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/ASTUnit.h \</div>
+<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang-c/Index.h \</div>
+<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang-c/Platform.h \</div>
+<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang-c/<a class="code" href="structCXString.html" title="A character string.">CXString</a>.h \</div>
+<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTContext.h \</div>
+<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTTypeTraits.h \</div>
+<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTFwd.h \</div>
+<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclNodes.inc \</div>
+<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtNodes.inc \</div>
+<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TypeNodes.def \</div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Decl.h \</div>
+<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/APValue.h \</div>
+<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/LLVM.h \</div>
+<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> /home/tstellar/llvm/include/llvm/Support/Casting.h \</div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> /home/tstellar/llvm/include/llvm/Support/type_traits.h \</div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> /home/tstellar/llvm/include/llvm/Support/DataTypes.h \</div>
+<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> /home/tstellar/llvm/include/llvm/ADT/None.h \</div>
+<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> /home/tstellar/llvm/include/llvm/ADT/APFloat.h \</div>
+<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> /home/tstellar/llvm/include/llvm/ADT/APInt.h \</div>
+<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> /home/tstellar/llvm/include/llvm/ADT/ArrayRef.h \</div>
+<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> /home/tstellar/llvm/include/llvm/ADT/SmallVector.h \</div>
+<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> /home/tstellar/llvm/include/llvm/Support/AlignOf.h \</div>
+<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> /home/tstellar/llvm/include/llvm/Support/Compiler.h \</div>
+<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> /home/tstellar/llvm/include/llvm/Config/llvm-config.h \</div>
+<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> /home/tstellar/llvm/include/llvm/Support/MathExtras.h \</div>
+<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> /home/tstellar/llvm/include/llvm/Support/SwapByteOrder.h \</div>
+<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> /home/tstellar/llvm/include/llvm/ADT/APSInt.h \</div>
+<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> /home/tstellar/llvm/include/llvm/ADT/PointerIntPair.h \</div>
+<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> /home/tstellar/llvm/include/llvm/Support/PointerLikeTypeTraits.h \</div>
+<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> /home/tstellar/llvm/include/llvm/ADT/PointerUnion.h \</div>
+<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclBase.h \</div>
+<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/AttrIterator.h \</div>
+<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclarationName.h \</div>
+<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/IdentifierTable.h \</div>
+<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/OperatorKinds.h \</div>
+<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/OperatorKinds.def \</div>
+<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TokenKinds.h \</div>
+<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TokenKinds.def \</div>
+<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> /home/tstellar/llvm/include/llvm/ADT/SmallString.h \</div>
+<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> /home/tstellar/llvm/include/llvm/ADT/StringRef.h \</div>
+<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> /home/tstellar/llvm/include/llvm/ADT/StringMap.h \</div>
+<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> /home/tstellar/llvm/include/llvm/Support/<a class="code" href="Format_8cpp.html#a0805f884ee63233d49322f71926371de">Allocator</a>.h \</div>
+<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/PartialDiagnostic.h \</div>
+<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Diagnostic.h \</div>
+<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/DiagnosticIDs.h \</div>
+<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> /home/tstellar/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h \</div>
+<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/DiagnosticCommonKinds.inc \</div>
+<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/DiagnosticOptions.h \</div>
+<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/DiagnosticOptions.def \</div>
+<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/SourceLocation.h \</div>
+<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> /home/tstellar/llvm/include/llvm/ADT/DenseMap.h \</div>
+<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> /home/tstellar/llvm/include/llvm/ADT/DenseMapInfo.h \</div>
+<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> /home/tstellar/llvm/include/llvm/ADT/STLExtras.h \</div>
+<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/<a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6" title="Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have...">Linkage</a>.h \</div>
+<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Specifiers.h \</div>
+<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> /home/tstellar/llvm/include/llvm/Support/PrettyStackTrace.h \</div>
+<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ExternalASTSource.h \</div>
+<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/CharUnits.h \</div>
+<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Redeclarable.h \</div>
+<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Type.h \</div>
+<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/NestedNameSpecifier.h \</div>
+<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> /home/tstellar/llvm/include/llvm/ADT/FoldingSet.h \</div>
+<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TemplateName.h \</div>
+<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/<a class="code" href="namespaceclang.html#af8a91eed04532d5da41ef08e7c9c081e" title="The various types of exception specifications that exist in C++11.">ExceptionSpecificationType</a>.h \</div>
+<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/<a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102" title="Describes the different kinds of visibility that a declaration may have.">Visibility</a>.h \</div>
+<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> /home/tstellar/llvm/include/llvm/ADT/Optional.h \</div>
+<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> /home/tstellar/llvm/include/llvm/ADT/Twine.h \</div>
+<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> /home/tstellar/llvm/include/llvm/Support/ErrorHandling.h \</div>
+<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/BuiltinTypes.def \</div>
+<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> /home/tstellar/llvm/include/llvm/Support/raw_ostream.h \</div>
+<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> /home/tstellar/llvm/include/llvm/Support/FileSystem.h \</div>
+<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> /home/tstellar/llvm/include/llvm/ADT/OwningPtr.h \</div>
+<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> /home/tstellar/llvm/include/llvm/Support/TimeValue.h \</div>
+<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> /home/tstellar/llvm/include/llvm/Support/system_error.h \</div>
+<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Stmt.h \</div>
+<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclGroup.h \</div>
+<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtIterator.h \</div>
+<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/CapturedStmt.h \</div>
+<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TemplateBase.h \</div>
+<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TypeLoc.h \</div>
+<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TypeLocNodes.def \</div>
+<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/CanonicalType.h \</div>
+<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/CommentCommandTraits.h \</div>
+<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/CommentOptions.h \</div>
+<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/CommentCommandList.inc \</div>
+<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/PrettyPrinter.h \</div>
+<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/LangOptions.h \</div>
+<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/ObjCRuntime.h \</div>
+<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/VersionTuple.h \</div>
+<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> /home/tstellar/llvm/include/llvm/ADT/Triple.h \</div>
+<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Sanitizers.def \</div>
+<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/LangOptions.def \</div>
+<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/OpenCLExtensions.def \</div>
+<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/RawCommentList.h \</div>
+<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/SourceManager.h \</div>
+<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/FileManager.h \</div>
+<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/FileSystemOptions.h \</div>
+<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> /home/tstellar/llvm/include/llvm/ADT/DenseSet.h \</div>
+<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> /home/tstellar/llvm/include/llvm/Support/MemoryBuffer.h \</div>
+<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> /home/tstellar/llvm/include/llvm/Support/CBindingWrapping.h \</div>
+<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> /home/tstellar/llvm/include/llvm-c/Core.h \</div>
+<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/AddressSpaces.h \</div>
+<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> /home/tstellar/llvm/include/llvm/ADT/SmallPtrSet.h \</div>
+<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> /home/tstellar/llvm/include/llvm/ADT/TinyPtrVector.h \</div>
+<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TargetOptions.h \</div>
+<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/HeaderSearchOptions.h \</div>
+<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> /home/tstellar/llvm/include/llvm/ADT/SetVector.h \</div>
+<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> /home/tstellar/llvm/include/llvm/ADT/SmallSet.h \</div>
+<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/ModuleLoader.h \</div>
+<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Module.h \</div>
+<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PreprocessingRecord.h \</div>
+<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PPCallbacks.h \</div>
+<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/DirectoryLookup.h \</div>
+<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/ModuleMap.h \</div>
+<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/Pragma.h \</div>
+<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/CodeCompleteConsumer.h \</div>
+<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/<a class="code" href="classCodeCompleteOptions.html" title="Options controlling the behavior of code completion.">CodeCompleteOptions</a>.h \</div>
+<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ASTBitCodes.h \</div>
+<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> /home/tstellar/llvm/include/llvm/Bitcode/BitCodes.h \</div>
+<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> /home/tstellar/llvm/include/llvm/Support/Path.h \</div>
+<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTConsumer.h \</div>
+<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclVisitor.h \</div>
+<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclCXX.h \</div>
+<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTUnresolvedSet.h \</div>
+<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTVector.h \</div>
+<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/UnresolvedSet.h \</div>
+<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclAccessPair.h \</div>
+<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Expr.h \</div>
+<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/OperationKinds.h \</div>
+<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/CharInfo.h \</div>
+<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TypeTraits.h \</div>
+<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Builtins.def \</div>
+<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ExprCXX.h \</div>
+<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/ExpressionTraits.h \</div>
+<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Lambda.h \</div>
+<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclFriend.h \</div>
+<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclTemplate.h \</div>
+<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclObjC.h \</div>
+<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/<a class="code" href="namespaceclang.html#a0bca8d4a06a5e7175d2177c94788c9b4" title="Whether all locations of the selector identifiers are in a "standard" position.">SelectorLocationsKind</a>.h \</div>
+<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclOpenMP.h \</div>
+<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtVisitor.h \</div>
+<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ExprObjC.h \</div>
+<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtCXX.h \</div>
+<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtObjC.h \</div>
+<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtOpenMP.h \</div>
+<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/OpenMPKinds.h \</div>
+<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/OpenMPKinds.def \</div>
+<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TypeOrdering.h \</div>
+<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TargetInfo.h \</div>
+<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TargetCXXABI.h \</div>
+<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> /home/tstellar/llvm/include/llvm/ADT/StringSwitch.h \</div>
+<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/CompilerInstance.h \</div>
+<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/CompilerInvocation.h \</div>
+<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/CodeGenOptions.h \</div>
+<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/CodeGenOptions.def \</div>
+<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/DependencyOutputOptions.h \</div>
+<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/FrontendOptions.h \</div>
+<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/CommandLineSourceLoc.h \</div>
+<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> /home/tstellar/llvm/include/llvm/Support/<a class="code" href="JSONCompilationDatabase_8cpp.html#aff1eaf11bcfc05c142268512eeb4e134">CommandLine</a>.h \</div>
+<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/LangStandard.h \</div>
+<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/LangStandards.def \</div>
+<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/MigratorOptions.h \</div>
+<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/PreprocessorOutputOptions.h \</div>
+<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PreprocessorOptions.h \</div>
+<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> /home/tstellar/llvm/include/llvm/ADT/StringSet.h \</div>
+<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/StaticAnalyzer/Core/AnalyzerOptions.h \</div>
+<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/StaticAnalyzer/Core/<a class="code" href="namespaceclang.html#ae9c75815d0d02c4fb4c86c9f86a8c9b9" title="Analysis - Set of available source code analyses.">Analyses</a>.def \</div>
+<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/FrontendActions.h \</div>
+<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/FrontendAction.h \</div>
+<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/FrontendDiagnostic.h \</div>
+<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/DiagnosticFrontendKinds.inc \</div>
+<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/MultiplexConsumer.h \</div>
+<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/SemaConsumer.h \</div>
+<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/Utils.h \</div>
+<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> /home/tstellar/llvm/include/llvm/Option/OptSpecifier.h \</div>
+<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/HeaderSearch.h \</div>
+<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/Preprocessor.h \</div>
+<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Builtins.h \</div>
+<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/Lexer.h \</div>
+<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PreprocessorLexer.h \</div>
+<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/MultipleIncludeOpt.h \</div>
+<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/<a class="code" href="UnwrappedLineParser_8cpp.html#ac39165965ffcb0218343355d1f482d64">Token</a>.h \</div>
+<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TemplateKinds.h \</div>
+<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/MacroInfo.h \</div>
+<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PTHLexer.h \</div>
+<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PTHManager.h \</div>
+<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/TokenLexer.h \</div>
+<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/Sema.h \</div>
+<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Attr.h \</div>
+<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/AttrKinds.h \</div>
+<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/AttrList.inc \</div>
+<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Attrs.inc \</div>
+<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/MangleNumberingContext.h \</div>
+<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/NSAPI.h \</div>
+<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/AnalysisBasedWarnings.h \</div>
+<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/DeclSpec.h \</div>
+<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/AttributeList.h \</div>
+<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/Ownership.h \</div>
+<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/AttrParsedAttrList.inc \</div>
+<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/ExternalSemaSource.h \</div>
+<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/TypoCorrection.h \</div>
+<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/Weak.h \</div>
+<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> /home/tstellar/llvm/include/llvm/ADT/MapVector.h \</div>
+<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/IdentifierResolver.h \</div>
+<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/LocInfoType.h \</div>
+<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/ObjCMethodList.h \</div>
+<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/ScopeInfo.h \</div>
+<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> /home/tstellar/llvm/include/llvm/MC/MCParser/MCAsmParser.h \</div>
+<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> /home/tstellar/llvm/include/llvm/MC/MCParser/AsmLexer.h \</div>
+<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> /home/tstellar/llvm/include/llvm/MC/MCParser/MCAsmLexer.h \</div>
+<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> /home/tstellar/llvm/include/llvm/Support/SMLoc.h \</div>
+<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ASTReader.h \</div>
+<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Version.h \</div>
+<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Version.inc \</div>
+<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/ExternalPreprocessorSource.h \</div>
+<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ContinuousRangeMap.h \</div>
+<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/Module.h \</div>
+<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> /home/tstellar/llvm/include/llvm/Bitcode/BitstreamReader.h \</div>
+<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> /home/tstellar/llvm/include/llvm/Support/Endian.h \</div>
+<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> /home/tstellar/llvm/include/llvm/Support/Host.h \</div>
+<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> /home/tstellar/llvm/include/llvm/Support/StreamableMemoryObject.h \</div>
+<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> /home/tstellar/llvm/include/llvm/Support/DataStream.h \</div>
+<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> /home/tstellar/llvm/include/llvm/Support/MemoryObject.h \</div>
+<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ModuleManager.h \</div>
+<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ASTWriter.h \</div>
+<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTMutationListener.h \</div>
+<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ASTDeserializationListener.h \</div>
+<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> /home/tstellar/llvm/include/llvm/Bitcode/BitstreamWriter.h \</div>
+<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> /home/tstellar/llvm/include/llvm/ADT/StringExtras.h \</div>
+<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> /home/tstellar/llvm/include/llvm/Support/Atomic.h \</div>
+<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> /home/tstellar/llvm/include/llvm/Support/CrashRecoveryContext.h \</div>
+<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> /home/tstellar/llvm/include/llvm/Support/Mutex.h \</div>
+<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> /home/tstellar/llvm/include/llvm/Support/Threading.h \</div>
+<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> /home/tstellar/llvm/include/llvm/Support/MutexGuard.h \</div>
+<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> /home/tstellar/llvm/include/llvm/Support/Timer.h</div>
+<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div>
+<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/ASTUnit.h:</div>
+<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> </div>
+<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang-c/Index.h:</div>
+<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> </div>
+<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang-c/Platform.h:</div>
+<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> </div>
+<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang-c/<a class="code" href="structCXString.html" title="A character string.">CXString</a>.h:</div>
+<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> </div>
+<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTContext.h:</div>
+<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div>
+<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTTypeTraits.h:</div>
+<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> </div>
+<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTFwd.h:</div>
+<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> </div>
+<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclNodes.inc:</div>
+<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div>
+<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtNodes.inc:</div>
+<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> </div>
+<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TypeNodes.def:</div>
+<div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div>
+<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Decl.h:</div>
+<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div>
+<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/APValue.h:</div>
+<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> </div>
+<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/LLVM.h:</div>
+<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> </div>
+<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> /home/tstellar/llvm/include/llvm/Support/Casting.h:</div>
+<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div>
+<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> /home/tstellar/llvm/include/llvm/Support/type_traits.h:</div>
+<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> </div>
+<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> /home/tstellar/llvm/include/llvm/Support/DataTypes.h:</div>
+<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> </div>
+<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> /home/tstellar/llvm/include/llvm/ADT/None.h:</div>
+<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> </div>
+<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> /home/tstellar/llvm/include/llvm/ADT/APFloat.h:</div>
+<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div>
+<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> /home/tstellar/llvm/include/llvm/ADT/APInt.h:</div>
+<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div>
+<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> /home/tstellar/llvm/include/llvm/ADT/ArrayRef.h:</div>
+<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> </div>
+<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> /home/tstellar/llvm/include/llvm/ADT/SmallVector.h:</div>
+<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> </div>
+<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> /home/tstellar/llvm/include/llvm/Support/AlignOf.h:</div>
+<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> </div>
+<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> /home/tstellar/llvm/include/llvm/Support/Compiler.h:</div>
+<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> </div>
+<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> /home/tstellar/llvm/include/llvm/Config/llvm-config.h:</div>
+<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div>
+<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> /home/tstellar/llvm/include/llvm/Support/MathExtras.h:</div>
+<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> </div>
+<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> /home/tstellar/llvm/include/llvm/Support/SwapByteOrder.h:</div>
+<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> </div>
+<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> /home/tstellar/llvm/include/llvm/ADT/APSInt.h:</div>
+<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> </div>
+<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> /home/tstellar/llvm/include/llvm/ADT/PointerIntPair.h:</div>
+<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div>
+<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> /home/tstellar/llvm/include/llvm/Support/PointerLikeTypeTraits.h:</div>
+<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> </div>
+<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> /home/tstellar/llvm/include/llvm/ADT/PointerUnion.h:</div>
+<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> </div>
+<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclBase.h:</div>
+<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div>
+<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/AttrIterator.h:</div>
+<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div>
+<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclarationName.h:</div>
+<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div>
+<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/IdentifierTable.h:</div>
+<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> </div>
+<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/OperatorKinds.h:</div>
+<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> </div>
+<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/OperatorKinds.def:</div>
+<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> </div>
+<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TokenKinds.h:</div>
+<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> </div>
+<div class="line"><a name="l00314"></a><span class="lineno"> 314</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TokenKinds.def:</div>
+<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> </div>
+<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> /home/tstellar/llvm/include/llvm/ADT/SmallString.h:</div>
+<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> </div>
+<div class="line"><a name="l00318"></a><span class="lineno"> 318</span> /home/tstellar/llvm/include/llvm/ADT/StringRef.h:</div>
+<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div>
+<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> /home/tstellar/llvm/include/llvm/ADT/StringMap.h:</div>
+<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> </div>
+<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> /home/tstellar/llvm/include/llvm/Support/<a class="code" href="Format_8cpp.html#a0805f884ee63233d49322f71926371de">Allocator</a>.h:</div>
+<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> </div>
+<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/PartialDiagnostic.h:</div>
+<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> </div>
+<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Diagnostic.h:</div>
+<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div>
+<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/DiagnosticIDs.h:</div>
+<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> </div>
+<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> /home/tstellar/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:</div>
+<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> </div>
+<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/DiagnosticCommonKinds.inc:</div>
+<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> </div>
+<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/DiagnosticOptions.h:</div>
+<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div>
+<div class="line"><a name="l00336"></a><span class="lineno"> 336</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/DiagnosticOptions.def:</div>
+<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> </div>
+<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/SourceLocation.h:</div>
+<div class="line"><a name="l00339"></a><span class="lineno"> 339</span> </div>
+<div class="line"><a name="l00340"></a><span class="lineno"> 340</span> /home/tstellar/llvm/include/llvm/ADT/DenseMap.h:</div>
+<div class="line"><a name="l00341"></a><span class="lineno"> 341</span> </div>
+<div class="line"><a name="l00342"></a><span class="lineno"> 342</span> /home/tstellar/llvm/include/llvm/ADT/DenseMapInfo.h:</div>
+<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div>
+<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> /home/tstellar/llvm/include/llvm/ADT/STLExtras.h:</div>
+<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> </div>
+<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/<a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6" title="Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have...">Linkage</a>.h:</div>
+<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> </div>
+<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Specifiers.h:</div>
+<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> </div>
+<div class="line"><a name="l00350"></a><span class="lineno"> 350</span> /home/tstellar/llvm/include/llvm/Support/PrettyStackTrace.h:</div>
+<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> </div>
+<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ExternalASTSource.h:</div>
+<div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div>
+<div class="line"><a name="l00354"></a><span class="lineno"> 354</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/CharUnits.h:</div>
+<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div>
+<div class="line"><a name="l00356"></a><span class="lineno"> 356</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Redeclarable.h:</div>
+<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> </div>
+<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Type.h:</div>
+<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> </div>
+<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/NestedNameSpecifier.h:</div>
+<div class="line"><a name="l00361"></a><span class="lineno"> 361</span> </div>
+<div class="line"><a name="l00362"></a><span class="lineno"> 362</span> /home/tstellar/llvm/include/llvm/ADT/FoldingSet.h:</div>
+<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> </div>
+<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TemplateName.h:</div>
+<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> </div>
+<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/<a class="code" href="namespaceclang.html#af8a91eed04532d5da41ef08e7c9c081e" title="The various types of exception specifications that exist in C++11.">ExceptionSpecificationType</a>.h:</div>
+<div class="line"><a name="l00367"></a><span class="lineno"> 367</span> </div>
+<div class="line"><a name="l00368"></a><span class="lineno"> 368</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/<a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102" title="Describes the different kinds of visibility that a declaration may have.">Visibility</a>.h:</div>
+<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> </div>
+<div class="line"><a name="l00370"></a><span class="lineno"> 370</span> /home/tstellar/llvm/include/llvm/ADT/Optional.h:</div>
+<div class="line"><a name="l00371"></a><span class="lineno"> 371</span> </div>
+<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> /home/tstellar/llvm/include/llvm/ADT/Twine.h:</div>
+<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div>
+<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> /home/tstellar/llvm/include/llvm/Support/ErrorHandling.h:</div>
+<div class="line"><a name="l00375"></a><span class="lineno"> 375</span> </div>
+<div class="line"><a name="l00376"></a><span class="lineno"> 376</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/BuiltinTypes.def:</div>
+<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> </div>
+<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> /home/tstellar/llvm/include/llvm/Support/raw_ostream.h:</div>
+<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> </div>
+<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> /home/tstellar/llvm/include/llvm/Support/FileSystem.h:</div>
+<div class="line"><a name="l00381"></a><span class="lineno"> 381</span> </div>
+<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> /home/tstellar/llvm/include/llvm/ADT/OwningPtr.h:</div>
+<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> </div>
+<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> /home/tstellar/llvm/include/llvm/Support/TimeValue.h:</div>
+<div class="line"><a name="l00385"></a><span class="lineno"> 385</span> </div>
+<div class="line"><a name="l00386"></a><span class="lineno"> 386</span> /home/tstellar/llvm/include/llvm/Support/system_error.h:</div>
+<div class="line"><a name="l00387"></a><span class="lineno"> 387</span> </div>
+<div class="line"><a name="l00388"></a><span class="lineno"> 388</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Stmt.h:</div>
+<div class="line"><a name="l00389"></a><span class="lineno"> 389</span> </div>
+<div class="line"><a name="l00390"></a><span class="lineno"> 390</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclGroup.h:</div>
+<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> </div>
+<div class="line"><a name="l00392"></a><span class="lineno"> 392</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtIterator.h:</div>
+<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> </div>
+<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/CapturedStmt.h:</div>
+<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> </div>
+<div class="line"><a name="l00396"></a><span class="lineno"> 396</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TemplateBase.h:</div>
+<div class="line"><a name="l00397"></a><span class="lineno"> 397</span> </div>
+<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TypeLoc.h:</div>
+<div class="line"><a name="l00399"></a><span class="lineno"> 399</span> </div>
+<div class="line"><a name="l00400"></a><span class="lineno"> 400</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TypeLocNodes.def:</div>
+<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> </div>
+<div class="line"><a name="l00402"></a><span class="lineno"> 402</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/CanonicalType.h:</div>
+<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> </div>
+<div class="line"><a name="l00404"></a><span class="lineno"> 404</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/CommentCommandTraits.h:</div>
+<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> </div>
+<div class="line"><a name="l00406"></a><span class="lineno"> 406</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/CommentOptions.h:</div>
+<div class="line"><a name="l00407"></a><span class="lineno"> 407</span> </div>
+<div class="line"><a name="l00408"></a><span class="lineno"> 408</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/CommentCommandList.inc:</div>
+<div class="line"><a name="l00409"></a><span class="lineno"> 409</span> </div>
+<div class="line"><a name="l00410"></a><span class="lineno"> 410</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/PrettyPrinter.h:</div>
+<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div>
+<div class="line"><a name="l00412"></a><span class="lineno"> 412</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/LangOptions.h:</div>
+<div class="line"><a name="l00413"></a><span class="lineno"> 413</span> </div>
+<div class="line"><a name="l00414"></a><span class="lineno"> 414</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/ObjCRuntime.h:</div>
+<div class="line"><a name="l00415"></a><span class="lineno"> 415</span> </div>
+<div class="line"><a name="l00416"></a><span class="lineno"> 416</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/VersionTuple.h:</div>
+<div class="line"><a name="l00417"></a><span class="lineno"> 417</span> </div>
+<div class="line"><a name="l00418"></a><span class="lineno"> 418</span> /home/tstellar/llvm/include/llvm/ADT/Triple.h:</div>
+<div class="line"><a name="l00419"></a><span class="lineno"> 419</span> </div>
+<div class="line"><a name="l00420"></a><span class="lineno"> 420</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Sanitizers.def:</div>
+<div class="line"><a name="l00421"></a><span class="lineno"> 421</span> </div>
+<div class="line"><a name="l00422"></a><span class="lineno"> 422</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/LangOptions.def:</div>
+<div class="line"><a name="l00423"></a><span class="lineno"> 423</span> </div>
+<div class="line"><a name="l00424"></a><span class="lineno"> 424</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/OpenCLExtensions.def:</div>
+<div class="line"><a name="l00425"></a><span class="lineno"> 425</span> </div>
+<div class="line"><a name="l00426"></a><span class="lineno"> 426</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/RawCommentList.h:</div>
+<div class="line"><a name="l00427"></a><span class="lineno"> 427</span> </div>
+<div class="line"><a name="l00428"></a><span class="lineno"> 428</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/SourceManager.h:</div>
+<div class="line"><a name="l00429"></a><span class="lineno"> 429</span> </div>
+<div class="line"><a name="l00430"></a><span class="lineno"> 430</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/FileManager.h:</div>
+<div class="line"><a name="l00431"></a><span class="lineno"> 431</span> </div>
+<div class="line"><a name="l00432"></a><span class="lineno"> 432</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/FileSystemOptions.h:</div>
+<div class="line"><a name="l00433"></a><span class="lineno"> 433</span> </div>
+<div class="line"><a name="l00434"></a><span class="lineno"> 434</span> /home/tstellar/llvm/include/llvm/ADT/DenseSet.h:</div>
+<div class="line"><a name="l00435"></a><span class="lineno"> 435</span> </div>
+<div class="line"><a name="l00436"></a><span class="lineno"> 436</span> /home/tstellar/llvm/include/llvm/Support/MemoryBuffer.h:</div>
+<div class="line"><a name="l00437"></a><span class="lineno"> 437</span> </div>
+<div class="line"><a name="l00438"></a><span class="lineno"> 438</span> /home/tstellar/llvm/include/llvm/Support/CBindingWrapping.h:</div>
+<div class="line"><a name="l00439"></a><span class="lineno"> 439</span> </div>
+<div class="line"><a name="l00440"></a><span class="lineno"> 440</span> /home/tstellar/llvm/include/llvm-c/Core.h:</div>
+<div class="line"><a name="l00441"></a><span class="lineno"> 441</span> </div>
+<div class="line"><a name="l00442"></a><span class="lineno"> 442</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/AddressSpaces.h:</div>
+<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> </div>
+<div class="line"><a name="l00444"></a><span class="lineno"> 444</span> /home/tstellar/llvm/include/llvm/ADT/SmallPtrSet.h:</div>
+<div class="line"><a name="l00445"></a><span class="lineno"> 445</span> </div>
+<div class="line"><a name="l00446"></a><span class="lineno"> 446</span> /home/tstellar/llvm/include/llvm/ADT/TinyPtrVector.h:</div>
+<div class="line"><a name="l00447"></a><span class="lineno"> 447</span> </div>
+<div class="line"><a name="l00448"></a><span class="lineno"> 448</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TargetOptions.h:</div>
+<div class="line"><a name="l00449"></a><span class="lineno"> 449</span> </div>
+<div class="line"><a name="l00450"></a><span class="lineno"> 450</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/HeaderSearchOptions.h:</div>
+<div class="line"><a name="l00451"></a><span class="lineno"> 451</span> </div>
+<div class="line"><a name="l00452"></a><span class="lineno"> 452</span> /home/tstellar/llvm/include/llvm/ADT/SetVector.h:</div>
+<div class="line"><a name="l00453"></a><span class="lineno"> 453</span> </div>
+<div class="line"><a name="l00454"></a><span class="lineno"> 454</span> /home/tstellar/llvm/include/llvm/ADT/SmallSet.h:</div>
+<div class="line"><a name="l00455"></a><span class="lineno"> 455</span> </div>
+<div class="line"><a name="l00456"></a><span class="lineno"> 456</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/ModuleLoader.h:</div>
+<div class="line"><a name="l00457"></a><span class="lineno"> 457</span> </div>
+<div class="line"><a name="l00458"></a><span class="lineno"> 458</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Module.h:</div>
+<div class="line"><a name="l00459"></a><span class="lineno"> 459</span> </div>
+<div class="line"><a name="l00460"></a><span class="lineno"> 460</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PreprocessingRecord.h:</div>
+<div class="line"><a name="l00461"></a><span class="lineno"> 461</span> </div>
+<div class="line"><a name="l00462"></a><span class="lineno"> 462</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PPCallbacks.h:</div>
+<div class="line"><a name="l00463"></a><span class="lineno"> 463</span> </div>
+<div class="line"><a name="l00464"></a><span class="lineno"> 464</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/DirectoryLookup.h:</div>
+<div class="line"><a name="l00465"></a><span class="lineno"> 465</span> </div>
+<div class="line"><a name="l00466"></a><span class="lineno"> 466</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/ModuleMap.h:</div>
+<div class="line"><a name="l00467"></a><span class="lineno"> 467</span> </div>
+<div class="line"><a name="l00468"></a><span class="lineno"> 468</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/Pragma.h:</div>
+<div class="line"><a name="l00469"></a><span class="lineno"> 469</span> </div>
+<div class="line"><a name="l00470"></a><span class="lineno"> 470</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/CodeCompleteConsumer.h:</div>
+<div class="line"><a name="l00471"></a><span class="lineno"> 471</span> </div>
+<div class="line"><a name="l00472"></a><span class="lineno"> 472</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/<a class="code" href="classCodeCompleteOptions.html" title="Options controlling the behavior of code completion.">CodeCompleteOptions</a>.h:</div>
+<div class="line"><a name="l00473"></a><span class="lineno"> 473</span> </div>
+<div class="line"><a name="l00474"></a><span class="lineno"> 474</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ASTBitCodes.h:</div>
+<div class="line"><a name="l00475"></a><span class="lineno"> 475</span> </div>
+<div class="line"><a name="l00476"></a><span class="lineno"> 476</span> /home/tstellar/llvm/include/llvm/Bitcode/BitCodes.h:</div>
+<div class="line"><a name="l00477"></a><span class="lineno"> 477</span> </div>
+<div class="line"><a name="l00478"></a><span class="lineno"> 478</span> /home/tstellar/llvm/include/llvm/Support/Path.h:</div>
+<div class="line"><a name="l00479"></a><span class="lineno"> 479</span> </div>
+<div class="line"><a name="l00480"></a><span class="lineno"> 480</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTConsumer.h:</div>
+<div class="line"><a name="l00481"></a><span class="lineno"> 481</span> </div>
+<div class="line"><a name="l00482"></a><span class="lineno"> 482</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclVisitor.h:</div>
+<div class="line"><a name="l00483"></a><span class="lineno"> 483</span> </div>
+<div class="line"><a name="l00484"></a><span class="lineno"> 484</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclCXX.h:</div>
+<div class="line"><a name="l00485"></a><span class="lineno"> 485</span> </div>
+<div class="line"><a name="l00486"></a><span class="lineno"> 486</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTUnresolvedSet.h:</div>
+<div class="line"><a name="l00487"></a><span class="lineno"> 487</span> </div>
+<div class="line"><a name="l00488"></a><span class="lineno"> 488</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTVector.h:</div>
+<div class="line"><a name="l00489"></a><span class="lineno"> 489</span> </div>
+<div class="line"><a name="l00490"></a><span class="lineno"> 490</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/UnresolvedSet.h:</div>
+<div class="line"><a name="l00491"></a><span class="lineno"> 491</span> </div>
+<div class="line"><a name="l00492"></a><span class="lineno"> 492</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclAccessPair.h:</div>
+<div class="line"><a name="l00493"></a><span class="lineno"> 493</span> </div>
+<div class="line"><a name="l00494"></a><span class="lineno"> 494</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Expr.h:</div>
+<div class="line"><a name="l00495"></a><span class="lineno"> 495</span> </div>
+<div class="line"><a name="l00496"></a><span class="lineno"> 496</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/OperationKinds.h:</div>
+<div class="line"><a name="l00497"></a><span class="lineno"> 497</span> </div>
+<div class="line"><a name="l00498"></a><span class="lineno"> 498</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/CharInfo.h:</div>
+<div class="line"><a name="l00499"></a><span class="lineno"> 499</span> </div>
+<div class="line"><a name="l00500"></a><span class="lineno"> 500</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TypeTraits.h:</div>
+<div class="line"><a name="l00501"></a><span class="lineno"> 501</span> </div>
+<div class="line"><a name="l00502"></a><span class="lineno"> 502</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Builtins.def:</div>
+<div class="line"><a name="l00503"></a><span class="lineno"> 503</span> </div>
+<div class="line"><a name="l00504"></a><span class="lineno"> 504</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ExprCXX.h:</div>
+<div class="line"><a name="l00505"></a><span class="lineno"> 505</span> </div>
+<div class="line"><a name="l00506"></a><span class="lineno"> 506</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/ExpressionTraits.h:</div>
+<div class="line"><a name="l00507"></a><span class="lineno"> 507</span> </div>
+<div class="line"><a name="l00508"></a><span class="lineno"> 508</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Lambda.h:</div>
+<div class="line"><a name="l00509"></a><span class="lineno"> 509</span> </div>
+<div class="line"><a name="l00510"></a><span class="lineno"> 510</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclFriend.h:</div>
+<div class="line"><a name="l00511"></a><span class="lineno"> 511</span> </div>
+<div class="line"><a name="l00512"></a><span class="lineno"> 512</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclTemplate.h:</div>
+<div class="line"><a name="l00513"></a><span class="lineno"> 513</span> </div>
+<div class="line"><a name="l00514"></a><span class="lineno"> 514</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclObjC.h:</div>
+<div class="line"><a name="l00515"></a><span class="lineno"> 515</span> </div>
+<div class="line"><a name="l00516"></a><span class="lineno"> 516</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/<a class="code" href="namespaceclang.html#a0bca8d4a06a5e7175d2177c94788c9b4" title="Whether all locations of the selector identifiers are in a "standard" position.">SelectorLocationsKind</a>.h:</div>
+<div class="line"><a name="l00517"></a><span class="lineno"> 517</span> </div>
+<div class="line"><a name="l00518"></a><span class="lineno"> 518</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclOpenMP.h:</div>
+<div class="line"><a name="l00519"></a><span class="lineno"> 519</span> </div>
+<div class="line"><a name="l00520"></a><span class="lineno"> 520</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtVisitor.h:</div>
+<div class="line"><a name="l00521"></a><span class="lineno"> 521</span> </div>
+<div class="line"><a name="l00522"></a><span class="lineno"> 522</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ExprObjC.h:</div>
+<div class="line"><a name="l00523"></a><span class="lineno"> 523</span> </div>
+<div class="line"><a name="l00524"></a><span class="lineno"> 524</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtCXX.h:</div>
+<div class="line"><a name="l00525"></a><span class="lineno"> 525</span> </div>
+<div class="line"><a name="l00526"></a><span class="lineno"> 526</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtObjC.h:</div>
+<div class="line"><a name="l00527"></a><span class="lineno"> 527</span> </div>
+<div class="line"><a name="l00528"></a><span class="lineno"> 528</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/StmtOpenMP.h:</div>
+<div class="line"><a name="l00529"></a><span class="lineno"> 529</span> </div>
+<div class="line"><a name="l00530"></a><span class="lineno"> 530</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/OpenMPKinds.h:</div>
+<div class="line"><a name="l00531"></a><span class="lineno"> 531</span> </div>
+<div class="line"><a name="l00532"></a><span class="lineno"> 532</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/OpenMPKinds.def:</div>
+<div class="line"><a name="l00533"></a><span class="lineno"> 533</span> </div>
+<div class="line"><a name="l00534"></a><span class="lineno"> 534</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/TypeOrdering.h:</div>
+<div class="line"><a name="l00535"></a><span class="lineno"> 535</span> </div>
+<div class="line"><a name="l00536"></a><span class="lineno"> 536</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TargetInfo.h:</div>
+<div class="line"><a name="l00537"></a><span class="lineno"> 537</span> </div>
+<div class="line"><a name="l00538"></a><span class="lineno"> 538</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TargetCXXABI.h:</div>
+<div class="line"><a name="l00539"></a><span class="lineno"> 539</span> </div>
+<div class="line"><a name="l00540"></a><span class="lineno"> 540</span> /home/tstellar/llvm/include/llvm/ADT/StringSwitch.h:</div>
+<div class="line"><a name="l00541"></a><span class="lineno"> 541</span> </div>
+<div class="line"><a name="l00542"></a><span class="lineno"> 542</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/CompilerInstance.h:</div>
+<div class="line"><a name="l00543"></a><span class="lineno"> 543</span> </div>
+<div class="line"><a name="l00544"></a><span class="lineno"> 544</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/CompilerInvocation.h:</div>
+<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> </div>
+<div class="line"><a name="l00546"></a><span class="lineno"> 546</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/CodeGenOptions.h:</div>
+<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> </div>
+<div class="line"><a name="l00548"></a><span class="lineno"> 548</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/CodeGenOptions.def:</div>
+<div class="line"><a name="l00549"></a><span class="lineno"> 549</span> </div>
+<div class="line"><a name="l00550"></a><span class="lineno"> 550</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/DependencyOutputOptions.h:</div>
+<div class="line"><a name="l00551"></a><span class="lineno"> 551</span> </div>
+<div class="line"><a name="l00552"></a><span class="lineno"> 552</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/FrontendOptions.h:</div>
+<div class="line"><a name="l00553"></a><span class="lineno"> 553</span> </div>
+<div class="line"><a name="l00554"></a><span class="lineno"> 554</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/CommandLineSourceLoc.h:</div>
+<div class="line"><a name="l00555"></a><span class="lineno"> 555</span> </div>
+<div class="line"><a name="l00556"></a><span class="lineno"> 556</span> /home/tstellar/llvm/include/llvm/Support/<a class="code" href="JSONCompilationDatabase_8cpp.html#aff1eaf11bcfc05c142268512eeb4e134">CommandLine</a>.h:</div>
+<div class="line"><a name="l00557"></a><span class="lineno"> 557</span> </div>
+<div class="line"><a name="l00558"></a><span class="lineno"> 558</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/LangStandard.h:</div>
+<div class="line"><a name="l00559"></a><span class="lineno"> 559</span> </div>
+<div class="line"><a name="l00560"></a><span class="lineno"> 560</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/LangStandards.def:</div>
+<div class="line"><a name="l00561"></a><span class="lineno"> 561</span> </div>
+<div class="line"><a name="l00562"></a><span class="lineno"> 562</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/MigratorOptions.h:</div>
+<div class="line"><a name="l00563"></a><span class="lineno"> 563</span> </div>
+<div class="line"><a name="l00564"></a><span class="lineno"> 564</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/PreprocessorOutputOptions.h:</div>
+<div class="line"><a name="l00565"></a><span class="lineno"> 565</span> </div>
+<div class="line"><a name="l00566"></a><span class="lineno"> 566</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PreprocessorOptions.h:</div>
+<div class="line"><a name="l00567"></a><span class="lineno"> 567</span> </div>
+<div class="line"><a name="l00568"></a><span class="lineno"> 568</span> /home/tstellar/llvm/include/llvm/ADT/StringSet.h:</div>
+<div class="line"><a name="l00569"></a><span class="lineno"> 569</span> </div>
+<div class="line"><a name="l00570"></a><span class="lineno"> 570</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/StaticAnalyzer/Core/AnalyzerOptions.h:</div>
+<div class="line"><a name="l00571"></a><span class="lineno"> 571</span> </div>
+<div class="line"><a name="l00572"></a><span class="lineno"> 572</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/StaticAnalyzer/Core/<a class="code" href="namespaceclang.html#ae9c75815d0d02c4fb4c86c9f86a8c9b9" title="Analysis - Set of available source code analyses.">Analyses</a>.def:</div>
+<div class="line"><a name="l00573"></a><span class="lineno"> 573</span> </div>
+<div class="line"><a name="l00574"></a><span class="lineno"> 574</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/FrontendActions.h:</div>
+<div class="line"><a name="l00575"></a><span class="lineno"> 575</span> </div>
+<div class="line"><a name="l00576"></a><span class="lineno"> 576</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/FrontendAction.h:</div>
+<div class="line"><a name="l00577"></a><span class="lineno"> 577</span> </div>
+<div class="line"><a name="l00578"></a><span class="lineno"> 578</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/FrontendDiagnostic.h:</div>
+<div class="line"><a name="l00579"></a><span class="lineno"> 579</span> </div>
+<div class="line"><a name="l00580"></a><span class="lineno"> 580</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/DiagnosticFrontendKinds.inc:</div>
+<div class="line"><a name="l00581"></a><span class="lineno"> 581</span> </div>
+<div class="line"><a name="l00582"></a><span class="lineno"> 582</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/MultiplexConsumer.h:</div>
+<div class="line"><a name="l00583"></a><span class="lineno"> 583</span> </div>
+<div class="line"><a name="l00584"></a><span class="lineno"> 584</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/SemaConsumer.h:</div>
+<div class="line"><a name="l00585"></a><span class="lineno"> 585</span> </div>
+<div class="line"><a name="l00586"></a><span class="lineno"> 586</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Frontend/Utils.h:</div>
+<div class="line"><a name="l00587"></a><span class="lineno"> 587</span> </div>
+<div class="line"><a name="l00588"></a><span class="lineno"> 588</span> /home/tstellar/llvm/include/llvm/Option/OptSpecifier.h:</div>
+<div class="line"><a name="l00589"></a><span class="lineno"> 589</span> </div>
+<div class="line"><a name="l00590"></a><span class="lineno"> 590</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/HeaderSearch.h:</div>
+<div class="line"><a name="l00591"></a><span class="lineno"> 591</span> </div>
+<div class="line"><a name="l00592"></a><span class="lineno"> 592</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/Preprocessor.h:</div>
+<div class="line"><a name="l00593"></a><span class="lineno"> 593</span> </div>
+<div class="line"><a name="l00594"></a><span class="lineno"> 594</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Builtins.h:</div>
+<div class="line"><a name="l00595"></a><span class="lineno"> 595</span> </div>
+<div class="line"><a name="l00596"></a><span class="lineno"> 596</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/Lexer.h:</div>
+<div class="line"><a name="l00597"></a><span class="lineno"> 597</span> </div>
+<div class="line"><a name="l00598"></a><span class="lineno"> 598</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PreprocessorLexer.h:</div>
+<div class="line"><a name="l00599"></a><span class="lineno"> 599</span> </div>
+<div class="line"><a name="l00600"></a><span class="lineno"> 600</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/MultipleIncludeOpt.h:</div>
+<div class="line"><a name="l00601"></a><span class="lineno"> 601</span> </div>
+<div class="line"><a name="l00602"></a><span class="lineno"> 602</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/<a class="code" href="UnwrappedLineParser_8cpp.html#ac39165965ffcb0218343355d1f482d64">Token</a>.h:</div>
+<div class="line"><a name="l00603"></a><span class="lineno"> 603</span> </div>
+<div class="line"><a name="l00604"></a><span class="lineno"> 604</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/TemplateKinds.h:</div>
+<div class="line"><a name="l00605"></a><span class="lineno"> 605</span> </div>
+<div class="line"><a name="l00606"></a><span class="lineno"> 606</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/MacroInfo.h:</div>
+<div class="line"><a name="l00607"></a><span class="lineno"> 607</span> </div>
+<div class="line"><a name="l00608"></a><span class="lineno"> 608</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PTHLexer.h:</div>
+<div class="line"><a name="l00609"></a><span class="lineno"> 609</span> </div>
+<div class="line"><a name="l00610"></a><span class="lineno"> 610</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/PTHManager.h:</div>
+<div class="line"><a name="l00611"></a><span class="lineno"> 611</span> </div>
+<div class="line"><a name="l00612"></a><span class="lineno"> 612</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/TokenLexer.h:</div>
+<div class="line"><a name="l00613"></a><span class="lineno"> 613</span> </div>
+<div class="line"><a name="l00614"></a><span class="lineno"> 614</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/Sema.h:</div>
+<div class="line"><a name="l00615"></a><span class="lineno"> 615</span> </div>
+<div class="line"><a name="l00616"></a><span class="lineno"> 616</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Attr.h:</div>
+<div class="line"><a name="l00617"></a><span class="lineno"> 617</span> </div>
+<div class="line"><a name="l00618"></a><span class="lineno"> 618</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/AttrKinds.h:</div>
+<div class="line"><a name="l00619"></a><span class="lineno"> 619</span> </div>
+<div class="line"><a name="l00620"></a><span class="lineno"> 620</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/AttrList.inc:</div>
+<div class="line"><a name="l00621"></a><span class="lineno"> 621</span> </div>
+<div class="line"><a name="l00622"></a><span class="lineno"> 622</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Attrs.inc:</div>
+<div class="line"><a name="l00623"></a><span class="lineno"> 623</span> </div>
+<div class="line"><a name="l00624"></a><span class="lineno"> 624</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/MangleNumberingContext.h:</div>
+<div class="line"><a name="l00625"></a><span class="lineno"> 625</span> </div>
+<div class="line"><a name="l00626"></a><span class="lineno"> 626</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/NSAPI.h:</div>
+<div class="line"><a name="l00627"></a><span class="lineno"> 627</span> </div>
+<div class="line"><a name="l00628"></a><span class="lineno"> 628</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/AnalysisBasedWarnings.h:</div>
+<div class="line"><a name="l00629"></a><span class="lineno"> 629</span> </div>
+<div class="line"><a name="l00630"></a><span class="lineno"> 630</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/DeclSpec.h:</div>
+<div class="line"><a name="l00631"></a><span class="lineno"> 631</span> </div>
+<div class="line"><a name="l00632"></a><span class="lineno"> 632</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/AttributeList.h:</div>
+<div class="line"><a name="l00633"></a><span class="lineno"> 633</span> </div>
+<div class="line"><a name="l00634"></a><span class="lineno"> 634</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/Ownership.h:</div>
+<div class="line"><a name="l00635"></a><span class="lineno"> 635</span> </div>
+<div class="line"><a name="l00636"></a><span class="lineno"> 636</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/AttrParsedAttrList.inc:</div>
+<div class="line"><a name="l00637"></a><span class="lineno"> 637</span> </div>
+<div class="line"><a name="l00638"></a><span class="lineno"> 638</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/ExternalSemaSource.h:</div>
+<div class="line"><a name="l00639"></a><span class="lineno"> 639</span> </div>
+<div class="line"><a name="l00640"></a><span class="lineno"> 640</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/TypoCorrection.h:</div>
+<div class="line"><a name="l00641"></a><span class="lineno"> 641</span> </div>
+<div class="line"><a name="l00642"></a><span class="lineno"> 642</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/Weak.h:</div>
+<div class="line"><a name="l00643"></a><span class="lineno"> 643</span> </div>
+<div class="line"><a name="l00644"></a><span class="lineno"> 644</span> /home/tstellar/llvm/include/llvm/ADT/MapVector.h:</div>
+<div class="line"><a name="l00645"></a><span class="lineno"> 645</span> </div>
+<div class="line"><a name="l00646"></a><span class="lineno"> 646</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/IdentifierResolver.h:</div>
+<div class="line"><a name="l00647"></a><span class="lineno"> 647</span> </div>
+<div class="line"><a name="l00648"></a><span class="lineno"> 648</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/LocInfoType.h:</div>
+<div class="line"><a name="l00649"></a><span class="lineno"> 649</span> </div>
+<div class="line"><a name="l00650"></a><span class="lineno"> 650</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/ObjCMethodList.h:</div>
+<div class="line"><a name="l00651"></a><span class="lineno"> 651</span> </div>
+<div class="line"><a name="l00652"></a><span class="lineno"> 652</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Sema/ScopeInfo.h:</div>
+<div class="line"><a name="l00653"></a><span class="lineno"> 653</span> </div>
+<div class="line"><a name="l00654"></a><span class="lineno"> 654</span> /home/tstellar/llvm/include/llvm/MC/MCParser/MCAsmParser.h:</div>
+<div class="line"><a name="l00655"></a><span class="lineno"> 655</span> </div>
+<div class="line"><a name="l00656"></a><span class="lineno"> 656</span> /home/tstellar/llvm/include/llvm/MC/MCParser/AsmLexer.h:</div>
+<div class="line"><a name="l00657"></a><span class="lineno"> 657</span> </div>
+<div class="line"><a name="l00658"></a><span class="lineno"> 658</span> /home/tstellar/llvm/include/llvm/MC/MCParser/MCAsmLexer.h:</div>
+<div class="line"><a name="l00659"></a><span class="lineno"> 659</span> </div>
+<div class="line"><a name="l00660"></a><span class="lineno"> 660</span> /home/tstellar/llvm/include/llvm/Support/SMLoc.h:</div>
+<div class="line"><a name="l00661"></a><span class="lineno"> 661</span> </div>
+<div class="line"><a name="l00662"></a><span class="lineno"> 662</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ASTReader.h:</div>
+<div class="line"><a name="l00663"></a><span class="lineno"> 663</span> </div>
+<div class="line"><a name="l00664"></a><span class="lineno"> 664</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Version.h:</div>
+<div class="line"><a name="l00665"></a><span class="lineno"> 665</span> </div>
+<div class="line"><a name="l00666"></a><span class="lineno"> 666</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/Version.inc:</div>
+<div class="line"><a name="l00667"></a><span class="lineno"> 667</span> </div>
+<div class="line"><a name="l00668"></a><span class="lineno"> 668</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/<a class="code" href="Format_8cpp.html#af225acf665df209626523284f00162d4">Lex</a>/ExternalPreprocessorSource.h:</div>
+<div class="line"><a name="l00669"></a><span class="lineno"> 669</span> </div>
+<div class="line"><a name="l00670"></a><span class="lineno"> 670</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ContinuousRangeMap.h:</div>
+<div class="line"><a name="l00671"></a><span class="lineno"> 671</span> </div>
+<div class="line"><a name="l00672"></a><span class="lineno"> 672</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/Module.h:</div>
+<div class="line"><a name="l00673"></a><span class="lineno"> 673</span> </div>
+<div class="line"><a name="l00674"></a><span class="lineno"> 674</span> /home/tstellar/llvm/include/llvm/Bitcode/BitstreamReader.h:</div>
+<div class="line"><a name="l00675"></a><span class="lineno"> 675</span> </div>
+<div class="line"><a name="l00676"></a><span class="lineno"> 676</span> /home/tstellar/llvm/include/llvm/Support/Endian.h:</div>
+<div class="line"><a name="l00677"></a><span class="lineno"> 677</span> </div>
+<div class="line"><a name="l00678"></a><span class="lineno"> 678</span> /home/tstellar/llvm/include/llvm/Support/Host.h:</div>
+<div class="line"><a name="l00679"></a><span class="lineno"> 679</span> </div>
+<div class="line"><a name="l00680"></a><span class="lineno"> 680</span> /home/tstellar/llvm/include/llvm/Support/StreamableMemoryObject.h:</div>
+<div class="line"><a name="l00681"></a><span class="lineno"> 681</span> </div>
+<div class="line"><a name="l00682"></a><span class="lineno"> 682</span> /home/tstellar/llvm/include/llvm/Support/DataStream.h:</div>
+<div class="line"><a name="l00683"></a><span class="lineno"> 683</span> </div>
+<div class="line"><a name="l00684"></a><span class="lineno"> 684</span> /home/tstellar/llvm/include/llvm/Support/MemoryObject.h:</div>
+<div class="line"><a name="l00685"></a><span class="lineno"> 685</span> </div>
+<div class="line"><a name="l00686"></a><span class="lineno"> 686</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ModuleManager.h:</div>
+<div class="line"><a name="l00687"></a><span class="lineno"> 687</span> </div>
+<div class="line"><a name="l00688"></a><span class="lineno"> 688</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ASTWriter.h:</div>
+<div class="line"><a name="l00689"></a><span class="lineno"> 689</span> </div>
+<div class="line"><a name="l00690"></a><span class="lineno"> 690</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ASTMutationListener.h:</div>
+<div class="line"><a name="l00691"></a><span class="lineno"> 691</span> </div>
+<div class="line"><a name="l00692"></a><span class="lineno"> 692</span> /home/tstellar/llvm/tools/clang/lib/Frontend/../../include/clang/Serialization/ASTDeserializationListener.h:</div>
+<div class="line"><a name="l00693"></a><span class="lineno"> 693</span> </div>
+<div class="line"><a name="l00694"></a><span class="lineno"> 694</span> /home/tstellar/llvm/include/llvm/Bitcode/BitstreamWriter.h:</div>
+<div class="line"><a name="l00695"></a><span class="lineno"> 695</span> </div>
+<div class="line"><a name="l00696"></a><span class="lineno"> 696</span> /home/tstellar/llvm/include/llvm/ADT/StringExtras.h:</div>
+<div class="line"><a name="l00697"></a><span class="lineno"> 697</span> </div>
+<div class="line"><a name="l00698"></a><span class="lineno"> 698</span> /home/tstellar/llvm/include/llvm/Support/Atomic.h:</div>
+<div class="line"><a name="l00699"></a><span class="lineno"> 699</span> </div>
+<div class="line"><a name="l00700"></a><span class="lineno"> 700</span> /home/tstellar/llvm/include/llvm/Support/CrashRecoveryContext.h:</div>
+<div class="line"><a name="l00701"></a><span class="lineno"> 701</span> </div>
+<div class="line"><a name="l00702"></a><span class="lineno"> 702</span> /home/tstellar/llvm/include/llvm/Support/Mutex.h:</div>
+<div class="line"><a name="l00703"></a><span class="lineno"> 703</span> </div>
+<div class="line"><a name="l00704"></a><span class="lineno"> 704</span> /home/tstellar/llvm/include/llvm/Support/Threading.h:</div>
+<div class="line"><a name="l00705"></a><span class="lineno"> 705</span> </div>
+<div class="line"><a name="l00706"></a><span class="lineno"> 706</span> /home/tstellar/llvm/include/llvm/Support/MutexGuard.h:</div>
+<div class="line"><a name="l00707"></a><span class="lineno"> 707</span> </div>
+<div class="line"><a name="l00708"></a><span class="lineno"> 708</span> /home/tstellar/llvm/include/llvm/Support/Timer.h:</div>
+</div><!-- fragment --></div><!-- contents -->
+<hr>
+<p class="footer">
+Generated on Mon May 12 2014 12:13:16 for r$LatestRev$ by <a href="http://www.doxygen.org">Doxygen
+1.8.3.1</a>.</p>
+<p class="footer">
+See the <a href="http://clang.llvm.org">Main Clang Web Page</a> for more
+information.</p>
+</body>
+</html>
Added: www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8h_source.html
URL: http://llvm.org/viewvc/llvm-project/www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8h_source.html?rev=225843&view=auto
==============================================================================
--- www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8h_source.html (added)
+++ www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnit_8h_source.html Tue Jan 13 16:55:20 2015
@@ -0,0 +1,934 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head>
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="keywords" content="clang,LLVM,Low Level Virtual Machine,C,C++,doxygen,API,frontend,documentation"/>
+<meta name="description" content="C++ source code API documentation for clang."/>
+<title>clang: ASTUnit.h Source File</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head><body>
+<p class="title">clang API Documentation</p>
+<!-- Generated by Doxygen 1.8.3.1 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li><a href="index.html"><span>Main Page</span></a></li>
+ <li><a href="pages.html"><span>Related Pages</span></a></li>
+ <li><a href="modules.html"><span>Modules</span></a></li>
+ <li><a href="namespaces.html"><span>Namespaces</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ <li>
+ <div id="MSearchBox" class="MSearchBoxInactive">
+ <span class="left">
+ <img id="MSearchSelect" src="search/mag_sel.png"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ alt=""/>
+ <input type="text" id="MSearchField" value="Search" accesskey="S"
+ onfocus="searchBox.OnSearchFieldFocus(true)"
+ onblur="searchBox.OnSearchFieldFocus(false)"
+ onkeyup="searchBox.OnSearchFieldChange(event)"/>
+ </span><span class="right">
+ <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+ </span>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li><a href="files.html"><span>File List</span></a></li>
+ <li><a href="globals.html"><span>File Members</span></a></li>
+ </ul>
+ </div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void
(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark"> </span>Pages</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_f65986501076cc710d4b9355ae3fe06d.html">clang</a></li><li class="navelem"><a class="el" href="dir_3e61bbac0c8515a3c083eb51d03eb390.html">include</a></li><li class="navelem"><a class="el" href="dir_ee4f288247dc2d9ccd0382aea6916312.html">clang</a></li><li class="navelem"><a class="el" href="dir_86a50fedfdd177331e407e41b0c0394f.html">Frontend</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">ASTUnit.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<a href="ASTUnit_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//===--- ASTUnit.h - ASTUnit utility ----------------------------*- C++ -*-===//</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// The LLVM Compiler Infrastructure</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// This file is distributed under the University of Illinois Open Source</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// License. See LICENSE.TXT for details.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// ASTUnit utility class.</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#ifndef LLVM_CLANG_FRONTEND_ASTUNIT_H</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"></span><span class="preprocessor">#define LLVM_CLANG_FRONTEND_ASTUNIT_H</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor"></span></div>
+<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="Index_8h.html">clang-c/Index.h</a>"</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="ASTContext_8h.html" title="Defines the clang::ASTContext interface.">clang/AST/ASTContext.h</a>"</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="FileManager_8h.html" title="Defines the clang::FileManager interface and associated types.">clang/Basic/FileManager.h</a>"</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="FileSystemOptions_8h.html" title="Defines the clang::FileSystemOptions interface.">clang/Basic/FileSystemOptions.h</a>"</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="LangOptions_8h.html" title="Defines the clang::LangOptions interface.">clang/Basic/LangOptions.h</a>"</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="SourceManager_8h.html" title="Defines the SourceManager interface.">clang/Basic/SourceManager.h</a>"</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="TargetOptions_8h.html" title="Defines the clang::TargetOptions class.">clang/Basic/TargetOptions.h</a>"</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="HeaderSearchOptions_8h.html">clang/Lex/HeaderSearchOptions.h</a>"</span></div>
+<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="ModuleLoader_8h.html">clang/Lex/ModuleLoader.h</a>"</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="PreprocessingRecord_8h.html">clang/Lex/PreprocessingRecord.h</a>"</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="CodeCompleteConsumer_8h.html">clang/Sema/CodeCompleteConsumer.h</a>"</span></div>
+<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="ASTBitCodes_8h.html">clang/Serialization/ASTBitCodes.h</a>"</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "llvm/ADT/IntrusiveRefCntPtr.h"</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "llvm/ADT/OwningPtr.h"</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "llvm/ADT/SmallVector.h"</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "llvm/ADT/StringMap.h"</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "llvm/Support/Path.h"</span></div>
+<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <cassert></span></div>
+<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include <map></span></div>
+<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include <string></span></div>
+<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include <sys/types.h></span></div>
+<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include <utility></span></div>
+<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include <vector></span></div>
+<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div>
+<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">namespace </span>llvm {</div>
+<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">class </span>MemoryBuffer;</div>
+<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> }</div>
+<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div>
+<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">namespace </span>clang {</div>
+<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">class </span>Sema;</div>
+<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">class </span>ASTContext;</div>
+<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">class </span>ASTReader;</div>
+<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">class </span>CodeCompleteConsumer;</div>
+<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">class </span>CompilerInvocation;</div>
+<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">class </span>CompilerInstance;</div>
+<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keyword">class </span>Decl;</div>
+<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">class </span>DiagnosticsEngine;</div>
+<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">class </span>FileEntry;</div>
+<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">class </span>FileManager;</div>
+<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">class </span>HeaderSearch;</div>
+<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">class </span>Preprocessor;</div>
+<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">class </span>SourceManager;</div>
+<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">class </span>TargetInfo;</div>
+<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="keyword">class </span>ASTFrontendAction;</div>
+<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">class </span>ASTDeserializationListener;</div>
+<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"></span></div>
+<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment">/// \brief Utility class for loading a ASTContext from an AST file.</span></div>
+<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment">///</span></div>
+<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html"> 65</a></span> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> : <span class="keyword">public</span> <a class="code" href="classclang_1_1ModuleLoader.html" title="Abstract interface for a module loader.">ModuleLoader</a> {</div>
+<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<LangOptions></a> LangOpts;</div>
+<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> Diagnostics;</div>
+<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<FileManager></a> FileMgr;</div>
+<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<SourceManager></a> SourceMgr;</div>
+<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<HeaderSearch></a> HeaderInfo;</div>
+<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<TargetInfo></a> Target;</div>
+<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<Preprocessor></a> PP;</div>
+<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<ASTContext></a> Ctx;</div>
+<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<TargetOptions></a> TargetOpts;</div>
+<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<HeaderSearchOptions></a> HSOpts;</div>
+<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <a class="code" href="classclang_1_1ASTReader.html" title="Reads an AST files chain containing the contents of a translation unit.">ASTReader</a> *Reader;</div>
+<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="keywordtype">bool</span> HadModuleLoaderFatalFailure;</div>
+<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div>
+<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">struct </span><a class="code" href="structASTUnit_1_1ASTWriterData.html">ASTWriterData</a>;</div>
+<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTWriterData></a> WriterData;</div>
+<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div>
+<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <a class="code" href="classclang_1_1FileSystemOptions.html" title="Keeps track of options that affect how file operations are performed.">FileSystemOptions</a> FileSystemOpts;</div>
+<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment"></span></div>
+<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"> /// \brief The AST consumer that received information about the translation</span></div>
+<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> /// unit as it was parsed or loaded.</span></div>
+<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"></span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTConsumer></a> Consumer;</div>
+<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"></span></div>
+<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment"> /// \brief The semantic analysis object used to type-check the translation</span></div>
+<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"> /// unit.</span></div>
+<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment"></span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<Sema></a> TheSema;</div>
+<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment"></span></div>
+<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"> /// Optional owned invocation, just used to make the invocation used in</span></div>
+<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"> /// LoadFromCommandLine available.</span></div>
+<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"></span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<CompilerInvocation></a> Invocation;</div>
+<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div>
+<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment">// OnlyLocalDecls - when true, walking this AST should only visit declarations</span></div>
+<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment">// that come from the AST itself, not from included precompiled headers.</span></div>
+<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment">// FIXME: This is temporary; eventually, CIndex will always do this.</span></div>
+<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="keywordtype">bool</span> OnlyLocalDecls;</div>
+<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment"></span></div>
+<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment"> /// \brief Whether to capture any diagnostics produced.</span></div>
+<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment"></span> <span class="keywordtype">bool</span> CaptureDiagnostics;</div>
+<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"></span></div>
+<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"> /// \brief Track whether the main file was loaded from an AST or not.</span></div>
+<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment"></span> <span class="keywordtype">bool</span> MainFileIsAST;</div>
+<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"></span></div>
+<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment"> /// \brief What kind of translation unit this AST represents.</span></div>
+<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment"></span> <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21" title="Describes the kind of translation unit being processed.">TranslationUnitKind</a> TUKind;</div>
+<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment"></span></div>
+<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"> /// \brief Whether we should time each operation.</span></div>
+<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment"></span> <span class="keywordtype">bool</span> WantTiming;</div>
+<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment"></span></div>
+<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"> /// \brief Whether the ASTUnit should delete the remapped buffers.</span></div>
+<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment"></span> <span class="keywordtype">bool</span> OwnsRemappedFileBuffers;</div>
+<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment"></span></div>
+<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment"> /// Track the top-level decls which appeared in an ASTUnit which was loaded</span></div>
+<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment"> /// from a source file.</span></div>
+<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment"></span> <span class="comment">//</span></div>
+<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment">// FIXME: This is just an optimization hack to avoid deserializing large parts</span></div>
+<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment">// of a PCH file when using the Index library on an ASTUnit loaded from</span></div>
+<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment">// source. In the long term we should make the Index library use efficient and</span></div>
+<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment">// more scalable search mechanisms.</span></div>
+<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> std::vector<Decl*> TopLevelDecls;</div>
+<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment"></span></div>
+<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment"> /// \brief Sorted (by file offset) vector of pairs of file offset/Decl.</span></div>
+<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment"></span> <span class="keyword">typedef</span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<std::pair<unsigned, Decl *></a>, 64> <a class="code" href="classllvm_1_1SmallVector.html">LocDeclsTy</a>;</div>
+<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="keyword">typedef</span> llvm::DenseMap<FileID, LocDeclsTy *> FileDeclsTy;</div>
+<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment"></span></div>
+<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="comment"> /// \brief Map from FileID to the file-level declarations that it contains.</span></div>
+<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="comment"> /// The files and decls are only local (and non-preamble) ones.</span></div>
+<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="comment"></span> FileDeclsTy FileDecls;</div>
+<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment"></span></div>
+<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment"> /// The name of the original source file used to generate this ASTUnit.</span></div>
+<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment"></span> std::string OriginalSourceFile;</div>
+<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment"></span></div>
+<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment"> /// \brief The set of diagnostics produced when creating the preamble.</span></div>
+<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="comment"></span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<StoredDiagnostic, 4></a> PreambleDiagnostics;</div>
+<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment"></span></div>
+<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment"> /// \brief The set of diagnostics produced when creating this</span></div>
+<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment"> /// translation unit.</span></div>
+<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"></span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<StoredDiagnostic, 4></a> StoredDiagnostics;</div>
+<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment"></span></div>
+<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment"> /// \brief The set of diagnostics produced when failing to parse, e.g. due</span></div>
+<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"> /// to failure to load the PCH.</span></div>
+<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"></span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<StoredDiagnostic, 4></a> FailedParseDiagnostics;</div>
+<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"></span></div>
+<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment"> /// \brief The number of stored diagnostics that come from the driver</span></div>
+<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment"> /// itself.</span></div>
+<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment"> /// Diagnostics that come from the driver are retained from one parse to</span></div>
+<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment"> /// the next.</span></div>
+<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"></span> <span class="keywordtype">unsigned</span> NumStoredDiagnosticsFromDriver;</div>
+<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"></span></div>
+<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment"> /// \brief Counter that determines when we want to try building a</span></div>
+<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment"> /// precompiled preamble.</span></div>
+<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment"> /// If zero, we will never build a precompiled preamble. Otherwise,</span></div>
+<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment"> /// it's treated as a counter that decrements each time we reparse</span></div>
+<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment"> /// without the benefit of a precompiled preamble. When it hits 1,</span></div>
+<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment"> /// we'll attempt to rebuild the precompiled header. This way, if</span></div>
+<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment"> /// building the precompiled preamble fails, we won't try again for</span></div>
+<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment"> /// some number of calls.</span></div>
+<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment"></span> <span class="keywordtype">unsigned</span> PreambleRebuildCounter;</div>
+<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div>
+<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00167"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html"> 167</a></span> <span class="keyword">class </span><a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html">PreambleData</a> {</div>
+<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *File;</div>
+<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> std::vector<char> Buffer;</div>
+<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="keyword">mutable</span> <span class="keywordtype">unsigned</span> NumLines;</div>
+<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> </div>
+<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00173"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#adaa39f4932e0421abd384ba9d47dbcac"> 173</a></span> <a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#adaa39f4932e0421abd384ba9d47dbcac">PreambleData</a>() : File(0), NumLines(0) { }</div>
+<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div>
+<div class="line"><a name="l00175"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3d024c9e05bdfdd0299fe66eced1bc34"> 175</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3d024c9e05bdfdd0299fe66eced1bc34">assign</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *F, <span class="keyword">const</span> <span class="keywordtype">char</span> *begin, <span class="keyword">const</span> <span class="keywordtype">char</span> *end) {</div>
+<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> File = F;</div>
+<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> Buffer.assign(begin, end);</div>
+<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> NumLines = 0;</div>
+<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> }</div>
+<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div>
+<div class="line"><a name="l00181"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#aafeaef58fac32a124550eda9f9317185"> 181</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#aafeaef58fac32a124550eda9f9317185">clear</a>() { Buffer.clear(); File = 0; NumLines = 0; }</div>
+<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div>
+<div class="line"><a name="l00183"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3dfca459bb7a7b012c59bd8fa5617fbb"> 183</a></span> <span class="keywordtype">size_t</span> <a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3dfca459bb7a7b012c59bd8fa5617fbb">size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Buffer.size(); }</div>
+<div class="line"><a name="l00184"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#abe672377adaa89b4cb0eedbb76e90c6d"> 184</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#abe672377adaa89b4cb0eedbb76e90c6d">empty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Buffer.empty(); }</div>
+<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> </div>
+<div class="line"><a name="l00186"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a2f3950110d708bc132720af899f47b80"> 186</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a2f3950110d708bc132720af899f47b80">getBufferStart</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &Buffer[0]; }</div>
+<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div>
+<div class="line"><a name="l00188"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a1bd6f8fc0ee09fb0e9fc68bea5e3ff56"> 188</a></span> <span class="keywordtype">unsigned</span> <a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a1bd6f8fc0ee09fb0e9fc68bea5e3ff56">getNumLines</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="keywordflow">if</span> (NumLines)</div>
+<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="keywordflow">return</span> NumLines;</div>
+<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> countLines();</div>
+<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="keywordflow">return</span> NumLines;</div>
+<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> }</div>
+<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div>
+<div class="line"><a name="l00195"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a25d2738e68020009575c9f85473203d4"> 195</a></span> <a class="code" href="classclang_1_1SourceRange.html" title="A trival tuple used to represent a source range.">SourceRange</a> <a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a25d2738e68020009575c9f85473203d4">getSourceRange</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#afe4356a77609114d8df0bfc9c2b8701f">SM</a>)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> FileLoc = SM.<a class="code" href="classclang_1_1SourceManager.html#ae1f1d6c242c1db7b224a7a6dd35cb82e" title="Return the source location corresponding to the first byte of the specified file.">getLocForStartOfFile</a>(SM.<a class="code" href="classclang_1_1SourceManager.html#a0cecf294e287bdaa16731595bbbe7efc" title="Get the file ID for the precompiled preamble if there is one.">getPreambleFileID</a>());</div>
+<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1SourceRange.html" title="A trival tuple used to represent a source range.">SourceRange</a>(FileLoc, FileLoc.<a class="code" href="classclang_1_1SourceLocation.html#a1abf1cac74e512604b1f2c8921a446fa" title="Return a source location with the specified offset from this SourceLocation.">getLocWithOffset</a>(<a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html#a3dfca459bb7a7b012c59bd8fa5617fbb">size</a>()-1));</div>
+<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> }</div>
+<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div>
+<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="keywordtype">void</span> countLines() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> };</div>
+<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div>
+<div class="line"><a name="l00204"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#abf79bdf1c05ceacfb6a65e34e35b37d2"> 204</a></span> <span class="keyword">const</span> <a class="code" href="classclang_1_1ASTUnit_1_1PreambleData.html">PreambleData</a> &<a class="code" href="classclang_1_1ASTUnit.html#abf79bdf1c05ceacfb6a65e34e35b37d2">getPreambleData</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="keywordflow">return</span> Preamble;</div>
+<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> }</div>
+<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div>
+<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment"></span></div>
+<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment"> /// \brief The contents of the preamble that has been precompiled to</span></div>
+<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="comment"> /// \c PreambleFile.</span></div>
+<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment"></span> PreambleData Preamble;</div>
+<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="comment"></span></div>
+<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment"> /// \brief Whether the preamble ends at the start of a new line.</span></div>
+<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment"> /// </span></div>
+<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment"> /// Used to inform the lexer as to whether it's starting at the beginning of</span></div>
+<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="comment"> /// a line after skipping the preamble.</span></div>
+<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="comment"></span> <span class="keywordtype">bool</span> PreambleEndsAtStartOfLine;</div>
+<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="comment"></span></div>
+<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="comment"> /// \brief The size of the source buffer that we've reserved for the main </span></div>
+<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="comment"> /// file within the precompiled preamble.</span></div>
+<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="comment"></span> <span class="keywordtype">unsigned</span> PreambleReservedSize;</div>
+<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="comment"></span></div>
+<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="comment"> /// \brief Keeps track of the files that were used when computing the </span></div>
+<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="comment"> /// preamble, with both their buffer size and their modification time.</span></div>
+<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="comment"> /// If any of the files have changed from one compile to the next,</span></div>
+<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="comment"> /// the preamble must be thrown away.</span></div>
+<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="comment"></span> llvm::StringMap<std::pair<off_t, time_t> > FilesInPreamble;</div>
+<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="comment"></span></div>
+<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"> /// \brief When non-NULL, this is the buffer used to store the contents of</span></div>
+<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="comment"> /// the main file when it has been padded for use with the precompiled</span></div>
+<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="comment"> /// preamble.</span></div>
+<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="comment"></span> llvm::MemoryBuffer *SavedMainFileBuffer;</div>
+<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment"></span></div>
+<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="comment"> /// \brief When non-NULL, this is the buffer used to store the</span></div>
+<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="comment"> /// contents of the preamble when it has been padded to build the</span></div>
+<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="comment"> /// precompiled preamble.</span></div>
+<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="comment"></span> llvm::MemoryBuffer *PreambleBuffer;</div>
+<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="comment"></span></div>
+<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="comment"> /// \brief The number of warnings that occurred while parsing the preamble.</span></div>
+<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="comment"> /// This value will be used to restore the state of the \c DiagnosticsEngine</span></div>
+<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="comment"> /// object when re-using the precompiled preamble. Note that only the</span></div>
+<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="comment"> /// number of warnings matters, since we will not save the preamble</span></div>
+<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="comment"> /// when any errors are present.</span></div>
+<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="comment"></span> <span class="keywordtype">unsigned</span> NumWarningsInPreamble;</div>
+<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="comment"></span></div>
+<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="comment"> /// \brief A list of the serialization ID numbers for each of the top-level</span></div>
+<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="comment"> /// declarations parsed within the precompiled preamble.</span></div>
+<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="comment"></span> std::vector<serialization::DeclID> TopLevelDeclsInPreamble;</div>
+<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="comment"></span></div>
+<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="comment"> /// \brief Whether we should be caching code-completion results.</span></div>
+<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="comment"></span> <span class="keywordtype">bool</span> ShouldCacheCodeCompletionResults : 1;</div>
+<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="comment"></span></div>
+<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="comment"> /// \brief Whether to include brief documentation within the set of code</span></div>
+<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="comment"> /// completions cached.</span></div>
+<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="comment"></span> <span class="keywordtype">bool</span> IncludeBriefCommentsInCodeCompletion : 1;</div>
+<div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="comment"></span></div>
+<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="comment"> /// \brief True if non-system source files should be treated as volatile</span></div>
+<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="comment"> /// (likely to change while trying to use them).</span></div>
+<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="comment"></span> <span class="keywordtype">bool</span> UserFilesAreVolatile : 1;</div>
+<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="comment"></span></div>
+<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="comment"> /// \brief The language options used when we load an AST file.</span></div>
+<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="comment"></span> <a class="code" href="classclang_1_1LangOptions.html" title="Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...">LangOptions</a> ASTFileLangOpts;</div>
+<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div>
+<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="keyword">static</span> <span class="keywordtype">void</span> ConfigureDiags(<a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> &Diags,</div>
+<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="keyword">const</span> <span class="keywordtype">char</span> **ArgBegin, <span class="keyword">const</span> <span class="keywordtype">char</span> **ArgEnd,</div>
+<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &AST, <span class="keywordtype">bool</span> CaptureDiagnostics);</div>
+<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> </div>
+<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="keywordtype">void</span> TranslateStoredDiagnostics(<a class="code" href="classclang_1_1ASTReader.html" title="Reads an AST files chain containing the contents of a translation unit.">ASTReader</a> *MMan, StringRef ModName,</div>
+<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &SrcMan,</div>
+<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="keyword">const</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<StoredDiagnostic></a> &Diags,</div>
+<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<StoredDiagnostic></a> &Out);</div>
+<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div>
+<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="keywordtype">void</span> clearFileLevelDecls();</div>
+<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div>
+<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="keyword">public</span>:<span class="comment"></span></div>
+<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="comment"> /// \brief A cached code-completion result, which may be introduced in one of</span></div>
+<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="comment"> /// many different contexts.</span></div>
+<div class="line"><a name="l00281"></a><span class="lineno"><a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html"> 281</a></span> <span class="comment"></span> <span class="keyword">struct </span><a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html" title="A cached code-completion result, which may be introduced in one of many different contexts...">CachedCodeCompletionResult</a> {<span class="comment"></span></div>
+<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="comment"> /// \brief The code-completion string corresponding to this completion</span></div>
+<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="comment"> /// result.</span></div>
+<div class="line"><a name="l00284"></a><span class="lineno"><a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#ac635e5f1e63dcaca8a7e1b974a00993d"> 284</a></span> <span class="comment"></span> <a class="code" href="classclang_1_1CodeCompletionString.html" title="A "string" used to describe how code completion can be performed for an entity.">CodeCompletionString</a> *<a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#ac635e5f1e63dcaca8a7e1b974a00993d" title="The code-completion string corresponding to this completion result.">Completion</a>;</div>
+<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="comment"></span></div>
+<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="comment"> /// \brief A bitmask that indicates which code-completion contexts should</span></div>
+<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="comment"> /// contain this completion result.</span></div>
+<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="comment"> /// The bits in the bitmask correspond to the values of</span></div>
+<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="comment"> /// CodeCompleteContext::Kind. To map from a completion context kind to a</span></div>
+<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="comment"> /// bit, shift 1 by that number of bits. Many completions can occur in</span></div>
+<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="comment"> /// several different contexts.</span></div>
+<div class="line"><a name="l00293"></a><span class="lineno"><a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#aa8bfd6b3559906076d4a01876a7ea63a"> 293</a></span> <span class="comment"></span> uint64_t <a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#aa8bfd6b3559906076d4a01876a7ea63a" title="A bitmask that indicates which code-completion contexts should contain this completion result...">ShowInContexts</a>;</div>
+<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="comment"></span></div>
+<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="comment"> /// \brief The priority given to this code-completion result.</span></div>
+<div class="line"><a name="l00296"></a><span class="lineno"><a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#a75077fa1224636475e3d473251fd05a4"> 296</a></span> <span class="comment"></span> <span class="keywordtype">unsigned</span> <a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#a75077fa1224636475e3d473251fd05a4" title="The priority given to this code-completion result.">Priority</a>;</div>
+<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="comment"></span></div>
+<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="comment"> /// \brief The libclang cursor kind corresponding to this code-completion </span></div>
+<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> <span class="comment"> /// result.</span></div>
+<div class="line"><a name="l00300"></a><span class="lineno"><a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#a1c7a626e22c4419dc0f448fa88202837"> 300</a></span> <span class="comment"></span> <a class="code" href="group__CINDEX.html#gaaccc432245b4cd9f2d470913f9ef0013" title="Describes the kind of entity that a cursor refers to.">CXCursorKind</a> <a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#a1c7a626e22c4419dc0f448fa88202837" title="The libclang cursor kind corresponding to this code-completion result.">Kind</a>;</div>
+<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> <span class="comment"></span></div>
+<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="comment"> /// \brief The availability of this code-completion result.</span></div>
+<div class="line"><a name="l00303"></a><span class="lineno"><a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#a3fc58cbd00e7528678c80efd5f4326e5"> 303</a></span> <span class="comment"></span> <a class="code" href="group__CINDEX.html#gada331ea0195e952c8f181ecf15e83d71" title="Describes the availability of a particular entity, which indicates whether the use of this entity wil...">CXAvailabilityKind</a> <a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#a3fc58cbd00e7528678c80efd5f4326e5" title="The availability of this code-completion result.">Availability</a>;</div>
+<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> <span class="comment"></span></div>
+<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="comment"> /// \brief The simplified type class for a non-macro completion result.</span></div>
+<div class="line"><a name="l00306"></a><span class="lineno"><a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#a981c616f73b5ddaf1b3dbf5a0fbc6e48"> 306</a></span> <span class="comment"></span> <a class="code" href="namespaceclang.html#a7b6f7a71a039a553c0cb4c5c5eb2cc05" title="A simplified classification of types used when determining "similar" types for code completion...">SimplifiedTypeClass</a> <a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#a981c616f73b5ddaf1b3dbf5a0fbc6e48" title="The simplified type class for a non-macro completion result.">TypeClass</a>;</div>
+<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> <span class="comment"></span></div>
+<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> <span class="comment"> /// \brief The type of a non-macro completion result, stored as a unique</span></div>
+<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="comment"> /// integer used by the string map of cached completion types.</span></div>
+<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="comment"> /// This value will be zero if the type is not known, or a unique value</span></div>
+<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> <span class="comment"> /// determined by the formatted type string. Se \c CachedCompletionTypes</span></div>
+<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> <span class="comment"> /// for more information.</span></div>
+<div class="line"><a name="l00314"></a><span class="lineno"><a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#a0f9588942f4cc4a6125f37af291915eb"> 314</a></span> <span class="comment"></span> <span class="keywordtype">unsigned</span> <a class="code" href="structclang_1_1ASTUnit_1_1CachedCodeCompletionResult.html#a0f9588942f4cc4a6125f37af291915eb" title="The type of a non-macro completion result, stored as a unique integer used by the string map of cache...">Type</a>;</div>
+<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> };</div>
+<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="comment"></span></div>
+<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> <span class="comment"> /// \brief Retrieve the mapping from formatted type names to unique type</span></div>
+<div class="line"><a name="l00318"></a><span class="lineno"> 318</span> <span class="comment"> /// identifiers.</span></div>
+<div class="line"><a name="l00319"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a15a0563e78428883697cd603a9bd0892"> 319</a></span> <span class="comment"></span> llvm::StringMap<unsigned> &<a class="code" href="classclang_1_1ASTUnit.html#a15a0563e78428883697cd603a9bd0892" title="Retrieve the mapping from formatted type names to unique type identifiers.">getCachedCompletionTypes</a>() { </div>
+<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> <span class="keywordflow">return</span> CachedCompletionTypes; </div>
+<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> }</div>
+<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="comment"></span></div>
+<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="comment"> /// \brief Retrieve the allocator used to cache global code completions.</span></div>
+<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> <span class="comment"></span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<GlobalCodeCompletionAllocator></a></div>
+<div class="line"><a name="l00325"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ae646ea8c3854709d2446f0fdc9a1fe04"> 325</a></span> <a class="code" href="classclang_1_1ASTUnit.html#ae646ea8c3854709d2446f0fdc9a1fe04" title="Retrieve the allocator used to cache global code completions.">getCachedCompletionAllocator</a>() {</div>
+<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="keywordflow">return</span> CachedCompletionAllocator;</div>
+<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> }</div>
+<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> </div>
+<div class="line"><a name="l00329"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a9cb0c1756a5c77e72f00ef5c4c2005b5"> 329</a></span> <a class="code" href="classclang_1_1CodeCompletionTUInfo.html">CodeCompletionTUInfo</a> &<a class="code" href="classclang_1_1ASTUnit.html#a9cb0c1756a5c77e72f00ef5c4c2005b5">getCodeCompletionTUInfo</a>() {</div>
+<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> <span class="keywordflow">if</span> (!CCTUInfo)</div>
+<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> CCTUInfo.reset(<span class="keyword">new</span> <a class="code" href="classclang_1_1CodeCompletionTUInfo.html">CodeCompletionTUInfo</a>(</div>
+<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="keyword">new</span> <a class="code" href="classclang_1_1GlobalCodeCompletionAllocator.html" title="Allocator for a cached set of global code completions.">GlobalCodeCompletionAllocator</a>));</div>
+<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="keywordflow">return</span> *CCTUInfo;</div>
+<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> }</div>
+<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div>
+<div class="line"><a name="l00336"></a><span class="lineno"> 336</span> <span class="keyword">private</span>:<span class="comment"></span></div>
+<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> <span class="comment"> /// \brief Allocator used to store cached code completions.</span></div>
+<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> <span class="comment"></span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<GlobalCodeCompletionAllocator></a></div>
+<div class="line"><a name="l00339"></a><span class="lineno"> 339</span> CachedCompletionAllocator;</div>
+<div class="line"><a name="l00340"></a><span class="lineno"> 340</span> </div>
+<div class="line"><a name="l00341"></a><span class="lineno"> 341</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<CodeCompletionTUInfo></a> CCTUInfo;</div>
+<div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <span class="comment"></span></div>
+<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <span class="comment"> /// \brief The set of cached code-completion results.</span></div>
+<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="comment"></span> std::vector<CachedCodeCompletionResult> CachedCompletionResults;</div>
+<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="comment"></span></div>
+<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> <span class="comment"> /// \brief A mapping from the formatted type name to a unique number for that</span></div>
+<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> <span class="comment"> /// type, which is used for type equality comparisons.</span></div>
+<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <span class="comment"></span> llvm::StringMap<unsigned> CachedCompletionTypes;</div>
+<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> <span class="comment"></span></div>
+<div class="line"><a name="l00350"></a><span class="lineno"> 350</span> <span class="comment"> /// \brief A string hash of the top-level declaration and macro definition </span></div>
+<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> <span class="comment"> /// names processed the last time that we reparsed the file.</span></div>
+<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00353"></a><span class="lineno"> 353</span> <span class="comment"> /// This hash value is used to determine when we need to refresh the </span></div>
+<div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="comment"> /// global code-completion cache.</span></div>
+<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> <span class="comment"></span> <span class="keywordtype">unsigned</span> CompletionCacheTopLevelHashValue;</div>
+<div class="line"><a name="l00356"></a><span class="lineno"> 356</span> <span class="comment"></span></div>
+<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> <span class="comment"> /// \brief A string hash of the top-level declaration and macro definition </span></div>
+<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> <span class="comment"> /// names processed the last time that we reparsed the precompiled preamble.</span></div>
+<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> <span class="comment"> /// This hash value is used to determine when we need to refresh the </span></div>
+<div class="line"><a name="l00361"></a><span class="lineno"> 361</span> <span class="comment"> /// global code-completion cache after a rebuild of the precompiled preamble.</span></div>
+<div class="line"><a name="l00362"></a><span class="lineno"> 362</span> <span class="comment"></span> <span class="keywordtype">unsigned</span> PreambleTopLevelHashValue;</div>
+<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> <span class="comment"></span></div>
+<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="comment"> /// \brief The current hash value for the top-level declaration and macro</span></div>
+<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> <span class="comment"> /// definition names</span></div>
+<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> <span class="comment"></span> <span class="keywordtype">unsigned</span> CurrentTopLevelHashValue;</div>
+<div class="line"><a name="l00367"></a><span class="lineno"> 367</span> <span class="comment"></span></div>
+<div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="comment"> /// \brief Bit used by CIndex to mark when a translation unit may be in an</span></div>
+<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> <span class="comment"> /// inconsistent state, and is not safe to free.</span></div>
+<div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <span class="comment"></span> <span class="keywordtype">unsigned</span> UnsafeToFree : 1;</div>
+<div class="line"><a name="l00371"></a><span class="lineno"> 371</span> <span class="comment"></span></div>
+<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> <span class="comment"> /// \brief Cache any "global" code-completion results, so that we can avoid</span></div>
+<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> <span class="comment"> /// recomputing them with each completion.</span></div>
+<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="comment"></span> <span class="keywordtype">void</span> CacheCodeCompletionResults();</div>
+<div class="line"><a name="l00375"></a><span class="lineno"> 375</span> <span class="comment"></span></div>
+<div class="line"><a name="l00376"></a><span class="lineno"> 376</span> <span class="comment"> /// \brief Clear out and deallocate </span></div>
+<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> <span class="comment"></span> <span class="keywordtype">void</span> ClearCachedCompletionResults();</div>
+<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div>
+<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &) LLVM_DELETED_FUNCTION;</div>
+<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> <span class="keywordtype">void</span> operator=(const <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &) LLVM_DELETED_FUNCTION;</div>
+<div class="line"><a name="l00381"></a><span class="lineno"> 381</span> </div>
+<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> explicit <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a>(<span class="keywordtype">bool</span> MainFileIsAST);</div>
+<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> </div>
+<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> <span class="keywordtype">void</span> CleanTemporaryFiles();</div>
+<div class="line"><a name="l00385"></a><span class="lineno"> 385</span> <span class="keywordtype">bool</span> Parse(llvm::MemoryBuffer *OverrideMainBuffer);</div>
+<div class="line"><a name="l00386"></a><span class="lineno"> 386</span> </div>
+<div class="line"><a name="l00387"></a><span class="lineno"> 387</span> std::pair<llvm::MemoryBuffer *, std::pair<<span class="keywordtype">unsigned</span>, <span class="keywordtype">bool</span>> ></div>
+<div class="line"><a name="l00388"></a><span class="lineno"> 388</span> ComputePreamble(<a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a> &Invocation, </div>
+<div class="line"><a name="l00389"></a><span class="lineno"> 389</span> <span class="keywordtype">unsigned</span> MaxLines, <span class="keywordtype">bool</span> &CreatedBuffer);</div>
+<div class="line"><a name="l00390"></a><span class="lineno"> 390</span> </div>
+<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> llvm::MemoryBuffer *getMainBufferWithPrecompiledPreamble(</div>
+<div class="line"><a name="l00392"></a><span class="lineno"> 392</span> const <a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a> &PreambleInvocationIn,</div>
+<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> <span class="keywordtype">bool</span> AllowRebuild = <a class="code" href="stdbool_8h.html#a41f9c5fb8b08eb5dc3edce4dcb37fee7">true</a>,</div>
+<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> <span class="keywordtype">unsigned</span> MaxLines = 0);</div>
+<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> <span class="keywordtype">void</span> RealizeTopLevelDeclsFromPreamble();</div>
+<div class="line"><a name="l00396"></a><span class="lineno"> 396</span> <span class="comment"></span></div>
+<div class="line"><a name="l00397"></a><span class="lineno"> 397</span> <span class="comment"> /// \brief Transfers ownership of the objects (like SourceManager) from</span></div>
+<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> <span class="comment"> /// \param CI to this ASTUnit.</span></div>
+<div class="line"><a name="l00399"></a><span class="lineno"> 399</span> <span class="comment"></span> <span class="keywordtype">void</span> transferASTDataFromCompilerInstance(<a class="code" href="classclang_1_1CompilerInstance.html">CompilerInstance</a> &CI);</div>
+<div class="line"><a name="l00400"></a><span class="lineno"> 400</span> <span class="comment"></span></div>
+<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> <span class="comment"> /// \brief Allows us to assert that ASTUnit is not being used concurrently,</span></div>
+<div class="line"><a name="l00402"></a><span class="lineno"> 402</span> <span class="comment"> /// which is not supported.</span></div>
+<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00404"></a><span class="lineno"> 404</span> <span class="comment"> /// Clients should create instances of the ConcurrencyCheck class whenever</span></div>
+<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="comment"> /// using the ASTUnit in a way that isn't intended to be concurrent, which is</span></div>
+<div class="line"><a name="l00406"></a><span class="lineno"> 406</span> <span class="comment"> /// just about any usage.</span></div>
+<div class="line"><a name="l00407"></a><span class="lineno"> 407</span> <span class="comment"> /// Becomes a noop in release mode; only useful for debug mode checking.</span></div>
+<div class="line"><a name="l00408"></a><span class="lineno"> 408</span> <span class="comment"></span> class ConcurrencyState {</div>
+<div class="line"><a name="l00409"></a><span class="lineno"> 409</span> <span class="preprocessor">#ifndef NDEBUG</span></div>
+<div class="line"><a name="l00410"></a><span class="lineno"> 410</span> <span class="preprocessor"></span> <span class="keywordtype">void</span> *Mutex; <span class="comment">// a llvm::sys::MutexImpl in debug;</span></div>
+<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> <span class="preprocessor">#endif</span></div>
+<div class="line"><a name="l00412"></a><span class="lineno"> 412</span> <span class="preprocessor"></span></div>
+<div class="line"><a name="l00413"></a><span class="lineno"> 413</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00414"></a><span class="lineno"> 414</span> ConcurrencyState();</div>
+<div class="line"><a name="l00415"></a><span class="lineno"> 415</span> ~ConcurrencyState();</div>
+<div class="line"><a name="l00416"></a><span class="lineno"> 416</span> </div>
+<div class="line"><a name="l00417"></a><span class="lineno"> 417</span> <span class="keywordtype">void</span> start();</div>
+<div class="line"><a name="l00418"></a><span class="lineno"> 418</span> <span class="keywordtype">void</span> finish();</div>
+<div class="line"><a name="l00419"></a><span class="lineno"> 419</span> };</div>
+<div class="line"><a name="l00420"></a><span class="lineno"> 420</span> ConcurrencyState ConcurrencyCheckValue;</div>
+<div class="line"><a name="l00421"></a><span class="lineno"> 421</span> </div>
+<div class="line"><a name="l00422"></a><span class="lineno"> 422</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00423"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1ConcurrencyCheck.html"> 423</a></span> <span class="keyword">class </span><a class="code" href="classclang_1_1ASTUnit_1_1ConcurrencyCheck.html">ConcurrencyCheck</a> {</div>
+<div class="line"><a name="l00424"></a><span class="lineno"> 424</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &Self;</div>
+<div class="line"><a name="l00425"></a><span class="lineno"> 425</span> </div>
+<div class="line"><a name="l00426"></a><span class="lineno"> 426</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00427"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1ConcurrencyCheck.html#a1e7e20edaddbd0c032c2f1d1dd6d39cc"> 427</a></span> <span class="keyword">explicit</span> <a class="code" href="classclang_1_1ASTUnit_1_1ConcurrencyCheck.html#a1e7e20edaddbd0c032c2f1d1dd6d39cc">ConcurrencyCheck</a>(<a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> &Self)</div>
+<div class="line"><a name="l00428"></a><span class="lineno"> 428</span> : Self(Self) </div>
+<div class="line"><a name="l00429"></a><span class="lineno"> 429</span> { </div>
+<div class="line"><a name="l00430"></a><span class="lineno"> 430</span> Self.ConcurrencyCheckValue.start();</div>
+<div class="line"><a name="l00431"></a><span class="lineno"> 431</span> }</div>
+<div class="line"><a name="l00432"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit_1_1ConcurrencyCheck.html#a799b5df7a4195b5c850d40c86fafc4f5"> 432</a></span> <a class="code" href="classclang_1_1ASTUnit_1_1ConcurrencyCheck.html#a799b5df7a4195b5c850d40c86fafc4f5">~ConcurrencyCheck</a>() {</div>
+<div class="line"><a name="l00433"></a><span class="lineno"> 433</span> Self.ConcurrencyCheckValue.finish();</div>
+<div class="line"><a name="l00434"></a><span class="lineno"> 434</span> }</div>
+<div class="line"><a name="l00435"></a><span class="lineno"> 435</span> };</div>
+<div class="line"><a name="l00436"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#af6834398ac4108a13537d1ff293decdc"> 436</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classclang_1_1ASTUnit_1_1ConcurrencyCheck.html">ConcurrencyCheck</a>;</div>
+<div class="line"><a name="l00437"></a><span class="lineno"> 437</span> </div>
+<div class="line"><a name="l00438"></a><span class="lineno"> 438</span> <a class="code" href="classclang_1_1ASTUnit.html#a4fcc5b0aa8c471b156f908828db1985e">~ASTUnit</a>();</div>
+<div class="line"><a name="l00439"></a><span class="lineno"> 439</span> </div>
+<div class="line"><a name="l00440"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a096e29cf5e6208b218149ef7eb715144"> 440</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#a096e29cf5e6208b218149ef7eb715144">isMainFileAST</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> MainFileIsAST; }</div>
+<div class="line"><a name="l00441"></a><span class="lineno"> 441</span> </div>
+<div class="line"><a name="l00442"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#aa41f7aeae58c308db8cb8317bf11d94d"> 442</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#aa41f7aeae58c308db8cb8317bf11d94d">isUnsafeToFree</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> UnsafeToFree; }</div>
+<div class="line"><a name="l00443"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a3d2b7f677e97fb71929f02164b1bf258"> 443</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#a3d2b7f677e97fb71929f02164b1bf258">setUnsafeToFree</a>(<span class="keywordtype">bool</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>) { UnsafeToFree = <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>; }</div>
+<div class="line"><a name="l00444"></a><span class="lineno"> 444</span> </div>
+<div class="line"><a name="l00445"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c"> 445</a></span> <span class="keyword">const</span> <a class="code" href="classclang_1_1DiagnosticsEngine.html" title="Concrete class used by the front-end to report problems and issues.">DiagnosticsEngine</a> &<a class="code" href="classclang_1_1ASTUnit.html#a7a073622b6786bdb95caaec2efd5fe0c">getDiagnostics</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *Diagnostics; }</div>
+<div class="line"><a name="l00446"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#adc9d067a74d0103e9eb15c5d582421bd"> 446</a></span> <a class="code" href="classclang_1_1DiagnosticsEngine.html" title="Concrete class used by the front-end to report problems and issues.">DiagnosticsEngine</a> &<a class="code" href="classclang_1_1ASTUnit.html#adc9d067a74d0103e9eb15c5d582421bd">getDiagnostics</a>() { <span class="keywordflow">return</span> *Diagnostics; }</div>
+<div class="line"><a name="l00447"></a><span class="lineno"> 447</span> </div>
+<div class="line"><a name="l00448"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ac04280e780aac7894aa93e2cdda3469a"> 448</a></span> <span class="keyword">const</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &<a class="code" href="classclang_1_1ASTUnit.html#ac04280e780aac7894aa93e2cdda3469a">getSourceManager</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *<a class="code" href="Format_8cpp.html#a8b28f9f83ac8256fbde7e45b0f874f27">SourceMgr</a>; }</div>
+<div class="line"><a name="l00449"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a9c702da3ce070c696e012c2f53654186"> 449</a></span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &<a class="code" href="classclang_1_1ASTUnit.html#a9c702da3ce070c696e012c2f53654186">getSourceManager</a>() { <span class="keywordflow">return</span> *<a class="code" href="Format_8cpp.html#a8b28f9f83ac8256fbde7e45b0f874f27">SourceMgr</a>; }</div>
+<div class="line"><a name="l00450"></a><span class="lineno"> 450</span> </div>
+<div class="line"><a name="l00451"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#adec94169acb7c39f9b29072e527f2c6d"> 451</a></span> <span class="keyword">const</span> <a class="code" href="classclang_1_1Preprocessor.html">Preprocessor</a> &<a class="code" href="classclang_1_1ASTUnit.html#adec94169acb7c39f9b29072e527f2c6d">getPreprocessor</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *PP; }</div>
+<div class="line"><a name="l00452"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a3c10468bf59e4404d444cea358ad80df"> 452</a></span> <a class="code" href="classclang_1_1Preprocessor.html">Preprocessor</a> &<a class="code" href="classclang_1_1ASTUnit.html#a3c10468bf59e4404d444cea358ad80df">getPreprocessor</a>() { <span class="keywordflow">return</span> *PP; }</div>
+<div class="line"><a name="l00453"></a><span class="lineno"> 453</span> </div>
+<div class="line"><a name="l00454"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a28cc35bdcdfd434ee5f0a16c1ab2f87e"> 454</a></span> <span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &<a class="code" href="classclang_1_1ASTUnit.html#a28cc35bdcdfd434ee5f0a16c1ab2f87e">getASTContext</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *Ctx; }</div>
+<div class="line"><a name="l00455"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ae12e635588584bfd34e633f8ef9a34f5"> 455</a></span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &<a class="code" href="classclang_1_1ASTUnit.html#ae12e635588584bfd34e633f8ef9a34f5">getASTContext</a>() { <span class="keywordflow">return</span> *Ctx; }</div>
+<div class="line"><a name="l00456"></a><span class="lineno"> 456</span> </div>
+<div class="line"><a name="l00457"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ac4a00d901877c1a7bb563dc82c52db00"> 457</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#ac4a00d901877c1a7bb563dc82c52db00">setASTContext</a>(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> *ctx) { Ctx = ctx; }</div>
+<div class="line"><a name="l00458"></a><span class="lineno"> 458</span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#af6f9e11cb225ab51e2c713b16b0a113c">setPreprocessor</a>(<a class="code" href="classclang_1_1Preprocessor.html">Preprocessor</a> *pp);</div>
+<div class="line"><a name="l00459"></a><span class="lineno"> 459</span> </div>
+<div class="line"><a name="l00460"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a315a9c1bda03f0d532e94a641ae04bca"> 460</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#a315a9c1bda03f0d532e94a641ae04bca">hasSema</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> TheSema.isValid(); }</div>
+<div class="line"><a name="l00461"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a8d27a3cab7f5b873efab08cd50c56399"> 461</a></span> <a class="code" href="classclang_1_1Sema.html" title="Sema - This implements semantic analysis and AST building for C.">Sema</a> &<a class="code" href="classclang_1_1ASTUnit.html#a8d27a3cab7f5b873efab08cd50c56399">getSema</a>()<span class="keyword"> const </span>{ </div>
+<div class="line"><a name="l00462"></a><span class="lineno"> 462</span> assert(TheSema && <span class="stringliteral">"ASTUnit does not have a Sema object!"</span>);</div>
+<div class="line"><a name="l00463"></a><span class="lineno"> 463</span> <span class="keywordflow">return</span> *TheSema; </div>
+<div class="line"><a name="l00464"></a><span class="lineno"> 464</span> }</div>
+<div class="line"><a name="l00465"></a><span class="lineno"> 465</span> </div>
+<div class="line"><a name="l00466"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a909401bc1781efef503af81509be57c7"> 466</a></span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FileManager.html" title="Implements support for file system lookup, file system caching, and directory search management...">FileManager</a> &<a class="code" href="classclang_1_1ASTUnit.html#a909401bc1781efef503af81509be57c7">getFileManager</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *FileMgr; }</div>
+<div class="line"><a name="l00467"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a34b7210d03d0460475f4097ecb7d8687"> 467</a></span> <a class="code" href="classclang_1_1FileManager.html" title="Implements support for file system lookup, file system caching, and directory search management...">FileManager</a> &<a class="code" href="classclang_1_1ASTUnit.html#a34b7210d03d0460475f4097ecb7d8687">getFileManager</a>() { <span class="keywordflow">return</span> *FileMgr; }</div>
+<div class="line"><a name="l00468"></a><span class="lineno"> 468</span> </div>
+<div class="line"><a name="l00469"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a2c237879406b83ad39d6b0431af29cfa"> 469</a></span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FileSystemOptions.html" title="Keeps track of options that affect how file operations are performed.">FileSystemOptions</a> &<a class="code" href="classclang_1_1ASTUnit.html#a2c237879406b83ad39d6b0431af29cfa">getFileSystemOpts</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> FileSystemOpts; }</div>
+<div class="line"><a name="l00470"></a><span class="lineno"> 470</span> </div>
+<div class="line"><a name="l00471"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ae1577e78dfc252ce4f4f3edbdc656262"> 471</a></span> StringRef <a class="code" href="classclang_1_1ASTUnit.html#ae1577e78dfc252ce4f4f3edbdc656262">getOriginalSourceFileName</a>() {</div>
+<div class="line"><a name="l00472"></a><span class="lineno"> 472</span> <span class="keywordflow">return</span> OriginalSourceFile;</div>
+<div class="line"><a name="l00473"></a><span class="lineno"> 473</span> }</div>
+<div class="line"><a name="l00474"></a><span class="lineno"> 474</span> </div>
+<div class="line"><a name="l00475"></a><span class="lineno"> 475</span> <a class="code" href="classclang_1_1ASTMutationListener.html" title="An abstract interface that should be implemented by listeners that want to be notified when an AST en...">ASTMutationListener</a> *<a class="code" href="classclang_1_1ASTUnit.html#ab587c68c2ff4042bd52ebe2c1b375793">getASTMutationListener</a>();</div>
+<div class="line"><a name="l00476"></a><span class="lineno"> 476</span> <a class="code" href="classclang_1_1ASTDeserializationListener.html">ASTDeserializationListener</a> *<a class="code" href="classclang_1_1ASTUnit.html#a2c9b2b834177803923dc01ccfebea34b">getDeserializationListener</a>();</div>
+<div class="line"><a name="l00477"></a><span class="lineno"> 477</span> <span class="comment"></span></div>
+<div class="line"><a name="l00478"></a><span class="lineno"> 478</span> <span class="comment"> /// \brief Add a temporary file that the ASTUnit depends on.</span></div>
+<div class="line"><a name="l00479"></a><span class="lineno"> 479</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00480"></a><span class="lineno"> 480</span> <span class="comment"> /// This file will be erased when the ASTUnit is destroyed.</span></div>
+<div class="line"><a name="l00481"></a><span class="lineno"> 481</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#a1dad52daa7c68cc2998c033322fc8c91" title="Add a temporary file that the ASTUnit depends on.">addTemporaryFile</a>(StringRef TempFile);</div>
+<div class="line"><a name="l00482"></a><span class="lineno"> 482</span> </div>
+<div class="line"><a name="l00483"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#af446435026313a4f084e73810fa0ef90"> 483</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#af446435026313a4f084e73810fa0ef90">getOnlyLocalDecls</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> OnlyLocalDecls; }</div>
+<div class="line"><a name="l00484"></a><span class="lineno"> 484</span> </div>
+<div class="line"><a name="l00485"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#afdf149490e6efb53016ebbf528dc0703"> 485</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#afdf149490e6efb53016ebbf528dc0703">getOwnsRemappedFileBuffers</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> OwnsRemappedFileBuffers; }</div>
+<div class="line"><a name="l00486"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a111a0eabcce2f185f5b29b9ff45ddc2c"> 486</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#a111a0eabcce2f185f5b29b9ff45ddc2c">setOwnsRemappedFileBuffers</a>(<span class="keywordtype">bool</span> val) { OwnsRemappedFileBuffers = val; }</div>
+<div class="line"><a name="l00487"></a><span class="lineno"> 487</span> </div>
+<div class="line"><a name="l00488"></a><span class="lineno"> 488</span> StringRef <a class="code" href="classclang_1_1ASTUnit.html#a08b10e4e3224f0bd5ff1a5e3dd58aa6c">getMainFileName</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00489"></a><span class="lineno"> 489</span> <span class="comment"></span></div>
+<div class="line"><a name="l00490"></a><span class="lineno"> 490</span> <span class="comment"> /// \brief If this ASTUnit came from an AST file, returns the filename for it.</span></div>
+<div class="line"><a name="l00491"></a><span class="lineno"> 491</span> <span class="comment"></span> StringRef <a class="code" href="classclang_1_1ASTUnit.html#a4e0f0736ace0410d76bd125d400fc52d" title="If this ASTUnit came from an AST file, returns the filename for it.">getASTFileName</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00492"></a><span class="lineno"> 492</span> </div>
+<div class="line"><a name="l00493"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#af873ac7dff72cdaffd8137f3bf389aed"> 493</a></span> <span class="keyword">typedef</span> std::vector<Decl *>::iterator <a class="code" href="classclang_1_1ASTUnit.html#af873ac7dff72cdaffd8137f3bf389aed">top_level_iterator</a>;</div>
+<div class="line"><a name="l00494"></a><span class="lineno"> 494</span> </div>
+<div class="line"><a name="l00495"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ab48aae35ccc89757f372201b1508e5ab"> 495</a></span> <a class="code" href="classclang_1_1ASTUnit.html#af873ac7dff72cdaffd8137f3bf389aed">top_level_iterator</a> <a class="code" href="classclang_1_1ASTUnit.html#ab48aae35ccc89757f372201b1508e5ab">top_level_begin</a>() {</div>
+<div class="line"><a name="l00496"></a><span class="lineno"> 496</span> assert(!<a class="code" href="classclang_1_1ASTUnit.html#a096e29cf5e6208b218149ef7eb715144">isMainFileAST</a>() && <span class="stringliteral">"Invalid call for AST based ASTUnit!"</span>);</div>
+<div class="line"><a name="l00497"></a><span class="lineno"> 497</span> <span class="keywordflow">if</span> (!TopLevelDeclsInPreamble.empty())</div>
+<div class="line"><a name="l00498"></a><span class="lineno"> 498</span> RealizeTopLevelDeclsFromPreamble();</div>
+<div class="line"><a name="l00499"></a><span class="lineno"> 499</span> <span class="keywordflow">return</span> TopLevelDecls.begin();</div>
+<div class="line"><a name="l00500"></a><span class="lineno"> 500</span> }</div>
+<div class="line"><a name="l00501"></a><span class="lineno"> 501</span> </div>
+<div class="line"><a name="l00502"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a9545b5b7adc116c3372a941e5f3f23e8"> 502</a></span> <a class="code" href="classclang_1_1ASTUnit.html#af873ac7dff72cdaffd8137f3bf389aed">top_level_iterator</a> <a class="code" href="classclang_1_1ASTUnit.html#a9545b5b7adc116c3372a941e5f3f23e8">top_level_end</a>() {</div>
+<div class="line"><a name="l00503"></a><span class="lineno"> 503</span> assert(!<a class="code" href="classclang_1_1ASTUnit.html#a096e29cf5e6208b218149ef7eb715144">isMainFileAST</a>() && <span class="stringliteral">"Invalid call for AST based ASTUnit!"</span>);</div>
+<div class="line"><a name="l00504"></a><span class="lineno"> 504</span> <span class="keywordflow">if</span> (!TopLevelDeclsInPreamble.empty())</div>
+<div class="line"><a name="l00505"></a><span class="lineno"> 505</span> RealizeTopLevelDeclsFromPreamble();</div>
+<div class="line"><a name="l00506"></a><span class="lineno"> 506</span> <span class="keywordflow">return</span> TopLevelDecls.end();</div>
+<div class="line"><a name="l00507"></a><span class="lineno"> 507</span> }</div>
+<div class="line"><a name="l00508"></a><span class="lineno"> 508</span> </div>
+<div class="line"><a name="l00509"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ad3002ef138552ac4f5b517959695b759"> 509</a></span> <a class="code" href="stddef_8h.html#aa9d55e2f20e580b7445617d0d12fff6e">std::size_t</a> <a class="code" href="classclang_1_1ASTUnit.html#ad3002ef138552ac4f5b517959695b759">top_level_size</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00510"></a><span class="lineno"> 510</span> assert(!<a class="code" href="classclang_1_1ASTUnit.html#a096e29cf5e6208b218149ef7eb715144">isMainFileAST</a>() && <span class="stringliteral">"Invalid call for AST based ASTUnit!"</span>);</div>
+<div class="line"><a name="l00511"></a><span class="lineno"> 511</span> <span class="keywordflow">return</span> TopLevelDeclsInPreamble.size() + TopLevelDecls.size();</div>
+<div class="line"><a name="l00512"></a><span class="lineno"> 512</span> }</div>
+<div class="line"><a name="l00513"></a><span class="lineno"> 513</span> </div>
+<div class="line"><a name="l00514"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a3e98c6508f533967c36f154d80049e7e"> 514</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#a3e98c6508f533967c36f154d80049e7e">top_level_empty</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00515"></a><span class="lineno"> 515</span> assert(!<a class="code" href="classclang_1_1ASTUnit.html#a096e29cf5e6208b218149ef7eb715144">isMainFileAST</a>() && <span class="stringliteral">"Invalid call for AST based ASTUnit!"</span>);</div>
+<div class="line"><a name="l00516"></a><span class="lineno"> 516</span> <span class="keywordflow">return</span> TopLevelDeclsInPreamble.empty() && TopLevelDecls.empty();</div>
+<div class="line"><a name="l00517"></a><span class="lineno"> 517</span> }</div>
+<div class="line"><a name="l00518"></a><span class="lineno"> 518</span> <span class="comment"></span></div>
+<div class="line"><a name="l00519"></a><span class="lineno"> 519</span> <span class="comment"> /// \brief Add a new top-level declaration.</span></div>
+<div class="line"><a name="l00520"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ae749b49bee07e3368e86cecdafb76baf"> 520</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#ae749b49bee07e3368e86cecdafb76baf" title="Add a new top-level declaration.">addTopLevelDecl</a>(<a class="code" href="classclang_1_1Decl.html">Decl</a> *D) {</div>
+<div class="line"><a name="l00521"></a><span class="lineno"> 521</span> TopLevelDecls.push_back(D);</div>
+<div class="line"><a name="l00522"></a><span class="lineno"> 522</span> }</div>
+<div class="line"><a name="l00523"></a><span class="lineno"> 523</span> <span class="comment"></span></div>
+<div class="line"><a name="l00524"></a><span class="lineno"> 524</span> <span class="comment"> /// \brief Add a new local file-level declaration.</span></div>
+<div class="line"><a name="l00525"></a><span class="lineno"> 525</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#a0651d6027d8c640efcf14ccb857d0956" title="Add a new local file-level declaration.">addFileLevelDecl</a>(<a class="code" href="classclang_1_1Decl.html">Decl</a> *D);</div>
+<div class="line"><a name="l00526"></a><span class="lineno"> 526</span> <span class="comment"></span></div>
+<div class="line"><a name="l00527"></a><span class="lineno"> 527</span> <span class="comment"> /// \brief Get the decls that are contained in a file in the Offset/Length</span></div>
+<div class="line"><a name="l00528"></a><span class="lineno"> 528</span> <span class="comment"> /// range. \p Length can be 0 to indicate a point at \p Offset instead of</span></div>
+<div class="line"><a name="l00529"></a><span class="lineno"> 529</span> <span class="comment"> /// a range. </span></div>
+<div class="line"><a name="l00530"></a><span class="lineno"> 530</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#aef7a5e5342a9e9506fb2407bf1b2d3a6" title="Get the decls that are contained in a file in the Offset/Length range. Length can be 0 to indicate a ...">findFileRegionDecls</a>(<a class="code" href="classclang_1_1FileID.html" title="An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...">FileID</a> File, <span class="keywordtype">unsigned</span> <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>, <span class="keywordtype">unsigned</span> Length,</div>
+<div class="line"><a name="l00531"></a><span class="lineno"> 531</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<Decl *></a> &Decls);</div>
+<div class="line"><a name="l00532"></a><span class="lineno"> 532</span> <span class="comment"></span></div>
+<div class="line"><a name="l00533"></a><span class="lineno"> 533</span> <span class="comment"> /// \brief Add a new top-level declaration, identified by its ID in</span></div>
+<div class="line"><a name="l00534"></a><span class="lineno"> 534</span> <span class="comment"> /// the precompiled preamble.</span></div>
+<div class="line"><a name="l00535"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#af33886ca856c5dae113bdbddde24e399"> 535</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#af33886ca856c5dae113bdbddde24e399" title="Add a new top-level declaration, identified by its ID in the precompiled preamble.">addTopLevelDeclFromPreamble</a>(<a class="code" href="namespaceclang_1_1serialization.html#af3f9c681595246da4bb499bd210e7f36" title="An ID number that refers to a declaration in an AST file.">serialization::DeclID</a> D) {</div>
+<div class="line"><a name="l00536"></a><span class="lineno"> 536</span> TopLevelDeclsInPreamble.push_back(D);</div>
+<div class="line"><a name="l00537"></a><span class="lineno"> 537</span> }</div>
+<div class="line"><a name="l00538"></a><span class="lineno"> 538</span> <span class="comment"></span></div>
+<div class="line"><a name="l00539"></a><span class="lineno"> 539</span> <span class="comment"> /// \brief Retrieve a reference to the current top-level name hash value.</span></div>
+<div class="line"><a name="l00540"></a><span class="lineno"> 540</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00541"></a><span class="lineno"> 541</span> <span class="comment"> /// Note: This is used internally by the top-level tracking action</span></div>
+<div class="line"><a name="l00542"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a77894d8e68e5dda9990130035cd39957"> 542</a></span> <span class="comment"></span> <span class="keywordtype">unsigned</span> &<a class="code" href="classclang_1_1ASTUnit.html#a77894d8e68e5dda9990130035cd39957" title="Retrieve a reference to the current top-level name hash value.">getCurrentTopLevelHashValue</a>() { <span class="keywordflow">return</span> CurrentTopLevelHashValue; }</div>
+<div class="line"><a name="l00543"></a><span class="lineno"> 543</span> <span class="comment"></span></div>
+<div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="comment"> /// \brief Get the source location for the given file:line:col triplet.</span></div>
+<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00546"></a><span class="lineno"> 546</span> <span class="comment"> /// The difference with SourceManager::getLocation is that this method checks</span></div>
+<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> <span class="comment"> /// whether the requested location points inside the precompiled preamble</span></div>
+<div class="line"><a name="l00548"></a><span class="lineno"> 548</span> <span class="comment"> /// in which case the returned source location will be a "loaded" one.</span></div>
+<div class="line"><a name="l00549"></a><span class="lineno"> 549</span> <span class="comment"></span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#aa6f2acb33a53d0964ab7ea64e1fd212b" title="Get the source location for the given file:line:col triplet.">getLocation</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *File,</div>
+<div class="line"><a name="l00550"></a><span class="lineno"> 550</span> <span class="keywordtype">unsigned</span> <a class="code" href="TokenAnnotator_8cpp.html#a0d95c6acfc477accd6ff1b1ca93c82cc">Line</a>, <span class="keywordtype">unsigned</span> Col) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00551"></a><span class="lineno"> 551</span> <span class="comment"></span></div>
+<div class="line"><a name="l00552"></a><span class="lineno"> 552</span> <span class="comment"> /// \brief Get the source location for the given file:offset pair.</span></div>
+<div class="line"><a name="l00553"></a><span class="lineno"> 553</span> <span class="comment"></span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#aa6f2acb33a53d0964ab7ea64e1fd212b" title="Get the source location for the given file:line:col triplet.">getLocation</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *File, <span class="keywordtype">unsigned</span> <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00554"></a><span class="lineno"> 554</span> <span class="comment"></span></div>
+<div class="line"><a name="l00555"></a><span class="lineno"> 555</span> <span class="comment"> /// \brief If \p Loc is a loaded location from the preamble, returns</span></div>
+<div class="line"><a name="l00556"></a><span class="lineno"> 556</span> <span class="comment"> /// the corresponding local location of the main file, otherwise it returns</span></div>
+<div class="line"><a name="l00557"></a><span class="lineno"> 557</span> <span class="comment"> /// \p Loc.</span></div>
+<div class="line"><a name="l00558"></a><span class="lineno"> 558</span> <span class="comment"></span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#ae8720ef2f38cd71fbc317760cae9e5f0" title="If Loc is a loaded location from the preamble, returns the corresponding local location of the main f...">mapLocationFromPreamble</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc);</div>
+<div class="line"><a name="l00559"></a><span class="lineno"> 559</span> <span class="comment"></span></div>
+<div class="line"><a name="l00560"></a><span class="lineno"> 560</span> <span class="comment"> /// \brief If \p Loc is a local location of the main file but inside the</span></div>
+<div class="line"><a name="l00561"></a><span class="lineno"> 561</span> <span class="comment"> /// preamble chunk, returns the corresponding loaded location from the</span></div>
+<div class="line"><a name="l00562"></a><span class="lineno"> 562</span> <span class="comment"> /// preamble, otherwise it returns \p Loc.</span></div>
+<div class="line"><a name="l00563"></a><span class="lineno"> 563</span> <span class="comment"></span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#adae41906c1e9d29b27f162326d25e79f" title="If Loc is a local location of the main file but inside the preamble chunk, returns the corresponding ...">mapLocationToPreamble</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc);</div>
+<div class="line"><a name="l00564"></a><span class="lineno"> 564</span> </div>
+<div class="line"><a name="l00565"></a><span class="lineno"> 565</span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#a66a84c83ac8cb73b8e2b1385ec85303d">isInPreambleFileID</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc);</div>
+<div class="line"><a name="l00566"></a><span class="lineno"> 566</span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#abb079a3fc31e1a1c4d8df9f04d8abb6c">isInMainFileID</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc);</div>
+<div class="line"><a name="l00567"></a><span class="lineno"> 567</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#a0e1deea2bdb93466ad8a4eab9717dd22">getStartOfMainFileID</a>();</div>
+<div class="line"><a name="l00568"></a><span class="lineno"> 568</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="classclang_1_1ASTUnit.html#a4bd3b57548cf93183b31b1f1a771730e">getEndOfPreambleFileID</a>();</div>
+<div class="line"><a name="l00569"></a><span class="lineno"> 569</span> <span class="comment"></span></div>
+<div class="line"><a name="l00570"></a><span class="lineno"> 570</span> <span class="comment"> /// \see mapLocationFromPreamble.</span></div>
+<div class="line"><a name="l00571"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#aec5b82798f8e0e8b33eb699a7eb1c4b9"> 571</a></span> <span class="comment"></span> <a class="code" href="classclang_1_1SourceRange.html" title="A trival tuple used to represent a source range.">SourceRange</a> <a class="code" href="classclang_1_1ASTUnit.html#aec5b82798f8e0e8b33eb699a7eb1c4b9">mapRangeFromPreamble</a>(<a class="code" href="classclang_1_1SourceRange.html" title="A trival tuple used to represent a source range.">SourceRange</a> R) {</div>
+<div class="line"><a name="l00572"></a><span class="lineno"> 572</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1SourceRange.html" title="A trival tuple used to represent a source range.">SourceRange</a>(<a class="code" href="classclang_1_1ASTUnit.html#ae8720ef2f38cd71fbc317760cae9e5f0" title="If Loc is a loaded location from the preamble, returns the corresponding local location of the main f...">mapLocationFromPreamble</a>(R.<a class="code" href="classclang_1_1SourceRange.html#a890dff14560eb9aceb08be18dfe74208">getBegin</a>()),</div>
+<div class="line"><a name="l00573"></a><span class="lineno"> 573</span> <a class="code" href="classclang_1_1ASTUnit.html#ae8720ef2f38cd71fbc317760cae9e5f0" title="If Loc is a loaded location from the preamble, returns the corresponding local location of the main f...">mapLocationFromPreamble</a>(R.<a class="code" href="classclang_1_1SourceRange.html#a982d28235ad96ce81b3e8144b7b245c0">getEnd</a>()));</div>
+<div class="line"><a name="l00574"></a><span class="lineno"> 574</span> }</div>
+<div class="line"><a name="l00575"></a><span class="lineno"> 575</span> <span class="comment"></span></div>
+<div class="line"><a name="l00576"></a><span class="lineno"> 576</span> <span class="comment"> /// \see mapLocationToPreamble.</span></div>
+<div class="line"><a name="l00577"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#aa5c8e6b0383a62d07ddebc0c95c71814"> 577</a></span> <span class="comment"></span> <a class="code" href="classclang_1_1SourceRange.html" title="A trival tuple used to represent a source range.">SourceRange</a> <a class="code" href="classclang_1_1ASTUnit.html#aa5c8e6b0383a62d07ddebc0c95c71814">mapRangeToPreamble</a>(<a class="code" href="classclang_1_1SourceRange.html" title="A trival tuple used to represent a source range.">SourceRange</a> R) {</div>
+<div class="line"><a name="l00578"></a><span class="lineno"> 578</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1SourceRange.html" title="A trival tuple used to represent a source range.">SourceRange</a>(<a class="code" href="classclang_1_1ASTUnit.html#adae41906c1e9d29b27f162326d25e79f" title="If Loc is a local location of the main file but inside the preamble chunk, returns the corresponding ...">mapLocationToPreamble</a>(R.<a class="code" href="classclang_1_1SourceRange.html#a890dff14560eb9aceb08be18dfe74208">getBegin</a>()),</div>
+<div class="line"><a name="l00579"></a><span class="lineno"> 579</span> <a class="code" href="classclang_1_1ASTUnit.html#adae41906c1e9d29b27f162326d25e79f" title="If Loc is a local location of the main file but inside the preamble chunk, returns the corresponding ...">mapLocationToPreamble</a>(R.<a class="code" href="classclang_1_1SourceRange.html#a982d28235ad96ce81b3e8144b7b245c0">getEnd</a>()));</div>
+<div class="line"><a name="l00580"></a><span class="lineno"> 580</span> }</div>
+<div class="line"><a name="l00581"></a><span class="lineno"> 581</span> </div>
+<div class="line"><a name="l00582"></a><span class="lineno"> 582</span> <span class="comment">// Retrieve the diagnostics associated with this AST</span></div>
+<div class="line"><a name="l00583"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#aa90e50689ee86809e9b8fe13132e6e1e"> 583</a></span> <span class="keyword">typedef</span> <a class="code" href="classclang_1_1StoredDiagnostic.html" title="Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...">StoredDiagnostic</a> *<a class="code" href="classclang_1_1ASTUnit.html#aa90e50689ee86809e9b8fe13132e6e1e">stored_diag_iterator</a>;</div>
+<div class="line"><a name="l00584"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ae1d8dc53743b36ab58e2f6f851f6ee3b"> 584</a></span> <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1StoredDiagnostic.html" title="Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...">StoredDiagnostic</a> *<a class="code" href="classclang_1_1ASTUnit.html#ae1d8dc53743b36ab58e2f6f851f6ee3b">stored_diag_const_iterator</a>;</div>
+<div class="line"><a name="l00585"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a0e1ab5a4eeeb7c16f64352c9fca9e1a8"> 585</a></span> <a class="code" href="classclang_1_1StoredDiagnostic.html" title="Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...">stored_diag_const_iterator</a> <a class="code" href="classclang_1_1ASTUnit.html#a0e1ab5a4eeeb7c16f64352c9fca9e1a8">stored_diag_begin</a>()<span class="keyword"> const </span>{ </div>
+<div class="line"><a name="l00586"></a><span class="lineno"> 586</span> <span class="keywordflow">return</span> StoredDiagnostics.begin(); </div>
+<div class="line"><a name="l00587"></a><span class="lineno"> 587</span> }</div>
+<div class="line"><a name="l00588"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#abb4b42a182bfca437e8bb16966f8d52c"> 588</a></span> <a class="code" href="classclang_1_1StoredDiagnostic.html" title="Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...">stored_diag_iterator</a> <a class="code" href="classclang_1_1ASTUnit.html#abb4b42a182bfca437e8bb16966f8d52c">stored_diag_begin</a>() { </div>
+<div class="line"><a name="l00589"></a><span class="lineno"> 589</span> <span class="keywordflow">return</span> StoredDiagnostics.begin(); </div>
+<div class="line"><a name="l00590"></a><span class="lineno"> 590</span> }</div>
+<div class="line"><a name="l00591"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ad85efd4d173bf8675473be8fe04aca0f"> 591</a></span> <a class="code" href="classclang_1_1StoredDiagnostic.html" title="Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...">stored_diag_const_iterator</a> <a class="code" href="classclang_1_1ASTUnit.html#ad85efd4d173bf8675473be8fe04aca0f">stored_diag_end</a>()<span class="keyword"> const </span>{ </div>
+<div class="line"><a name="l00592"></a><span class="lineno"> 592</span> <span class="keywordflow">return</span> StoredDiagnostics.end(); </div>
+<div class="line"><a name="l00593"></a><span class="lineno"> 593</span> }</div>
+<div class="line"><a name="l00594"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a0638a64a697860ed738b0c7e156a682a"> 594</a></span> <a class="code" href="classclang_1_1StoredDiagnostic.html" title="Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...">stored_diag_iterator</a> <a class="code" href="classclang_1_1ASTUnit.html#a0638a64a697860ed738b0c7e156a682a">stored_diag_end</a>() { </div>
+<div class="line"><a name="l00595"></a><span class="lineno"> 595</span> <span class="keywordflow">return</span> StoredDiagnostics.end(); </div>
+<div class="line"><a name="l00596"></a><span class="lineno"> 596</span> }</div>
+<div class="line"><a name="l00597"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a478b1bb1ec3e917501abe5bf97cb6b40"> 597</a></span> <span class="keywordtype">unsigned</span> <a class="code" href="classclang_1_1ASTUnit.html#a478b1bb1ec3e917501abe5bf97cb6b40">stored_diag_size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> StoredDiagnostics.size(); }</div>
+<div class="line"><a name="l00598"></a><span class="lineno"> 598</span> </div>
+<div class="line"><a name="l00599"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a8d8c378053956405bab09bf519b75517"> 599</a></span> <a class="code" href="classclang_1_1StoredDiagnostic.html" title="Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...">stored_diag_iterator</a> <a class="code" href="classclang_1_1ASTUnit.html#a8d8c378053956405bab09bf519b75517">stored_diag_afterDriver_begin</a>() {</div>
+<div class="line"><a name="l00600"></a><span class="lineno"> 600</span> <span class="keywordflow">if</span> (NumStoredDiagnosticsFromDriver > StoredDiagnostics.size())</div>
+<div class="line"><a name="l00601"></a><span class="lineno"> 601</span> NumStoredDiagnosticsFromDriver = 0;</div>
+<div class="line"><a name="l00602"></a><span class="lineno"> 602</span> <span class="keywordflow">return</span> StoredDiagnostics.begin() + NumStoredDiagnosticsFromDriver; </div>
+<div class="line"><a name="l00603"></a><span class="lineno"> 603</span> }</div>
+<div class="line"><a name="l00604"></a><span class="lineno"> 604</span> </div>
+<div class="line"><a name="l00605"></a><span class="lineno"> 605</span> <span class="keyword">typedef</span> std::vector<CachedCodeCompletionResult>::iterator</div>
+<div class="line"><a name="l00606"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ab3079f97489459e1650adf6b1323118e"> 606</a></span> <a class="code" href="classclang_1_1ASTUnit.html#ab3079f97489459e1650adf6b1323118e">cached_completion_iterator</a>;</div>
+<div class="line"><a name="l00607"></a><span class="lineno"> 607</span> </div>
+<div class="line"><a name="l00608"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a6f0e75b26d6019f4cfbe8aa21ab7bc97"> 608</a></span> <a class="code" href="classclang_1_1ASTUnit.html#ab3079f97489459e1650adf6b1323118e">cached_completion_iterator</a> <a class="code" href="classclang_1_1ASTUnit.html#a6f0e75b26d6019f4cfbe8aa21ab7bc97">cached_completion_begin</a>() {</div>
+<div class="line"><a name="l00609"></a><span class="lineno"> 609</span> <span class="keywordflow">return</span> CachedCompletionResults.begin();</div>
+<div class="line"><a name="l00610"></a><span class="lineno"> 610</span> }</div>
+<div class="line"><a name="l00611"></a><span class="lineno"> 611</span> </div>
+<div class="line"><a name="l00612"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a19d706921e772292a34dc57ef5fbedaf"> 612</a></span> <a class="code" href="classclang_1_1ASTUnit.html#ab3079f97489459e1650adf6b1323118e">cached_completion_iterator</a> <a class="code" href="classclang_1_1ASTUnit.html#a19d706921e772292a34dc57ef5fbedaf">cached_completion_end</a>() {</div>
+<div class="line"><a name="l00613"></a><span class="lineno"> 613</span> <span class="keywordflow">return</span> CachedCompletionResults.end();</div>
+<div class="line"><a name="l00614"></a><span class="lineno"> 614</span> }</div>
+<div class="line"><a name="l00615"></a><span class="lineno"> 615</span> </div>
+<div class="line"><a name="l00616"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ab426f8525899747a196e547cbea835f0"> 616</a></span> <span class="keywordtype">unsigned</span> <a class="code" href="classclang_1_1ASTUnit.html#ab426f8525899747a196e547cbea835f0">cached_completion_size</a>()<span class="keyword"> const </span>{ </div>
+<div class="line"><a name="l00617"></a><span class="lineno"> 617</span> <span class="keywordflow">return</span> CachedCompletionResults.size(); </div>
+<div class="line"><a name="l00618"></a><span class="lineno"> 618</span> }</div>
+<div class="line"><a name="l00619"></a><span class="lineno"> 619</span> <span class="comment"></span></div>
+<div class="line"><a name="l00620"></a><span class="lineno"> 620</span> <span class="comment"> /// \brief Returns an iterator range for the local preprocessing entities</span></div>
+<div class="line"><a name="l00621"></a><span class="lineno"> 621</span> <span class="comment"> /// of the local Preprocessor, if this is a parsed source file, or the loaded</span></div>
+<div class="line"><a name="l00622"></a><span class="lineno"> 622</span> <span class="comment"> /// preprocessing entities of the primary module if this is an AST file.</span></div>
+<div class="line"><a name="l00623"></a><span class="lineno"> 623</span> <span class="comment"></span> std::pair<PreprocessingRecord::iterator, PreprocessingRecord::iterator></div>
+<div class="line"><a name="l00624"></a><span class="lineno"> 624</span> <a class="code" href="classclang_1_1ASTUnit.html#aaa7689a05dcb28317588835f580757eb" title="Returns an iterator range for the local preprocessing entities of the local Preprocessor, if this is a parsed source file, or the loaded preprocessing entities of the primary module if this is an AST file.">getLocalPreprocessingEntities</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00625"></a><span class="lineno"> 625</span> <span class="comment"></span></div>
+<div class="line"><a name="l00626"></a><span class="lineno"> 626</span> <span class="comment"> /// \brief Type for a function iterating over a number of declarations.</span></div>
+<div class="line"><a name="l00627"></a><span class="lineno"> 627</span> <span class="comment"> /// \returns true to continue iteration and false to abort.</span></div>
+<div class="line"><a name="l00628"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#afadab3467f70abf07b516bdded856721"> 628</a></span> <span class="comment"></span> <span class="keyword">typedef</span> <a class="code" href="stdbool_8h.html#abb452686968e48b67397da5f97445f5b">bool</a> (*<a class="code" href="classclang_1_1ASTUnit.html#afadab3467f70abf07b516bdded856721" title="Type for a function iterating over a number of declarations.">DeclVisitorFn</a>)(<span class="keywordtype">void</span> *context, <span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D);</div>
+<div class="line"><a name="l00629"></a><span class="lineno"> 629</span> <span class="comment"></span></div>
+<div class="line"><a name="l00630"></a><span class="lineno"> 630</span> <span class="comment"> /// \brief Iterate over local declarations (locally parsed if this is a parsed</span></div>
+<div class="line"><a name="l00631"></a><span class="lineno"> 631</span> <span class="comment"> /// source file or the loaded declarations of the primary module if this is an</span></div>
+<div class="line"><a name="l00632"></a><span class="lineno"> 632</span> <span class="comment"> /// AST file).</span></div>
+<div class="line"><a name="l00633"></a><span class="lineno"> 633</span> <span class="comment"> /// \returns true if the iteration was complete or false if it was aborted.</span></div>
+<div class="line"><a name="l00634"></a><span class="lineno"> 634</span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#ab0277ee093bc34eff0b17fa7e48fc5fd" title="Iterate over local declarations (locally parsed if this is a parsed source file or the loaded declara...">visitLocalTopLevelDecls</a>(<span class="keywordtype">void</span> *context, <a class="code" href="classclang_1_1ASTUnit.html#afadab3467f70abf07b516bdded856721" title="Type for a function iterating over a number of declarations.">DeclVisitorFn</a> Fn);</div>
+<div class="line"><a name="l00635"></a><span class="lineno"> 635</span> <span class="comment"></span></div>
+<div class="line"><a name="l00636"></a><span class="lineno"> 636</span> <span class="comment"> /// \brief Get the PCH file if one was included.</span></div>
+<div class="line"><a name="l00637"></a><span class="lineno"> 637</span> <span class="comment"></span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FileEntry.html" title="Cached information about one file (either on disk or in the virtual file system).">FileEntry</a> *<a class="code" href="classclang_1_1ASTUnit.html#a86f3134d696c0fd5b311a4a4e96a99d1" title="Get the PCH file if one was included.">getPCHFile</a>();</div>
+<div class="line"><a name="l00638"></a><span class="lineno"> 638</span> <span class="comment"></span></div>
+<div class="line"><a name="l00639"></a><span class="lineno"> 639</span> <span class="comment"> /// \brief Returns true if the ASTUnit was constructed from a serialized</span></div>
+<div class="line"><a name="l00640"></a><span class="lineno"> 640</span> <span class="comment"> /// module file.</span></div>
+<div class="line"><a name="l00641"></a><span class="lineno"> 641</span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#a88e11e6fe73e28e253bbe76ba7731a11" title="Returns true if the ASTUnit was constructed from a serialized module file.">isModuleFile</a>();</div>
+<div class="line"><a name="l00642"></a><span class="lineno"> 642</span> </div>
+<div class="line"><a name="l00643"></a><span class="lineno"> 643</span> llvm::MemoryBuffer *<a class="code" href="classclang_1_1ASTUnit.html#a237bce86e574bf434e42ee419ec382f6">getBufferForFile</a>(StringRef Filename,</div>
+<div class="line"><a name="l00644"></a><span class="lineno"> 644</span> std::string *ErrorStr = 0);</div>
+<div class="line"><a name="l00645"></a><span class="lineno"> 645</span> <span class="comment"></span></div>
+<div class="line"><a name="l00646"></a><span class="lineno"> 646</span> <span class="comment"> /// \brief Determine what kind of translation unit this AST represents.</span></div>
+<div class="line"><a name="l00647"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#af601a43180c771f8c645575f9a2cc46d"> 647</a></span> <span class="comment"></span> <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21" title="Describes the kind of translation unit being processed.">TranslationUnitKind</a> <a class="code" href="classclang_1_1ASTUnit.html#af601a43180c771f8c645575f9a2cc46d" title="Determine what kind of translation unit this AST represents.">getTranslationUnitKind</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> TUKind; }</div>
+<div class="line"><a name="l00648"></a><span class="lineno"> 648</span> </div>
+<div class="line"><a name="l00649"></a><span class="lineno"> 649</span> <span class="keyword">typedef</span> llvm::PointerUnion<const char *, const llvm::MemoryBuffer *></div>
+<div class="line"><a name="l00650"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#ae83ad523bb8f9f39961398ae5e7e5687"> 650</a></span> <a class="code" href="classclang_1_1ASTUnit.html#ae83ad523bb8f9f39961398ae5e7e5687">FilenameOrMemBuf</a>;<span class="comment"></span></div>
+<div class="line"><a name="l00651"></a><span class="lineno"> 651</span> <span class="comment"> /// \brief A mapping from a file name to the memory buffer that stores the</span></div>
+<div class="line"><a name="l00652"></a><span class="lineno"> 652</span> <span class="comment"> /// remapped contents of that file.</span></div>
+<div class="line"><a name="l00653"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#af409234e858b8fcd48bcd81bd86ee9e5"> 653</a></span> <span class="comment"></span> <span class="keyword">typedef</span> std::pair<std::string, FilenameOrMemBuf> <a class="code" href="classclang_1_1ASTUnit.html#af409234e858b8fcd48bcd81bd86ee9e5" title="A mapping from a file name to the memory buffer that stores the remapped contents of that file...">RemappedFile</a>;</div>
+<div class="line"><a name="l00654"></a><span class="lineno"> 654</span> <span class="comment"></span></div>
+<div class="line"><a name="l00655"></a><span class="lineno"> 655</span> <span class="comment"> /// \brief Create a ASTUnit. Gets ownership of the passed CompilerInvocation. </span></div>
+<div class="line"><a name="l00656"></a><span class="lineno"> 656</span> <span class="comment"></span> <span class="keyword">static</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *<a class="code" href="classclang_1_1ASTUnit.html#acfffa304c392b13c3e1d78932e906331" title="Create a ASTUnit. Gets ownership of the passed CompilerInvocation.">create</a>(<a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a> *CI,</div>
+<div class="line"><a name="l00657"></a><span class="lineno"> 657</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> Diags,</div>
+<div class="line"><a name="l00658"></a><span class="lineno"> 658</span> <span class="keywordtype">bool</span> CaptureDiagnostics,</div>
+<div class="line"><a name="l00659"></a><span class="lineno"> 659</span> <span class="keywordtype">bool</span> UserFilesAreVolatile);</div>
+<div class="line"><a name="l00660"></a><span class="lineno"> 660</span> <span class="comment"></span></div>
+<div class="line"><a name="l00661"></a><span class="lineno"> 661</span> <span class="comment"> /// \brief Create a ASTUnit from an AST file.</span></div>
+<div class="line"><a name="l00662"></a><span class="lineno"> 662</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00663"></a><span class="lineno"> 663</span> <span class="comment"> /// \param Filename - The AST file to load.</span></div>
+<div class="line"><a name="l00664"></a><span class="lineno"> 664</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00665"></a><span class="lineno"> 665</span> <span class="comment"> /// \param Diags - The diagnostics engine to use for reporting errors; its</span></div>
+<div class="line"><a name="l00666"></a><span class="lineno"> 666</span> <span class="comment"> /// lifetime is expected to extend past that of the returned ASTUnit.</span></div>
+<div class="line"><a name="l00667"></a><span class="lineno"> 667</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00668"></a><span class="lineno"> 668</span> <span class="comment"> /// \returns - The initialized ASTUnit or null if the AST failed to load.</span></div>
+<div class="line"><a name="l00669"></a><span class="lineno"> 669</span> <span class="comment"></span> <span class="keyword">static</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *<a class="code" href="classclang_1_1ASTUnit.html#a990aa6455bd59a6c6f7bc39fb9e7e25d" title="Create a ASTUnit from an AST file.">LoadFromASTFile</a>(<span class="keyword">const</span> std::string &Filename,</div>
+<div class="line"><a name="l00670"></a><span class="lineno"> 670</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> Diags,</div>
+<div class="line"><a name="l00671"></a><span class="lineno"> 671</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FileSystemOptions.html" title="Keeps track of options that affect how file operations are performed.">FileSystemOptions</a> &FileSystemOpts,</div>
+<div class="line"><a name="l00672"></a><span class="lineno"> 672</span> <span class="keywordtype">bool</span> OnlyLocalDecls = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00673"></a><span class="lineno"> 673</span> <a class="code" href="classclang_1_1ASTUnit.html#af409234e858b8fcd48bcd81bd86ee9e5" title="A mapping from a file name to the memory buffer that stores the remapped contents of that file...">RemappedFile</a> *RemappedFiles = 0,</div>
+<div class="line"><a name="l00674"></a><span class="lineno"> 674</span> <span class="keywordtype">unsigned</span> NumRemappedFiles = 0,</div>
+<div class="line"><a name="l00675"></a><span class="lineno"> 675</span> <span class="keywordtype">bool</span> CaptureDiagnostics = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00676"></a><span class="lineno"> 676</span> <span class="keywordtype">bool</span> AllowPCHWithCompilerErrors = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00677"></a><span class="lineno"> 677</span> <span class="keywordtype">bool</span> UserFilesAreVolatile = <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00678"></a><span class="lineno"> 678</span> </div>
+<div class="line"><a name="l00679"></a><span class="lineno"> 679</span> <span class="keyword">private</span>:<span class="comment"></span></div>
+<div class="line"><a name="l00680"></a><span class="lineno"> 680</span> <span class="comment"> /// \brief Helper function for \c LoadFromCompilerInvocation() and</span></div>
+<div class="line"><a name="l00681"></a><span class="lineno"> 681</span> <span class="comment"> /// \c LoadFromCommandLine(), which loads an AST from a compiler invocation.</span></div>
+<div class="line"><a name="l00682"></a><span class="lineno"> 682</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00683"></a><span class="lineno"> 683</span> <span class="comment"> /// \param PrecompilePreamble Whether to precompile the preamble of this</span></div>
+<div class="line"><a name="l00684"></a><span class="lineno"> 684</span> <span class="comment"> /// translation unit, to improve the performance of reparsing.</span></div>
+<div class="line"><a name="l00685"></a><span class="lineno"> 685</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00686"></a><span class="lineno"> 686</span> <span class="comment"> /// \returns \c true if a catastrophic failure occurred (which means that the</span></div>
+<div class="line"><a name="l00687"></a><span class="lineno"> 687</span> <span class="comment"> /// \c ASTUnit itself is invalid), or \c false otherwise.</span></div>
+<div class="line"><a name="l00688"></a><span class="lineno"> 688</span> <span class="comment"></span> <span class="keywordtype">bool</span> LoadFromCompilerInvocation(<span class="keywordtype">bool</span> PrecompilePreamble);</div>
+<div class="line"><a name="l00689"></a><span class="lineno"> 689</span> </div>
+<div class="line"><a name="l00690"></a><span class="lineno"> 690</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00691"></a><span class="lineno"> 691</span> <span class="comment"></span></div>
+<div class="line"><a name="l00692"></a><span class="lineno"> 692</span> <span class="comment"> /// \brief Create an ASTUnit from a source file, via a CompilerInvocation</span></div>
+<div class="line"><a name="l00693"></a><span class="lineno"> 693</span> <span class="comment"> /// object, by invoking the optionally provided ASTFrontendAction. </span></div>
+<div class="line"><a name="l00694"></a><span class="lineno"> 694</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00695"></a><span class="lineno"> 695</span> <span class="comment"> /// \param CI - The compiler invocation to use; it must have exactly one input</span></div>
+<div class="line"><a name="l00696"></a><span class="lineno"> 696</span> <span class="comment"> /// source file. The ASTUnit takes ownership of the CompilerInvocation object.</span></div>
+<div class="line"><a name="l00697"></a><span class="lineno"> 697</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00698"></a><span class="lineno"> 698</span> <span class="comment"> /// \param Diags - The diagnostics engine to use for reporting errors; its</span></div>
+<div class="line"><a name="l00699"></a><span class="lineno"> 699</span> <span class="comment"> /// lifetime is expected to extend past that of the returned ASTUnit.</span></div>
+<div class="line"><a name="l00700"></a><span class="lineno"> 700</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00701"></a><span class="lineno"> 701</span> <span class="comment"> /// \param Action - The ASTFrontendAction to invoke. Its ownership is not</span></div>
+<div class="line"><a name="l00702"></a><span class="lineno"> 702</span> <span class="comment"> /// transferred.</span></div>
+<div class="line"><a name="l00703"></a><span class="lineno"> 703</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00704"></a><span class="lineno"> 704</span> <span class="comment"> /// \param Unit - optionally an already created ASTUnit. Its ownership is not</span></div>
+<div class="line"><a name="l00705"></a><span class="lineno"> 705</span> <span class="comment"> /// transferred.</span></div>
+<div class="line"><a name="l00706"></a><span class="lineno"> 706</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00707"></a><span class="lineno"> 707</span> <span class="comment"> /// \param Persistent - if true the returned ASTUnit will be complete.</span></div>
+<div class="line"><a name="l00708"></a><span class="lineno"> 708</span> <span class="comment"> /// false means the caller is only interested in getting info through the</span></div>
+<div class="line"><a name="l00709"></a><span class="lineno"> 709</span> <span class="comment"> /// provided \see Action.</span></div>
+<div class="line"><a name="l00710"></a><span class="lineno"> 710</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00711"></a><span class="lineno"> 711</span> <span class="comment"> /// \param ErrAST - If non-null and parsing failed without any AST to return</span></div>
+<div class="line"><a name="l00712"></a><span class="lineno"> 712</span> <span class="comment"> /// (e.g. because the PCH could not be loaded), this accepts the ASTUnit</span></div>
+<div class="line"><a name="l00713"></a><span class="lineno"> 713</span> <span class="comment"> /// mainly to allow the caller to see the diagnostics.</span></div>
+<div class="line"><a name="l00714"></a><span class="lineno"> 714</span> <span class="comment"> /// This will only receive an ASTUnit if a new one was created. If an already</span></div>
+<div class="line"><a name="l00715"></a><span class="lineno"> 715</span> <span class="comment"> /// created ASTUnit was passed in \p Unit then the caller can check that.</span></div>
+<div class="line"><a name="l00716"></a><span class="lineno"> 716</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00717"></a><span class="lineno"> 717</span> <span class="comment"></span> <span class="keyword">static</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *<a class="code" href="classclang_1_1ASTUnit.html#a4ca266e64faf4a50d678a1179d31d5b4" title="Create an ASTUnit from a source file, via a CompilerInvocation object, by invoking the optionally pro...">LoadFromCompilerInvocationAction</a>(<a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a> *CI,</div>
+<div class="line"><a name="l00718"></a><span class="lineno"> 718</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> Diags,</div>
+<div class="line"><a name="l00719"></a><span class="lineno"> 719</span> <a class="code" href="classclang_1_1ASTFrontendAction.html" title="Abstract base class to use for AST consumer-based frontend actions.">ASTFrontendAction</a> *<a class="code" href="Tooling_8cpp.html#a611b216472a9171383c588b3c166b0a1">Action</a> = 0,</div>
+<div class="line"><a name="l00720"></a><span class="lineno"> 720</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *Unit = 0,</div>
+<div class="line"><a name="l00721"></a><span class="lineno"> 721</span> <span class="keywordtype">bool</span> Persistent = <span class="keyword">true</span>,</div>
+<div class="line"><a name="l00722"></a><span class="lineno"> 722</span> StringRef ResourceFilesPath = StringRef(),</div>
+<div class="line"><a name="l00723"></a><span class="lineno"> 723</span> <span class="keywordtype">bool</span> OnlyLocalDecls = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00724"></a><span class="lineno"> 724</span> <span class="keywordtype">bool</span> CaptureDiagnostics = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00725"></a><span class="lineno"> 725</span> <span class="keywordtype">bool</span> PrecompilePreamble = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00726"></a><span class="lineno"> 726</span> <span class="keywordtype">bool</span> CacheCodeCompletionResults = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00727"></a><span class="lineno"> 727</span> <span class="keywordtype">bool</span> IncludeBriefCommentsInCodeCompletion = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00728"></a><span class="lineno"> 728</span> <span class="keywordtype">bool</span> UserFilesAreVolatile = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00729"></a><span class="lineno"> 729</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTUnit></a> *ErrAST = 0);</div>
+<div class="line"><a name="l00730"></a><span class="lineno"> 730</span> <span class="comment"></span></div>
+<div class="line"><a name="l00731"></a><span class="lineno"> 731</span> <span class="comment"> /// LoadFromCompilerInvocation - Create an ASTUnit from a source file, via a</span></div>
+<div class="line"><a name="l00732"></a><span class="lineno"> 732</span> <span class="comment"> /// CompilerInvocation object.</span></div>
+<div class="line"><a name="l00733"></a><span class="lineno"> 733</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00734"></a><span class="lineno"> 734</span> <span class="comment"> /// \param CI - The compiler invocation to use; it must have exactly one input</span></div>
+<div class="line"><a name="l00735"></a><span class="lineno"> 735</span> <span class="comment"> /// source file. The ASTUnit takes ownership of the CompilerInvocation object.</span></div>
+<div class="line"><a name="l00736"></a><span class="lineno"> 736</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00737"></a><span class="lineno"> 737</span> <span class="comment"> /// \param Diags - The diagnostics engine to use for reporting errors; its</span></div>
+<div class="line"><a name="l00738"></a><span class="lineno"> 738</span> <span class="comment"> /// lifetime is expected to extend past that of the returned ASTUnit.</span></div>
+<div class="line"><a name="l00739"></a><span class="lineno"> 739</span> <span class="comment"></span> <span class="comment">//</span></div>
+<div class="line"><a name="l00740"></a><span class="lineno"> 740</span> <span class="comment">// FIXME: Move OnlyLocalDecls, UseBumpAllocator to setters on the ASTUnit, we</span></div>
+<div class="line"><a name="l00741"></a><span class="lineno"> 741</span> <span class="comment">// shouldn't need to specify them at construction time.</span></div>
+<div class="line"><a name="l00742"></a><span class="lineno"> 742</span> <span class="keyword">static</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *LoadFromCompilerInvocation(<a class="code" href="classclang_1_1CompilerInvocation.html" title="Helper class for holding the data necessary to invoke the compiler.">CompilerInvocation</a> *CI,</div>
+<div class="line"><a name="l00743"></a><span class="lineno"> 743</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> Diags,</div>
+<div class="line"><a name="l00744"></a><span class="lineno"> 744</span> <span class="keywordtype">bool</span> OnlyLocalDecls = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00745"></a><span class="lineno"> 745</span> <span class="keywordtype">bool</span> CaptureDiagnostics = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00746"></a><span class="lineno"> 746</span> <span class="keywordtype">bool</span> PrecompilePreamble = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00747"></a><span class="lineno"> 747</span> <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21" title="Describes the kind of translation unit being processed.">TranslationUnitKind</a> TUKind = <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21a5d885810d2d2df3c7bb2acb219f7c0e8" title="The translation unit is a complete translation unit.">TU_Complete</a>,</div>
+<div class="line"><a name="l00748"></a><span class="lineno"> 748</span> <span class="keywordtype">bool</span> CacheCodeCompletionResults = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00749"></a><span class="lineno"> 749</span> <span class="keywordtype">bool</span> IncludeBriefCommentsInCodeCompletion = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00750"></a><span class="lineno"> 750</span> <span class="keywordtype">bool</span> UserFilesAreVolatile = <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00751"></a><span class="lineno"> 751</span> <span class="comment"></span></div>
+<div class="line"><a name="l00752"></a><span class="lineno"> 752</span> <span class="comment"> /// LoadFromCommandLine - Create an ASTUnit from a vector of command line</span></div>
+<div class="line"><a name="l00753"></a><span class="lineno"> 753</span> <span class="comment"> /// arguments, which must specify exactly one source file.</span></div>
+<div class="line"><a name="l00754"></a><span class="lineno"> 754</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00755"></a><span class="lineno"> 755</span> <span class="comment"> /// \param ArgBegin - The beginning of the argument vector.</span></div>
+<div class="line"><a name="l00756"></a><span class="lineno"> 756</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00757"></a><span class="lineno"> 757</span> <span class="comment"> /// \param ArgEnd - The end of the argument vector.</span></div>
+<div class="line"><a name="l00758"></a><span class="lineno"> 758</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00759"></a><span class="lineno"> 759</span> <span class="comment"> /// \param Diags - The diagnostics engine to use for reporting errors; its</span></div>
+<div class="line"><a name="l00760"></a><span class="lineno"> 760</span> <span class="comment"> /// lifetime is expected to extend past that of the returned ASTUnit.</span></div>
+<div class="line"><a name="l00761"></a><span class="lineno"> 761</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00762"></a><span class="lineno"> 762</span> <span class="comment"> /// \param ResourceFilesPath - The path to the compiler resource files.</span></div>
+<div class="line"><a name="l00763"></a><span class="lineno"> 763</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00764"></a><span class="lineno"> 764</span> <span class="comment"> /// \param ErrAST - If non-null and parsing failed without any AST to return</span></div>
+<div class="line"><a name="l00765"></a><span class="lineno"> 765</span> <span class="comment"> /// (e.g. because the PCH could not be loaded), this accepts the ASTUnit</span></div>
+<div class="line"><a name="l00766"></a><span class="lineno"> 766</span> <span class="comment"> /// mainly to allow the caller to see the diagnostics.</span></div>
+<div class="line"><a name="l00767"></a><span class="lineno"> 767</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00768"></a><span class="lineno"> 768</span> <span class="comment"></span> <span class="comment">// FIXME: Move OnlyLocalDecls, UseBumpAllocator to setters on the ASTUnit, we</span></div>
+<div class="line"><a name="l00769"></a><span class="lineno"> 769</span> <span class="comment">// shouldn't need to specify them at construction time.</span></div>
+<div class="line"><a name="l00770"></a><span class="lineno"> 770</span> <span class="keyword">static</span> <a class="code" href="classclang_1_1ASTUnit.html" title="Utility class for loading a ASTContext from an AST file.">ASTUnit</a> *<a class="code" href="classclang_1_1ASTUnit.html#ae2e8358ba4f7158ac19112c6870fba0a">LoadFromCommandLine</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> **ArgBegin,</div>
+<div class="line"><a name="l00771"></a><span class="lineno"> 771</span> <span class="keyword">const</span> <span class="keywordtype">char</span> **ArgEnd,</div>
+<div class="line"><a name="l00772"></a><span class="lineno"> 772</span> <a class="code" href="classllvm_1_1IntrusiveRefCntPtr.html">IntrusiveRefCntPtr<DiagnosticsEngine></a> Diags,</div>
+<div class="line"><a name="l00773"></a><span class="lineno"> 773</span> StringRef ResourceFilesPath,</div>
+<div class="line"><a name="l00774"></a><span class="lineno"> 774</span> <span class="keywordtype">bool</span> OnlyLocalDecls = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00775"></a><span class="lineno"> 775</span> <span class="keywordtype">bool</span> CaptureDiagnostics = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00776"></a><span class="lineno"> 776</span> <a class="code" href="classclang_1_1ASTUnit.html#af409234e858b8fcd48bcd81bd86ee9e5" title="A mapping from a file name to the memory buffer that stores the remapped contents of that file...">RemappedFile</a> *RemappedFiles = 0,</div>
+<div class="line"><a name="l00777"></a><span class="lineno"> 777</span> <span class="keywordtype">unsigned</span> NumRemappedFiles = 0,</div>
+<div class="line"><a name="l00778"></a><span class="lineno"> 778</span> <span class="keywordtype">bool</span> RemappedFilesKeepOriginalName = <span class="keyword">true</span>,</div>
+<div class="line"><a name="l00779"></a><span class="lineno"> 779</span> <span class="keywordtype">bool</span> PrecompilePreamble = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00780"></a><span class="lineno"> 780</span> <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21" title="Describes the kind of translation unit being processed.">TranslationUnitKind</a> TUKind = <a class="code" href="namespaceclang.html#aac1b714ac14290e6a552b6953c3b5f21a5d885810d2d2df3c7bb2acb219f7c0e8" title="The translation unit is a complete translation unit.">TU_Complete</a>,</div>
+<div class="line"><a name="l00781"></a><span class="lineno"> 781</span> <span class="keywordtype">bool</span> CacheCodeCompletionResults = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00782"></a><span class="lineno"> 782</span> <span class="keywordtype">bool</span> IncludeBriefCommentsInCodeCompletion = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00783"></a><span class="lineno"> 783</span> <span class="keywordtype">bool</span> AllowPCHWithCompilerErrors = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00784"></a><span class="lineno"> 784</span> <span class="keywordtype">bool</span> SkipFunctionBodies = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00785"></a><span class="lineno"> 785</span> <span class="keywordtype">bool</span> UserFilesAreVolatile = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00786"></a><span class="lineno"> 786</span> <span class="keywordtype">bool</span> ForSerialization = <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00787"></a><span class="lineno"> 787</span> <a class="code" href="classllvm_1_1OwningPtr.html">OwningPtr<ASTUnit></a> *ErrAST = 0);</div>
+<div class="line"><a name="l00788"></a><span class="lineno"> 788</span> <span class="comment"></span></div>
+<div class="line"><a name="l00789"></a><span class="lineno"> 789</span> <span class="comment"> /// \brief Reparse the source files using the same command-line options that</span></div>
+<div class="line"><a name="l00790"></a><span class="lineno"> 790</span> <span class="comment"> /// were originally used to produce this translation unit.</span></div>
+<div class="line"><a name="l00791"></a><span class="lineno"> 791</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00792"></a><span class="lineno"> 792</span> <span class="comment"> /// \returns True if a failure occurred that causes the ASTUnit not to</span></div>
+<div class="line"><a name="l00793"></a><span class="lineno"> 793</span> <span class="comment"> /// contain any translation-unit information, false otherwise. </span></div>
+<div class="line"><a name="l00794"></a><span class="lineno"> 794</span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#aa52cd652dee36444742e423189d8ce34" title="Reparse the source files using the same command-line options that were originally used to produce thi...">Reparse</a>(<a class="code" href="classclang_1_1ASTUnit.html#af409234e858b8fcd48bcd81bd86ee9e5" title="A mapping from a file name to the memory buffer that stores the remapped contents of that file...">RemappedFile</a> *RemappedFiles = 0,</div>
+<div class="line"><a name="l00795"></a><span class="lineno"> 795</span> <span class="keywordtype">unsigned</span> NumRemappedFiles = 0);</div>
+<div class="line"><a name="l00796"></a><span class="lineno"> 796</span> <span class="comment"></span></div>
+<div class="line"><a name="l00797"></a><span class="lineno"> 797</span> <span class="comment"> /// \brief Perform code completion at the given file, line, and</span></div>
+<div class="line"><a name="l00798"></a><span class="lineno"> 798</span> <span class="comment"> /// column within this translation unit.</span></div>
+<div class="line"><a name="l00799"></a><span class="lineno"> 799</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00800"></a><span class="lineno"> 800</span> <span class="comment"> /// \param File The file in which code completion will occur.</span></div>
+<div class="line"><a name="l00801"></a><span class="lineno"> 801</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00802"></a><span class="lineno"> 802</span> <span class="comment"> /// \param Line The line at which code completion will occur.</span></div>
+<div class="line"><a name="l00803"></a><span class="lineno"> 803</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00804"></a><span class="lineno"> 804</span> <span class="comment"> /// \param Column The column at which code completion will occur.</span></div>
+<div class="line"><a name="l00805"></a><span class="lineno"> 805</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00806"></a><span class="lineno"> 806</span> <span class="comment"> /// \param IncludeMacros Whether to include macros in the code-completion </span></div>
+<div class="line"><a name="l00807"></a><span class="lineno"> 807</span> <span class="comment"> /// results.</span></div>
+<div class="line"><a name="l00808"></a><span class="lineno"> 808</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00809"></a><span class="lineno"> 809</span> <span class="comment"> /// \param IncludeCodePatterns Whether to include code patterns (such as a </span></div>
+<div class="line"><a name="l00810"></a><span class="lineno"> 810</span> <span class="comment"> /// for loop) in the code-completion results.</span></div>
+<div class="line"><a name="l00811"></a><span class="lineno"> 811</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00812"></a><span class="lineno"> 812</span> <span class="comment"> /// \param IncludeBriefComments Whether to include brief documentation within</span></div>
+<div class="line"><a name="l00813"></a><span class="lineno"> 813</span> <span class="comment"> /// the set of code completions returned.</span></div>
+<div class="line"><a name="l00814"></a><span class="lineno"> 814</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00815"></a><span class="lineno"> 815</span> <span class="comment"> /// FIXME: The Diag, LangOpts, SourceMgr, FileMgr, StoredDiagnostics, and</span></div>
+<div class="line"><a name="l00816"></a><span class="lineno"> 816</span> <span class="comment"> /// OwnedBuffers parameters are all disgusting hacks. They will go away.</span></div>
+<div class="line"><a name="l00817"></a><span class="lineno"> 817</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#a0c8331e5be64cf2448f70829aa3a38ff" title="Perform code completion at the given file, line, and column within this translation unit...">CodeComplete</a>(StringRef File, <span class="keywordtype">unsigned</span> <a class="code" href="TokenAnnotator_8cpp.html#a0d95c6acfc477accd6ff1b1ca93c82cc">Line</a>, <span class="keywordtype">unsigned</span> <a class="code" href="Format_8cpp.html#a1eea5be0eff1070e17b69bc5b9f281ae">Column</a>,</div>
+<div class="line"><a name="l00818"></a><span class="lineno"> 818</span> <a class="code" href="classclang_1_1ASTUnit.html#af409234e858b8fcd48bcd81bd86ee9e5" title="A mapping from a file name to the memory buffer that stores the remapped contents of that file...">RemappedFile</a> *RemappedFiles, <span class="keywordtype">unsigned</span> NumRemappedFiles,</div>
+<div class="line"><a name="l00819"></a><span class="lineno"> 819</span> <span class="keywordtype">bool</span> IncludeMacros, <span class="keywordtype">bool</span> IncludeCodePatterns,</div>
+<div class="line"><a name="l00820"></a><span class="lineno"> 820</span> <span class="keywordtype">bool</span> IncludeBriefComments,</div>
+<div class="line"><a name="l00821"></a><span class="lineno"> 821</span> <a class="code" href="classclang_1_1CodeCompleteConsumer.html" title="Abstract interface for a consumer of code-completion information.">CodeCompleteConsumer</a> &Consumer,</div>
+<div class="line"><a name="l00822"></a><span class="lineno"> 822</span> <a class="code" href="classclang_1_1DiagnosticsEngine.html" title="Concrete class used by the front-end to report problems and issues.">DiagnosticsEngine</a> &<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>, <a class="code" href="classclang_1_1LangOptions.html" title="Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...">LangOptions</a> &LangOpts,</div>
+<div class="line"><a name="l00823"></a><span class="lineno"> 823</span> <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &<a class="code" href="Format_8cpp.html#a8b28f9f83ac8256fbde7e45b0f874f27">SourceMgr</a>, <a class="code" href="classclang_1_1FileManager.html" title="Implements support for file system lookup, file system caching, and directory search management...">FileManager</a> &FileMgr,</div>
+<div class="line"><a name="l00824"></a><span class="lineno"> 824</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<StoredDiagnostic></a> &StoredDiagnostics,</div>
+<div class="line"><a name="l00825"></a><span class="lineno"> 825</span> <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<const llvm::MemoryBuffer *></a> &OwnedBuffers);</div>
+<div class="line"><a name="l00826"></a><span class="lineno"> 826</span> <span class="comment"></span></div>
+<div class="line"><a name="l00827"></a><span class="lineno"> 827</span> <span class="comment"> /// \brief Save this translation unit to a file with the given name.</span></div>
+<div class="line"><a name="l00828"></a><span class="lineno"> 828</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00829"></a><span class="lineno"> 829</span> <span class="comment"> /// \returns true if there was a file error or false if the save was</span></div>
+<div class="line"><a name="l00830"></a><span class="lineno"> 830</span> <span class="comment"> /// successful.</span></div>
+<div class="line"><a name="l00831"></a><span class="lineno"> 831</span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#acc7acc51ccd1fc3525e372ebc90de647" title="Save this translation unit to a file with the given name.">Save</a>(StringRef File);</div>
+<div class="line"><a name="l00832"></a><span class="lineno"> 832</span> <span class="comment"></span></div>
+<div class="line"><a name="l00833"></a><span class="lineno"> 833</span> <span class="comment"> /// \brief Serialize this translation unit with the given output stream.</span></div>
+<div class="line"><a name="l00834"></a><span class="lineno"> 834</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00835"></a><span class="lineno"> 835</span> <span class="comment"> /// \returns True if an error occurred, false otherwise.</span></div>
+<div class="line"><a name="l00836"></a><span class="lineno"> 836</span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnit.html#a1d57dc558d836d1399bf5ea13a3c99a4" title="Serialize this translation unit with the given output stream.">serialize</a>(raw_ostream &OS);</div>
+<div class="line"><a name="l00837"></a><span class="lineno"> 837</span> </div>
+<div class="line"><a name="l00838"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#a894384734ac528f966a3f603027fea21"> 838</a></span> <span class="keyword">virtual</span> <a class="code" href="classclang_1_1ModuleLoadResult.html" title="Describes the result of attempting to load a module.">ModuleLoadResult</a> <a class="code" href="classclang_1_1ASTUnit.html#a894384734ac528f966a3f603027fea21" title="Attempt to load the given module.">loadModule</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> ImportLoc,</div>
+<div class="line"><a name="l00839"></a><span class="lineno"> 839</span> <a class="code" href="classllvm_1_1ArrayRef.html">ModuleIdPath</a> Path,</div>
+<div class="line"><a name="l00840"></a><span class="lineno"> 840</span> <a class="code" href="classclang_1_1Module.html#a1ca9cf81299c2f40c68d04f44eea8a67" title="Describes the visibility of the various names within a particular module.">Module::NameVisibilityKind</a> <a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102" title="Describes the different kinds of visibility that a declaration may have.">Visibility</a>,</div>
+<div class="line"><a name="l00841"></a><span class="lineno"> 841</span> <span class="keywordtype">bool</span> IsInclusionDirective) {</div>
+<div class="line"><a name="l00842"></a><span class="lineno"> 842</span> <span class="comment">// ASTUnit doesn't know how to load modules (not that this matters).</span></div>
+<div class="line"><a name="l00843"></a><span class="lineno"> 843</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ModuleLoadResult.html" title="Describes the result of attempting to load a module.">ModuleLoadResult</a>();</div>
+<div class="line"><a name="l00844"></a><span class="lineno"> 844</span> }</div>
+<div class="line"><a name="l00845"></a><span class="lineno"> 845</span> </div>
+<div class="line"><a name="l00846"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnit.html#af77e1f3a7431134faca5009d72637a0e"> 846</a></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnit.html#af77e1f3a7431134faca5009d72637a0e" title="Make the given module visible.">makeModuleVisible</a>(<a class="code" href="classclang_1_1Module.html" title="Describes a module or submodule.">Module</a> *Mod,</div>
+<div class="line"><a name="l00847"></a><span class="lineno"> 847</span> <a class="code" href="classclang_1_1Module.html#a1ca9cf81299c2f40c68d04f44eea8a67" title="Describes the visibility of the various names within a particular module.">Module::NameVisibilityKind</a> <a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102" title="Describes the different kinds of visibility that a declaration may have.">Visibility</a>,</div>
+<div class="line"><a name="l00848"></a><span class="lineno"> 848</span> <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> ImportLoc,</div>
+<div class="line"><a name="l00849"></a><span class="lineno"> 849</span> <span class="keywordtype">bool</span> Complain) { }</div>
+<div class="line"><a name="l00850"></a><span class="lineno"> 850</span> </div>
+<div class="line"><a name="l00851"></a><span class="lineno"> 851</span> };</div>
+<div class="line"><a name="l00852"></a><span class="lineno"> 852</span> </div>
+<div class="line"><a name="l00853"></a><span class="lineno"> 853</span> } <span class="comment">// namespace clang</span></div>
+<div class="line"><a name="l00854"></a><span class="lineno"> 854</span> </div>
+<div class="line"><a name="l00855"></a><span class="lineno"> 855</span> <span class="preprocessor">#endif</span></div>
+</div><!-- fragment --></div><!-- contents -->
+<hr>
+<p class="footer">
+Generated on Mon May 12 2014 12:13:16 for r$LatestRev$ by <a href="http://www.doxygen.org">Doxygen
+1.8.3.1</a>.</p>
+<p class="footer">
+See the <a href="http://clang.llvm.org">Main Clang Web Page</a> for more
+information.</p>
+</body>
+</html>
Added: www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnresolvedSet_8h_source.html
URL: http://llvm.org/viewvc/llvm-project/www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnresolvedSet_8h_source.html?rev=225843&view=auto
==============================================================================
--- www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnresolvedSet_8h_source.html (added)
+++ www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTUnresolvedSet_8h_source.html Tue Jan 13 16:55:20 2015
@@ -0,0 +1,192 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head>
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="keywords" content="clang,LLVM,Low Level Virtual Machine,C,C++,doxygen,API,frontend,documentation"/>
+<meta name="description" content="C++ source code API documentation for clang."/>
+<title>clang: ASTUnresolvedSet.h Source File</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head><body>
+<p class="title">clang API Documentation</p>
+<!-- Generated by Doxygen 1.8.3.1 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li><a href="index.html"><span>Main Page</span></a></li>
+ <li><a href="pages.html"><span>Related Pages</span></a></li>
+ <li><a href="modules.html"><span>Modules</span></a></li>
+ <li><a href="namespaces.html"><span>Namespaces</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ <li>
+ <div id="MSearchBox" class="MSearchBoxInactive">
+ <span class="left">
+ <img id="MSearchSelect" src="search/mag_sel.png"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ alt=""/>
+ <input type="text" id="MSearchField" value="Search" accesskey="S"
+ onfocus="searchBox.OnSearchFieldFocus(true)"
+ onblur="searchBox.OnSearchFieldFocus(false)"
+ onkeyup="searchBox.OnSearchFieldChange(event)"/>
+ </span><span class="right">
+ <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+ </span>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li><a href="files.html"><span>File List</span></a></li>
+ <li><a href="globals.html"><span>File Members</span></a></li>
+ </ul>
+ </div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void
(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark"> </span>Pages</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_f65986501076cc710d4b9355ae3fe06d.html">clang</a></li><li class="navelem"><a class="el" href="dir_3e61bbac0c8515a3c083eb51d03eb390.html">include</a></li><li class="navelem"><a class="el" href="dir_ee4f288247dc2d9ccd0382aea6916312.html">clang</a></li><li class="navelem"><a class="el" href="dir_6152e82a4845f7e2a2888050f43c34d1.html">AST</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">ASTUnresolvedSet.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<a href="ASTUnresolvedSet_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//===-- ASTUnresolvedSet.h - Unresolved sets of declarations ---*- C++ -*-===//</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// The LLVM Compiler Infrastructure</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// This file is distributed under the University of Illinois Open Source</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// License. See LICENSE.TXT for details.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// This file provides an UnresolvedSet-like class, whose contents are</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// allocated using the allocator associated with an ASTContext.</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div>
+<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#ifndef LLVM_CLANG_AST_ASTUNRESOLVEDSET_H</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor"></span><span class="preprocessor">#define LLVM_CLANG_AST_ASTUNRESOLVEDSET_H</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor"></span></div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="ASTVector_8h.html">clang/AST/ASTVector.h</a>"</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="UnresolvedSet_8h.html">clang/AST/UnresolvedSet.h</a>"</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div>
+<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">namespace </span>clang {</div>
+<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"></span></div>
+<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">/// \brief An UnresolvedSet-like class which uses the ASTContext's allocator.</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html"> 24</a></span> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classclang_1_1ASTUnresolvedSet.html" title="An UnresolvedSet-like class which uses the ASTContext's allocator.">ASTUnresolvedSet</a> {</div>
+<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">struct </span>DeclsTy : <a class="code" href="classclang_1_1ASTVector.html">ASTVector</a><DeclAccessPair> {</div>
+<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> DeclsTy() {}</div>
+<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> DeclsTy(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <span class="keywordtype">unsigned</span> N) : <a class="code" href="classclang_1_1ASTVector.html">ASTVector<DeclAccessPair></a>(C, N) {}</div>
+<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div>
+<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keywordtype">bool</span> isLazy()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getTag(); }</div>
+<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keywordtype">void</span> setLazy(<span class="keywordtype">bool</span> Lazy) { setTag(Lazy); }</div>
+<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> };</div>
+<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div>
+<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> DeclsTy Decls;</div>
+<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div>
+<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a684f48ac6c5a300c8a2f76507372118c">ASTUnresolvedSet</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html" title="An UnresolvedSet-like class which uses the ASTContext's allocator.">ASTUnresolvedSet</a> &) LLVM_DELETED_FUNCTION;</div>
+<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html" title="An UnresolvedSet-like class which uses the ASTContext's allocator.">ASTUnresolvedSet</a> &) LLVM_DELETED_FUNCTION;</div>
+<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div>
+<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#aca1e91d8921f3014b1500ac7fc982b41"> 38</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classclang_1_1LazyASTUnresolvedSet.html" title="An UnresolvedSet-like class that might not have been loaded from the external AST source yet...">LazyASTUnresolvedSet</a>;</div>
+<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div>
+<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a684f48ac6c5a300c8a2f76507372118c"> 41</a></span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a684f48ac6c5a300c8a2f76507372118c">ASTUnresolvedSet</a>() {}</div>
+<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a599efdfc9735e4ddb136965e2788cd09"> 42</a></span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a599efdfc9735e4ddb136965e2788cd09">ASTUnresolvedSet</a>(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <span class="keywordtype">unsigned</span> N) : Decls(C, N) {}</div>
+<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div>
+<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a28cabd5bf06be5369e9497bca30ec65e"> 44</a></span> <span class="keyword">typedef</span> <a class="code" href="classclang_1_1UnresolvedSetIterator.html">UnresolvedSetIterator</a> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a28cabd5bf06be5369e9497bca30ec65e">iterator</a>;</div>
+<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a47e64ae54b4314bcbd35cda7f184fd98"> 45</a></span> <span class="keyword">typedef</span> <a class="code" href="classclang_1_1UnresolvedSetIterator.html">UnresolvedSetIterator</a> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a47e64ae54b4314bcbd35cda7f184fd98">const_iterator</a>;</div>
+<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div>
+<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a08553ecf915ac023e18f52273d8fe80c"> 47</a></span> <a class="code" href="classclang_1_1UnresolvedSetIterator.html">iterator</a> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a08553ecf915ac023e18f52273d8fe80c">begin</a>() { <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a28cabd5bf06be5369e9497bca30ec65e">iterator</a>(Decls.begin()); }</div>
+<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a7807cae3421ee059d5c5717f9b5c6739"> 48</a></span> <a class="code" href="classclang_1_1UnresolvedSetIterator.html">iterator</a> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a7807cae3421ee059d5c5717f9b5c6739">end</a>() { <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a28cabd5bf06be5369e9497bca30ec65e">iterator</a>(Decls.end()); }</div>
+<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div>
+<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a61e9884b593824ec64d1049c4a01a383"> 50</a></span> <a class="code" href="classclang_1_1UnresolvedSetIterator.html">const_iterator</a> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a61e9884b593824ec64d1049c4a01a383">begin</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a47e64ae54b4314bcbd35cda7f184fd98">const_iterator</a>(Decls.begin()); }</div>
+<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#aecd351572e38be3e3d0ea893d80d3619"> 51</a></span> <a class="code" href="classclang_1_1UnresolvedSetIterator.html">const_iterator</a> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#aecd351572e38be3e3d0ea893d80d3619">end</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a47e64ae54b4314bcbd35cda7f184fd98">const_iterator</a>(Decls.end()); }</div>
+<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div>
+<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a7a29759f2dd0ca4941646d384713b01f"> 53</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a7a29759f2dd0ca4941646d384713b01f">addDecl</a>(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <a class="code" href="classclang_1_1NamedDecl.html">NamedDecl</a> *D, <a class="code" href="namespaceclang.html#afc8aabd1f46cf32e805cd0d970ef988f" title="A C++ access specifier (public, private, protected), plus the special value "none" which means differ...">AccessSpecifier</a> AS) {</div>
+<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> Decls.push_back(<a class="code" href="classclang_1_1DeclAccessPair.html#a40bf16940069615f789f599664048241">DeclAccessPair::make</a>(D, AS), C);</div>
+<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> }</div>
+<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment"></span></div>
+<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment"> /// Replaces the given declaration with the new one, once.</span></div>
+<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> /// \return true if the set changed</span></div>
+<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a3bbeb348ebc46d1b58365a04ed6136d7"> 60</a></span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a3bbeb348ebc46d1b58365a04ed6136d7">replace</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1NamedDecl.html">NamedDecl</a> *Old, <a class="code" href="classclang_1_1NamedDecl.html">NamedDecl</a> *New, <a class="code" href="namespaceclang.html#afc8aabd1f46cf32e805cd0d970ef988f" title="A C++ access specifier (public, private, protected), plus the special value "none" which means differ...">AccessSpecifier</a> AS) {</div>
+<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1DeclAccessPair.html">DeclsTy::iterator</a> I = Decls.begin(), E = Decls.end(); I != E; ++I) {</div>
+<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">if</span> (I->getDecl() == Old) {</div>
+<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> I->set(New, AS);</div>
+<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> }</div>
+<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> }</div>
+<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> }</div>
+<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div>
+<div class="line"><a name="l00070"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#aa220cc3b18817972467b15dbd526749c"> 70</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#aa220cc3b18817972467b15dbd526749c">erase</a>(<span class="keywordtype">unsigned</span> I) { Decls[I] = Decls.pop_back_val(); }</div>
+<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div>
+<div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#af288245eece7796222249619b6df176e"> 72</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#af288245eece7796222249619b6df176e">clear</a>() { Decls.clear(); }</div>
+<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div>
+<div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a1c1e5d5beaf21ef4861f8890537adebc"> 74</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a1c1e5d5beaf21ef4861f8890537adebc">empty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Decls.empty(); }</div>
+<div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a9ca2f1c05594b9109e080d14250d973c"> 75</a></span> <span class="keywordtype">unsigned</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a9ca2f1c05594b9109e080d14250d973c">size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Decls.size(); }</div>
+<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div>
+<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a6797a19f0a0be37118796f47c27c6925"> 77</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a6797a19f0a0be37118796f47c27c6925">reserve</a>(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <span class="keywordtype">unsigned</span> N) {</div>
+<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> Decls.reserve(C, N);</div>
+<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> }</div>
+<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div>
+<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a2058c586c38322f78510a1b9726492cf"> 81</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html#a2058c586c38322f78510a1b9726492cf">append</a>(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <a class="code" href="classclang_1_1UnresolvedSetIterator.html">iterator</a> I, <a class="code" href="classclang_1_1UnresolvedSetIterator.html">iterator</a> E) {</div>
+<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> Decls.append(C, I.ir, E.ir);</div>
+<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> }</div>
+<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div>
+<div class="line"><a name="l00085"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#a461f32ec899715c63a8755ac07d62cd7"> 85</a></span> <a class="code" href="classclang_1_1DeclAccessPair.html">DeclAccessPair</a> &<a class="code" href="classclang_1_1ASTUnresolvedSet.html#a461f32ec899715c63a8755ac07d62cd7">operator[]</a>(<span class="keywordtype">unsigned</span> I) { <span class="keywordflow">return</span> Decls[I]; }</div>
+<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="classclang_1_1ASTUnresolvedSet.html#ae9937a59882b0670f973c102c01e812a"> 86</a></span> <span class="keyword">const</span> <a class="code" href="classclang_1_1DeclAccessPair.html">DeclAccessPair</a> &<a class="code" href="classclang_1_1ASTUnresolvedSet.html#ae9937a59882b0670f973c102c01e812a">operator[]</a>(<span class="keywordtype">unsigned</span> I)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Decls[I]; }</div>
+<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> };</div>
+<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"></span></div>
+<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment">/// \brief An UnresolvedSet-like class that might not have been loaded from the</span></div>
+<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment">/// external AST source yet.</span></div>
+<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="classclang_1_1LazyASTUnresolvedSet.html"> 91</a></span> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classclang_1_1LazyASTUnresolvedSet.html" title="An UnresolvedSet-like class that might not have been loaded from the external AST source yet...">LazyASTUnresolvedSet</a> {</div>
+<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="keyword">mutable</span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html" title="An UnresolvedSet-like class which uses the ASTContext's allocator.">ASTUnresolvedSet</a> Impl;</div>
+<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div>
+<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="keywordtype">void</span> getFromExternalSource(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div>
+<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="classclang_1_1LazyASTUnresolvedSet.html#a95fb438acd17999b1a67caa2a9f0f383"> 97</a></span> <a class="code" href="classclang_1_1ASTUnresolvedSet.html" title="An UnresolvedSet-like class which uses the ASTContext's allocator.">ASTUnresolvedSet</a> &<span class="keyword">get</span>(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C) <span class="keyword">const</span> {</div>
+<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keywordflow">if</span> (Impl.Decls.isLazy())</div>
+<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> getFromExternalSource(C);</div>
+<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="keywordflow">return</span> Impl;</div>
+<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> }</div>
+<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div>
+<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="classclang_1_1LazyASTUnresolvedSet.html#a48a9e9f99a39bc71aea26ea6761cfde6"> 103</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1LazyASTUnresolvedSet.html#a48a9e9f99a39bc71aea26ea6761cfde6">reserve</a>(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <span class="keywordtype">unsigned</span> N) { Impl.<a class="code" href="classclang_1_1ASTUnresolvedSet.html#a6797a19f0a0be37118796f47c27c6925">reserve</a>(C, N); }</div>
+<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="classclang_1_1LazyASTUnresolvedSet.html#ab6d3830aa2f21a9e82ae947f37e885bf"> 104</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1LazyASTUnresolvedSet.html#ab6d3830aa2f21a9e82ae947f37e885bf">addLazyDecl</a>(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, uintptr_t <a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>, <a class="code" href="namespaceclang.html#afc8aabd1f46cf32e805cd0d970ef988f" title="A C++ access specifier (public, private, protected), plus the special value "none" which means differ...">AccessSpecifier</a> AS) {</div>
+<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> assert(Impl.<a class="code" href="classclang_1_1ASTUnresolvedSet.html#a1c1e5d5beaf21ef4861f8890537adebc">empty</a>() || Impl.Decls.isLazy());</div>
+<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> Impl.Decls.setLazy(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> Impl.<a class="code" href="classclang_1_1ASTUnresolvedSet.html#a7a29759f2dd0ca4941646d384713b01f">addDecl</a>(C, reinterpret_cast<NamedDecl*>(ID << 2), AS);</div>
+<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> }</div>
+<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> };</div>
+<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div>
+<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> } <span class="comment">// namespace clang</span></div>
+<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div>
+<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="preprocessor">#endif</span></div>
+</div><!-- fragment --></div><!-- contents -->
+<hr>
+<p class="footer">
+Generated on Mon May 12 2014 12:13:16 for r$LatestRev$ by <a href="http://www.doxygen.org">Doxygen
+1.8.3.1</a>.</p>
+<p class="footer">
+See the <a href="http://clang.llvm.org">Main Clang Web Page</a> for more
+information.</p>
+</body>
+</html>
Added: www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTVector_8h_source.html
URL: http://llvm.org/viewvc/llvm-project/www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTVector_8h_source.html?rev=225843&view=auto
==============================================================================
--- www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTVector_8h_source.html (added)
+++ www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ASTVector_8h_source.html Tue Jan 13 16:55:20 2015
@@ -0,0 +1,491 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head>
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="keywords" content="clang,LLVM,Low Level Virtual Machine,C,C++,doxygen,API,frontend,documentation"/>
+<meta name="description" content="C++ source code API documentation for clang."/>
+<title>clang: ASTVector.h Source File</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head><body>
+<p class="title">clang API Documentation</p>
+<!-- Generated by Doxygen 1.8.3.1 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li><a href="index.html"><span>Main Page</span></a></li>
+ <li><a href="pages.html"><span>Related Pages</span></a></li>
+ <li><a href="modules.html"><span>Modules</span></a></li>
+ <li><a href="namespaces.html"><span>Namespaces</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ <li>
+ <div id="MSearchBox" class="MSearchBoxInactive">
+ <span class="left">
+ <img id="MSearchSelect" src="search/mag_sel.png"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ alt=""/>
+ <input type="text" id="MSearchField" value="Search" accesskey="S"
+ onfocus="searchBox.OnSearchFieldFocus(true)"
+ onblur="searchBox.OnSearchFieldFocus(false)"
+ onkeyup="searchBox.OnSearchFieldChange(event)"/>
+ </span><span class="right">
+ <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+ </span>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li><a href="files.html"><span>File List</span></a></li>
+ <li><a href="globals.html"><span>File Members</span></a></li>
+ </ul>
+ </div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void
(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark"> </span>Pages</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_f65986501076cc710d4b9355ae3fe06d.html">clang</a></li><li class="navelem"><a class="el" href="dir_3e61bbac0c8515a3c083eb51d03eb390.html">include</a></li><li class="navelem"><a class="el" href="dir_ee4f288247dc2d9ccd0382aea6916312.html">clang</a></li><li class="navelem"><a class="el" href="dir_6152e82a4845f7e2a2888050f43c34d1.html">AST</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">ASTVector.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<a href="ASTVector_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//===- ASTVector.h - Vector that uses ASTContext for allocation --*- C++ -*-=//</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// The LLVM Compiler Infrastructure</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// This file is distributed under the University of Illinois Open Source</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// License. See LICENSE.TXT for details.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// This file provides ASTVector, a vector ADT whose contents are</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// allocated using the allocator associated with an ASTContext..</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div>
+<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// FIXME: Most of this is copy-and-paste from BumpVector.h and SmallVector.h.</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// We can refactor this core logic into something common.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#ifndef LLVM_CLANG_AST_VECTOR</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor"></span><span class="preprocessor">#define LLVM_CLANG_AST_VECTOR</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor"></span></div>
+<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="AttrIterator_8h.html">clang/AST/AttrIterator.h</a>"</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "llvm/ADT/PointerIntPair.h"</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "llvm/Support/Allocator.h"</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "llvm/Support/type_traits.h"</span></div>
+<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <algorithm></span></div>
+<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <cstring></span></div>
+<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <memory></span></div>
+<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div>
+<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#ifdef _MSC_VER</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor"></span><span class="keyword">namespace </span>std {</div>
+<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#if _MSC_VER <= 1310</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor"></span> <span class="comment">// Work around flawed VC++ implementation of std::uninitialized_copy. Define</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">// additional overloads so that elements with pointer types are recognized as</span></div>
+<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment">// scalars and not objects, causing bizarre type conversion errors.</span></div>
+<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">template</span><<span class="keyword">class</span> T1, <span class="keyword">class</span> T2></div>
+<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">inline</span> _Scalar_ptr_iterator_tag _Ptr_cat(T1 **, T2 **) {</div>
+<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> _Scalar_ptr_iterator_tag _Cat;</div>
+<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">return</span> _Cat;</div>
+<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> }</div>
+<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div>
+<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">template</span><<span class="keyword">class</span> T1, <span class="keyword">class</span> T2></div>
+<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">inline</span> _Scalar_ptr_iterator_tag _Ptr_cat(T1* <span class="keyword">const</span> *, T2 **) {</div>
+<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> _Scalar_ptr_iterator_tag _Cat;</div>
+<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keywordflow">return</span> _Cat;</div>
+<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div>
+<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#else</span></div>
+<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor"></span> <span class="comment">// FIXME: It is not clear if the problem is fixed in VS 2005. What is clear</span></div>
+<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">// is that the above hack won't work if it wasn't fixed.</span></div>
+<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor">#endif</span></div>
+<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor"></span>}</div>
+<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#endif</span></div>
+<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor"></span></div>
+<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">namespace </span>clang {</div>
+<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">class </span>ASTContext;</div>
+<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div>
+<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">template</span><<span class="keyword">typename</span> T></div>
+<div class="line"><a name="l00057"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html"> 57</a></span> <span class="keyword">class </span><a class="code" href="classclang_1_1ASTVector.html">ASTVector</a> {</div>
+<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> T *Begin, *End;</div>
+<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> llvm::PointerIntPair<T*, 1, bool> Capacity;</div>
+<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div>
+<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keywordtype">void</span> setEnd(T *<a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a>) { this->End = <a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a>; }</div>
+<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div>
+<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">protected</span>:</div>
+<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment">// Make a tag bit available to users of this class.</span></div>
+<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment">// FIXME: This is a horrible hack.</span></div>
+<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a6d63d93902f73eb2ccfa815a0c9be251"> 67</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTVector.html#a6d63d93902f73eb2ccfa815a0c9be251">getTag</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Capacity.getInt(); }</div>
+<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a4a8c86c4d4f00020dab9f51273fc68ab"> 68</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTVector.html#a4a8c86c4d4f00020dab9f51273fc68ab">setTag</a>(<span class="keywordtype">bool</span> B) { Capacity.setInt(B); }</div>
+<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div>
+<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment">// Default ctor - Initialize to empty.</span></div>
+<div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a8e6bce76a0d1f1656cc2813e84e86e59"> 72</a></span> <a class="code" href="classclang_1_1ASTVector.html#a8e6bce76a0d1f1656cc2813e84e86e59">ASTVector</a>() : Begin(0), End(0), Capacity(0, <a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>) {}</div>
+<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div>
+<div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#af1ac1e871fcf64f28029f1077d20cfd8"> 74</a></span> <a class="code" href="classclang_1_1ASTVector.html#a8e6bce76a0d1f1656cc2813e84e86e59">ASTVector</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <span class="keywordtype">unsigned</span> N)</div>
+<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> : Begin(0), End(0), Capacity(0, <a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>) {</div>
+<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <a class="code" href="classclang_1_1ASTVector.html#a5f74ffc117f765ac9cc0c5dc1fb1bd10">reserve</a>(C, N);</div>
+<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> }</div>
+<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div>
+<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a175a67167dfbdb01bd1b9addf70448ac"> 79</a></span> <a class="code" href="classclang_1_1ASTVector.html#a175a67167dfbdb01bd1b9addf70448ac">~ASTVector</a>() {</div>
+<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keywordflow">if</span> (llvm::is_class<T>::value) {</div>
+<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="comment">// Destroy the constructed elements in the vector.</span></div>
+<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> destroy_range(Begin, End);</div>
+<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> }</div>
+<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> }</div>
+<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div>
+<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a8dab9d9b05fbfbdc4909663c02a1510a"> 86</a></span> <span class="keyword">typedef</span> <span class="keywordtype">size_t</span> <a class="code" href="classclang_1_1ASTVector.html#a8dab9d9b05fbfbdc4909663c02a1510a">size_type</a>;</div>
+<div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#aba27069e8a826554dd4e4af41e6823e8"> 87</a></span> <span class="keyword">typedef</span> <a class="code" href="stddef_8h.html#a6d26a0475a6d6c897e655cdc5d8019d2">ptrdiff_t</a> <a class="code" href="classclang_1_1ASTVector.html#aba27069e8a826554dd4e4af41e6823e8">difference_type</a>;</div>
+<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a18fbd76a1190627d47b42ba4af1509fa"> 88</a></span> <span class="keyword">typedef</span> T <a class="code" href="classclang_1_1ASTVector.html#a18fbd76a1190627d47b42ba4af1509fa">value_type</a>;</div>
+<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#aa6d8bc4633e913a60a1ff3898ff4e44c"> 89</a></span> <span class="keyword">typedef</span> T* <a class="code" href="classclang_1_1ASTVector.html#aa6d8bc4633e913a60a1ff3898ff4e44c">iterator</a>;</div>
+<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a7461d7858187528bc65d3d4bd5851cee"> 90</a></span> <span class="keyword">typedef</span> <span class="keyword">const</span> T* <a class="code" href="classclang_1_1ASTVector.html#a7461d7858187528bc65d3d4bd5851cee">const_iterator</a>;</div>
+<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div>
+<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a35886aee911d388c26dca43b8f2e3e01"> 92</a></span> <span class="keyword">typedef</span> std::reverse_iterator<const_iterator> <a class="code" href="classclang_1_1ASTVector.html#a35886aee911d388c26dca43b8f2e3e01">const_reverse_iterator</a>;</div>
+<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a641eadc4fe2a3674c23bf5a17f646129"> 93</a></span> <span class="keyword">typedef</span> std::reverse_iterator<iterator> <a class="code" href="classclang_1_1ASTVector.html#a641eadc4fe2a3674c23bf5a17f646129">reverse_iterator</a>;</div>
+<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div>
+<div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a08284bc5025dabc7204f4598333e03f5"> 95</a></span> <span class="keyword">typedef</span> T& <a class="code" href="classclang_1_1ASTVector.html#a08284bc5025dabc7204f4598333e03f5">reference</a>;</div>
+<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#aef047ef29671d4efa51c8ecc545a6bed"> 96</a></span> <span class="keyword">typedef</span> <span class="keyword">const</span> T& <a class="code" href="classclang_1_1ASTVector.html#aef047ef29671d4efa51c8ecc545a6bed">const_reference</a>;</div>
+<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a05a0e6ee23f0aee14c187b72a8a66afa"> 97</a></span> <span class="keyword">typedef</span> T* <a class="code" href="classclang_1_1ASTVector.html#a05a0e6ee23f0aee14c187b72a8a66afa">pointer</a>;</div>
+<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a4aa51cf8509af2bc9fdf8126d4864655"> 98</a></span> <span class="keyword">typedef</span> <span class="keyword">const</span> T* <a class="code" href="classclang_1_1ASTVector.html#a4aa51cf8509af2bc9fdf8126d4864655">const_pointer</a>;</div>
+<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div>
+<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment">// forward iterator creation methods.</span></div>
+<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f"> 101</a></span> <a class="code" href="classclang_1_1Stmt.html">iterator</a> <a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>() { <span class="keywordflow">return</span> Begin; }</div>
+<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a09868223d0ec7b846b934e1cc0dec23e"> 102</a></span> <a class="code" href="classclang_1_1Stmt.html">const_iterator</a> <a class="code" href="classclang_1_1ASTVector.html#a09868223d0ec7b846b934e1cc0dec23e">begin</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Begin; }</div>
+<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de"> 103</a></span> <a class="code" href="classclang_1_1Stmt.html">iterator</a> <a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>() { <span class="keywordflow">return</span> End; }</div>
+<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#aa2b8680d335c8e87d038fbb81c408f89"> 104</a></span> <a class="code" href="classclang_1_1Stmt.html">const_iterator</a> <a class="code" href="classclang_1_1ASTVector.html#aa2b8680d335c8e87d038fbb81c408f89">end</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> End; }</div>
+<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div>
+<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment">// reverse iterator creation methods.</span></div>
+<div class="line"><a name="l00107"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a2c6afe48552563d91d104425cdeeff8a"> 107</a></span> <a class="code" href="classclang_1_1ASTVector.html#a641eadc4fe2a3674c23bf5a17f646129">reverse_iterator</a> <a class="code" href="classclang_1_1ASTVector.html#a2c6afe48552563d91d104425cdeeff8a">rbegin</a>() { <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTVector.html#a641eadc4fe2a3674c23bf5a17f646129">reverse_iterator</a>(<a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()); }</div>
+<div class="line"><a name="l00108"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#abdb8ddf4a75d638ed63f95e629e88eae"> 108</a></span> <a class="code" href="classclang_1_1ASTVector.html#a35886aee911d388c26dca43b8f2e3e01">const_reverse_iterator</a> <a class="code" href="classclang_1_1ASTVector.html#abdb8ddf4a75d638ed63f95e629e88eae">rbegin</a>()<span class="keyword"> const</span>{ <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTVector.html#a35886aee911d388c26dca43b8f2e3e01">const_reverse_iterator</a>(<a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()); }</div>
+<div class="line"><a name="l00109"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a624ba9eef50bd40c9ba71dd9bd8ee64f"> 109</a></span> <a class="code" href="classclang_1_1ASTVector.html#a641eadc4fe2a3674c23bf5a17f646129">reverse_iterator</a> <a class="code" href="classclang_1_1ASTVector.html#a624ba9eef50bd40c9ba71dd9bd8ee64f">rend</a>() { <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTVector.html#a641eadc4fe2a3674c23bf5a17f646129">reverse_iterator</a>(<a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>()); }</div>
+<div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#ac4459f290b187f2caefa275efcc4e05f"> 110</a></span> <a class="code" href="classclang_1_1ASTVector.html#a35886aee911d388c26dca43b8f2e3e01">const_reverse_iterator</a> <a class="code" href="classclang_1_1ASTVector.html#ac4459f290b187f2caefa275efcc4e05f">rend</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTVector.html#a35886aee911d388c26dca43b8f2e3e01">const_reverse_iterator</a>(<a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>());}</div>
+<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div>
+<div class="line"><a name="l00112"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a470156fe3cfd95392d7d5a77104af218"> 112</a></span> <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1ASTVector.html#a470156fe3cfd95392d7d5a77104af218">empty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Begin == End; }</div>
+<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a91c5d64d94979c7d6cf707c8ab167545"> 113</a></span> <a class="code" href="classclang_1_1ASTVector.html#a8dab9d9b05fbfbdc4909663c02a1510a">size_type</a> <a class="code" href="classclang_1_1ASTVector.html#a91c5d64d94979c7d6cf707c8ab167545">size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> End-Begin; }</div>
+<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div>
+<div class="line"><a name="l00115"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#ae67e434a7c25989fc8253c48e9bdfca7"> 115</a></span> <a class="code" href="classclang_1_1Stmt.html">reference</a> <a class="code" href="classclang_1_1ASTVector.html#ae67e434a7c25989fc8253c48e9bdfca7">operator[]</a>(<span class="keywordtype">unsigned</span> idx) {</div>
+<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> assert(Begin + idx < End);</div>
+<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="keywordflow">return</span> Begin[idx];</div>
+<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> }</div>
+<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a534618a64fc0eac5a751c09fac0dda39"> 119</a></span> <a class="code" href="classclang_1_1Stmt.html">const_reference</a> <a class="code" href="classclang_1_1ASTVector.html#a534618a64fc0eac5a751c09fac0dda39">operator[]</a>(<span class="keywordtype">unsigned</span> idx)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> assert(Begin + idx < End);</div>
+<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="keywordflow">return</span> Begin[idx];</div>
+<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> }</div>
+<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div>
+<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a6670115fc03e6a99123f9285baf9a619"> 124</a></span> <a class="code" href="classclang_1_1Stmt.html">reference</a> <a class="code" href="classclang_1_1ASTVector.html#a6670115fc03e6a99123f9285baf9a619">front</a>() {</div>
+<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>()[0];</div>
+<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> }</div>
+<div class="line"><a name="l00127"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a95765af68d2df070ea06128037967508"> 127</a></span> <a class="code" href="classclang_1_1Stmt.html">const_reference</a> <a class="code" href="classclang_1_1ASTVector.html#a95765af68d2df070ea06128037967508">front</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>()[0];</div>
+<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> }</div>
+<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div>
+<div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#adb96809e46f2d7026d28db002c1a7e0c"> 131</a></span> <a class="code" href="classclang_1_1Stmt.html">reference</a> <a class="code" href="classclang_1_1ASTVector.html#adb96809e46f2d7026d28db002c1a7e0c">back</a>() {</div>
+<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()[-1];</div>
+<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> }</div>
+<div class="line"><a name="l00134"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a163123e8a19b85f4eca67616c0c631f0"> 134</a></span> <a class="code" href="classclang_1_1Stmt.html">const_reference</a> <a class="code" href="classclang_1_1ASTVector.html#a163123e8a19b85f4eca67616c0c631f0">back</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()[-1];</div>
+<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> }</div>
+<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div>
+<div class="line"><a name="l00138"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a2674b22574b6161c89b879773bd0e7db"> 138</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTVector.html#a2674b22574b6161c89b879773bd0e7db">pop_back</a>() {</div>
+<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> --End;</div>
+<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> End->~T();</div>
+<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> }</div>
+<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div>
+<div class="line"><a name="l00143"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a7e7b6c33b95b9862da4458f610d0b896"> 143</a></span> T <a class="code" href="classclang_1_1ASTVector.html#a7e7b6c33b95b9862da4458f610d0b896">pop_back_val</a>() {</div>
+<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> T Result = <a class="code" href="classclang_1_1ASTVector.html#adb96809e46f2d7026d28db002c1a7e0c">back</a>();</div>
+<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <a class="code" href="classclang_1_1ASTVector.html#a2674b22574b6161c89b879773bd0e7db">pop_back</a>();</div>
+<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="keywordflow">return</span> Result;</div>
+<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> }</div>
+<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div>
+<div class="line"><a name="l00149"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a805e2396c42b4f6fc0e991c962b074d1"> 149</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTVector.html#a805e2396c42b4f6fc0e991c962b074d1">clear</a>() {</div>
+<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="keywordflow">if</span> (llvm::is_class<T>::value) {</div>
+<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> destroy_range(Begin, End);</div>
+<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> }</div>
+<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> End = Begin;</div>
+<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> }</div>
+<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment"></span></div>
+<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment"> /// data - Return a pointer to the vector's buffer, even if empty().</span></div>
+<div class="line"><a name="l00157"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a9371441971f3239747c450976533a499"> 157</a></span> <span class="comment"></span> <a class="code" href="classclang_1_1Stmt.html">pointer</a> <a class="code" href="classclang_1_1ASTVector.html#a9371441971f3239747c450976533a499" title="data - Return a pointer to the vector's buffer, even if empty().">data</a>() {</div>
+<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTVector.html#a05a0e6ee23f0aee14c187b72a8a66afa">pointer</a>(Begin);</div>
+<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> }</div>
+<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment"></span></div>
+<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment"> /// data - Return a pointer to the vector's buffer, even if empty().</span></div>
+<div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a4b27d83aa8ee8cbbe403c408935b1a73"> 162</a></span> <span class="comment"></span> <a class="code" href="classclang_1_1Stmt.html">const_pointer</a> <a class="code" href="classclang_1_1ASTVector.html#a4b27d83aa8ee8cbbe403c408935b1a73" title="data - Return a pointer to the vector's buffer, even if empty().">data</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="keywordflow">return</span> <a class="code" href="classclang_1_1ASTVector.html#a4aa51cf8509af2bc9fdf8126d4864655">const_pointer</a>(Begin);</div>
+<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> }</div>
+<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div>
+<div class="line"><a name="l00166"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a9ff96db4e1d2133029f68e51b6bfe2f9"> 166</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTVector.html#a9ff96db4e1d2133029f68e51b6bfe2f9">push_back</a>(<a class="code" href="classclang_1_1Stmt.html">const_reference</a> Elt, <span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C) {</div>
+<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="keywordflow">if</span> (End < this-><a class="code" href="classclang_1_1ASTVector.html#a7162f584db7ecc8ef5d3a6288c53391d">capacity_ptr</a>()) {</div>
+<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> Retry:</div>
+<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="keyword">new</span> (End) T(Elt);</div>
+<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> ++End;</div>
+<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> }</div>
+<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> grow(C);</div>
+<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="keywordflow">goto</span> Retry;</div>
+<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> }</div>
+<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div>
+<div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a5f74ffc117f765ac9cc0c5dc1fb1bd10"> 177</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTVector.html#a5f74ffc117f765ac9cc0c5dc1fb1bd10">reserve</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <span class="keywordtype">unsigned</span> N) {</div>
+<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="keywordflow">if</span> (<span class="keywordtype">unsigned</span>(this-><a class="code" href="classclang_1_1ASTVector.html#a7162f584db7ecc8ef5d3a6288c53391d">capacity_ptr</a>()-Begin) < N)</div>
+<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> grow(C, N);</div>
+<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> }</div>
+<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment"></span></div>
+<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment"> /// capacity - Return the total number of elements in the currently allocated</span></div>
+<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="comment"> /// buffer.</span></div>
+<div class="line"><a name="l00184"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a9ba1e06984fc180b975afa492d897047"> 184</a></span> <span class="comment"></span> <span class="keywordtype">size_t</span> <a class="code" href="classclang_1_1ASTVector.html#a9ba1e06984fc180b975afa492d897047">capacity</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-><a class="code" href="classclang_1_1ASTVector.html#a7162f584db7ecc8ef5d3a6288c53391d">capacity_ptr</a>() - Begin; }</div>
+<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment"></span></div>
+<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment"> /// append - Add the specified range to the end of the SmallVector.</span></div>
+<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment"></span> <span class="keyword">template</span><<span class="keyword">typename</span> in_iter></div>
+<div class="line"><a name="l00189"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#acac24d64b4a41dec82a7bdd65174ee2e"> 189</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTVector.html#acac24d64b4a41dec82a7bdd65174ee2e">append</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, in_iter in_start, in_iter in_end) {</div>
+<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <a class="code" href="classclang_1_1ASTVector.html#a8dab9d9b05fbfbdc4909663c02a1510a">size_type</a> NumInputs = std::distance(in_start, in_end);</div>
+<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div>
+<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="keywordflow">if</span> (NumInputs == 0)</div>
+<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div>
+<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="comment">// Grow allocated space if needed.</span></div>
+<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="keywordflow">if</span> (NumInputs > <a class="code" href="classclang_1_1ASTVector.html#a8dab9d9b05fbfbdc4909663c02a1510a">size_type</a>(this-><a class="code" href="classclang_1_1ASTVector.html#a7162f584db7ecc8ef5d3a6288c53391d">capacity_ptr</a>()-this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()))</div>
+<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> this->grow(C, this-><a class="code" href="classclang_1_1ASTVector.html#a91c5d64d94979c7d6cf707c8ab167545">size</a>()+NumInputs);</div>
+<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> </div>
+<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="comment">// Copy the new elements over.</span></div>
+<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment">// TODO: NEED To compile time dispatch on whether in_iter is a random access</span></div>
+<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment">// iterator to use the fast uninitialized_copy.</span></div>
+<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> std::uninitialized_copy(in_start, in_end, this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>());</div>
+<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> this->setEnd(this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>() + NumInputs);</div>
+<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> }</div>
+<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment"></span></div>
+<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment"> /// append - Add the specified range to the end of the SmallVector.</span></div>
+<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="comment"> ///</span></div>
+<div class="line"><a name="l00208"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a6e4d60623084eb9b7ee3376ab616787b"> 208</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTVector.html#a6e4d60623084eb9b7ee3376ab616787b">append</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <a class="code" href="classclang_1_1ASTVector.html#a8dab9d9b05fbfbdc4909663c02a1510a">size_type</a> NumInputs, <span class="keyword">const</span> T &Elt) {</div>
+<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment">// Grow allocated space if needed.</span></div>
+<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="keywordflow">if</span> (NumInputs > <a class="code" href="classclang_1_1ASTVector.html#a8dab9d9b05fbfbdc4909663c02a1510a">size_type</a>(this-><a class="code" href="classclang_1_1ASTVector.html#a7162f584db7ecc8ef5d3a6288c53391d">capacity_ptr</a>()-this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()))</div>
+<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> this->grow(C, this-><a class="code" href="classclang_1_1ASTVector.html#a91c5d64d94979c7d6cf707c8ab167545">size</a>()+NumInputs);</div>
+<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div>
+<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="comment">// Copy the new elements over.</span></div>
+<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> std::uninitialized_fill_n(this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>(), NumInputs, Elt);</div>
+<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> this->setEnd(this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>() + NumInputs);</div>
+<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> }</div>
+<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="comment"></span></div>
+<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="comment"> /// uninitialized_copy - Copy the range [I, E) onto the uninitialized memory</span></div>
+<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="comment"> /// starting with "Dest", constructing elements into it as needed.</span></div>
+<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="comment"></span> <span class="keyword">template</span><<span class="keyword">typename</span> It1, <span class="keyword">typename</span> It2></div>
+<div class="line"><a name="l00221"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a815c7e2cb53bc0cf8f0e119de6083554"> 221</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTVector.html#a815c7e2cb53bc0cf8f0e119de6083554">uninitialized_copy</a>(It1 I, It1 E, It2 Dest) {</div>
+<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> std::uninitialized_copy(I, E, Dest);</div>
+<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> }</div>
+<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div>
+<div class="line"><a name="l00225"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a39057847733da40148a7b34e2549b31c"> 225</a></span> <a class="code" href="classclang_1_1Stmt.html">iterator</a> <a class="code" href="classclang_1_1ASTVector.html#a39057847733da40148a7b34e2549b31c">insert</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <a class="code" href="classclang_1_1Stmt.html">iterator</a> I, <span class="keyword">const</span> T &Elt) {</div>
+<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="keywordflow">if</span> (I == this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()) { <span class="comment">// Important special case for empty vector.</span></div>
+<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <a class="code" href="classclang_1_1ASTVector.html#a9ff96db4e1d2133029f68e51b6bfe2f9">push_back</a>(Elt, C);</div>
+<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="keywordflow">return</span> this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()-1;</div>
+<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> }</div>
+<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div>
+<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="keywordflow">if</span> (this->End < this-><a class="code" href="classclang_1_1ASTVector.html#a7162f584db7ecc8ef5d3a6288c53391d">capacity_ptr</a>()) {</div>
+<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> Retry:</div>
+<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="keyword">new</span> (this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()) T(this-><a class="code" href="classclang_1_1ASTVector.html#adb96809e46f2d7026d28db002c1a7e0c">back</a>());</div>
+<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> this->setEnd(this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()+1);</div>
+<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment">// Push everything else over.</span></div>
+<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> std::copy_backward(I, this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()-1, this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>());</div>
+<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> *I = Elt;</div>
+<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="keywordflow">return</span> I;</div>
+<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> }</div>
+<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="keywordtype">size_t</span> EltNo = I-this-><a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>();</div>
+<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> this->grow(C);</div>
+<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> I = this-><a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>()+EltNo;</div>
+<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="keywordflow">goto</span> Retry;</div>
+<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> }</div>
+<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> </div>
+<div class="line"><a name="l00246"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a30d816691ca460212a79b6ee194bc333"> 246</a></span> <a class="code" href="classclang_1_1Stmt.html">iterator</a> <a class="code" href="classclang_1_1ASTVector.html#a39057847733da40148a7b34e2549b31c">insert</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <a class="code" href="classclang_1_1Stmt.html">iterator</a> I, <a class="code" href="classclang_1_1ASTVector.html#a8dab9d9b05fbfbdc4909663c02a1510a">size_type</a> NumToInsert,</div>
+<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="keyword">const</span> T &Elt) {</div>
+<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="keywordflow">if</span> (I == this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()) { <span class="comment">// Important special case for empty vector.</span></div>
+<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <a class="code" href="classclang_1_1ASTVector.html#acac24d64b4a41dec82a7bdd65174ee2e">append</a>(C, NumToInsert, Elt);</div>
+<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="keywordflow">return</span> this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()-1;</div>
+<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> }</div>
+<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> </div>
+<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="comment">// Convert iterator to elt# to avoid invalidating iterator when we reserve()</span></div>
+<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="keywordtype">size_t</span> InsertElt = I - this-><a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>();</div>
+<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div>
+<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="comment">// Ensure there is enough space.</span></div>
+<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <a class="code" href="classclang_1_1ASTVector.html#a5f74ffc117f765ac9cc0c5dc1fb1bd10">reserve</a>(C, static_cast<unsigned>(this-><a class="code" href="classclang_1_1ASTVector.html#a91c5d64d94979c7d6cf707c8ab167545">size</a>() + NumToInsert));</div>
+<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div>
+<div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="comment">// Uninvalidate the iterator.</span></div>
+<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> I = this-><a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>()+InsertElt;</div>
+<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div>
+<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="comment">// If there are more elements between the insertion point and the end of the</span></div>
+<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="comment">// range than there are being inserted, we can use a simple approach to</span></div>
+<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="comment">// insertion. Since we already reserved space, we know that this won't</span></div>
+<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="comment">// reallocate the vector.</span></div>
+<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="keywordflow">if</span> (<span class="keywordtype">size_t</span>(this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()-I) >= NumToInsert) {</div>
+<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> T *OldEnd = this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>();</div>
+<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <a class="code" href="classclang_1_1ASTVector.html#acac24d64b4a41dec82a7bdd65174ee2e">append</a>(C, this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()-NumToInsert, this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>());</div>
+<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> </div>
+<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="comment">// Copy the existing elements that get replaced.</span></div>
+<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> std::copy_backward(I, OldEnd-NumToInsert, OldEnd);</div>
+<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div>
+<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> std::fill_n(I, NumToInsert, Elt);</div>
+<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="keywordflow">return</span> I;</div>
+<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> }</div>
+<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> </div>
+<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="comment">// Otherwise, we're inserting more elements than exist already, and we're</span></div>
+<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="comment">// not inserting at the end.</span></div>
+<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> </div>
+<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="comment">// Copy over the elements that we're about to overwrite.</span></div>
+<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> T *OldEnd = this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>();</div>
+<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> this->setEnd(this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>() + NumToInsert);</div>
+<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="keywordtype">size_t</span> NumOverwritten = OldEnd-I;</div>
+<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> this-><a class="code" href="classclang_1_1ASTVector.html#a815c7e2cb53bc0cf8f0e119de6083554">uninitialized_copy</a>(I, OldEnd, this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()-NumOverwritten);</div>
+<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> </div>
+<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="comment">// Replace the overwritten part.</span></div>
+<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> std::fill_n(I, NumOverwritten, Elt);</div>
+<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div>
+<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="comment">// Insert the non-overwritten middle part.</span></div>
+<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> std::uninitialized_fill_n(OldEnd, NumToInsert-NumOverwritten, Elt);</div>
+<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="keywordflow">return</span> I;</div>
+<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> }</div>
+<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> </div>
+<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="keyword">template</span><<span class="keyword">typename</span> ItTy></div>
+<div class="line"><a name="l00295"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#ae9dda03e268e7f48dd20fe85ba2a31dd"> 295</a></span> <a class="code" href="classclang_1_1Stmt.html">iterator</a> <a class="code" href="classclang_1_1ASTVector.html#ae9dda03e268e7f48dd20fe85ba2a31dd">insert</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <a class="code" href="classclang_1_1Stmt.html">iterator</a> I, ItTy From, ItTy To) {</div>
+<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="keywordflow">if</span> (I == this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()) { <span class="comment">// Important special case for empty vector.</span></div>
+<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <a class="code" href="classclang_1_1ASTVector.html#acac24d64b4a41dec82a7bdd65174ee2e">append</a>(C, From, To);</div>
+<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="keywordflow">return</span> this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()-1;</div>
+<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> }</div>
+<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> </div>
+<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> <span class="keywordtype">size_t</span> NumToInsert = std::distance(From, To);</div>
+<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="comment">// Convert iterator to elt# to avoid invalidating iterator when we reserve()</span></div>
+<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> <span class="keywordtype">size_t</span> InsertElt = I - this-><a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>();</div>
+<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> </div>
+<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="comment">// Ensure there is enough space.</span></div>
+<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> <a class="code" href="classclang_1_1ASTVector.html#a5f74ffc117f765ac9cc0c5dc1fb1bd10">reserve</a>(C, static_cast<unsigned>(this-><a class="code" href="classclang_1_1ASTVector.html#a91c5d64d94979c7d6cf707c8ab167545">size</a>() + NumToInsert));</div>
+<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> </div>
+<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> <span class="comment">// Uninvalidate the iterator.</span></div>
+<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> I = this-><a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>()+InsertElt;</div>
+<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> </div>
+<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="comment">// If there are more elements between the insertion point and the end of the</span></div>
+<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> <span class="comment">// range than there are being inserted, we can use a simple approach to</span></div>
+<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> <span class="comment">// insertion. Since we already reserved space, we know that this won't</span></div>
+<div class="line"><a name="l00314"></a><span class="lineno"> 314</span> <span class="comment">// reallocate the vector.</span></div>
+<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="keywordflow">if</span> (<span class="keywordtype">size_t</span>(this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()-I) >= NumToInsert) {</div>
+<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> T *OldEnd = this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>();</div>
+<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> <a class="code" href="classclang_1_1ASTVector.html#acac24d64b4a41dec82a7bdd65174ee2e">append</a>(C, this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()-NumToInsert, this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>());</div>
+<div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div>
+<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> <span class="comment">// Copy the existing elements that get replaced.</span></div>
+<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> std::copy_backward(I, OldEnd-NumToInsert, OldEnd);</div>
+<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> </div>
+<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> std::copy(From, To, I);</div>
+<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="keywordflow">return</span> I;</div>
+<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> }</div>
+<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> </div>
+<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="comment">// Otherwise, we're inserting more elements than exist already, and we're</span></div>
+<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="comment">// not inserting at the end.</span></div>
+<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> </div>
+<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="comment">// Copy over the elements that we're about to overwrite.</span></div>
+<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> T *OldEnd = this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>();</div>
+<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> this->setEnd(this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>() + NumToInsert);</div>
+<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="keywordtype">size_t</span> NumOverwritten = OldEnd-I;</div>
+<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> this-><a class="code" href="classclang_1_1ASTVector.html#a815c7e2cb53bc0cf8f0e119de6083554">uninitialized_copy</a>(I, OldEnd, this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>()-NumOverwritten);</div>
+<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div>
+<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> <span class="comment">// Replace the overwritten part.</span></div>
+<div class="line"><a name="l00336"></a><span class="lineno"> 336</span> <span class="keywordflow">for</span> (; NumOverwritten > 0; --NumOverwritten) {</div>
+<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> *I = *From;</div>
+<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> ++I; ++From;</div>
+<div class="line"><a name="l00339"></a><span class="lineno"> 339</span> }</div>
+<div class="line"><a name="l00340"></a><span class="lineno"> 340</span> </div>
+<div class="line"><a name="l00341"></a><span class="lineno"> 341</span> <span class="comment">// Insert the non-overwritten middle part.</span></div>
+<div class="line"><a name="l00342"></a><span class="lineno"> 342</span> this-><a class="code" href="classclang_1_1ASTVector.html#a815c7e2cb53bc0cf8f0e119de6083554">uninitialized_copy</a>(From, To, OldEnd);</div>
+<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <span class="keywordflow">return</span> I;</div>
+<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> }</div>
+<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> </div>
+<div class="line"><a name="l00346"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a17fc96f55c0c233dcf968ed833750540"> 346</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1ASTVector.html#a17fc96f55c0c233dcf968ed833750540">resize</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <span class="keywordtype">unsigned</span> N, <span class="keyword">const</span> T &NV) {</div>
+<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> <span class="keywordflow">if</span> (N < this-><a class="code" href="classclang_1_1ASTVector.html#a91c5d64d94979c7d6cf707c8ab167545">size</a>()) {</div>
+<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> this->destroy_range(this-><a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>()+N, this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>());</div>
+<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> this->setEnd(this-><a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>()+N);</div>
+<div class="line"><a name="l00350"></a><span class="lineno"> 350</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (N > this-><a class="code" href="classclang_1_1ASTVector.html#a91c5d64d94979c7d6cf707c8ab167545">size</a>()) {</div>
+<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> <span class="keywordflow">if</span> (this-><a class="code" href="classclang_1_1ASTVector.html#a9ba1e06984fc180b975afa492d897047">capacity</a>() < N)</div>
+<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> this->grow(C, N);</div>
+<div class="line"><a name="l00353"></a><span class="lineno"> 353</span> construct_range(this-><a class="code" href="classclang_1_1ASTVector.html#ab8c57fad9e502348dfe3b7429a8d11de">end</a>(), this-><a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>()+N, NV);</div>
+<div class="line"><a name="l00354"></a><span class="lineno"> 354</span> this->setEnd(this-><a class="code" href="classclang_1_1ASTVector.html#a2a3333e56642da27e62a83be9219ba2f">begin</a>()+N);</div>
+<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> }</div>
+<div class="line"><a name="l00356"></a><span class="lineno"> 356</span> }</div>
+<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> </div>
+<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> <span class="keyword">private</span>:<span class="comment"></span></div>
+<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> <span class="comment"> /// grow - double the size of the allocated memory, guaranteeing space for at</span></div>
+<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> <span class="comment"> /// least one more element or MinSize if specified.</span></div>
+<div class="line"><a name="l00361"></a><span class="lineno"> 361</span> <span class="comment"></span> <span class="keywordtype">void</span> grow(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <a class="code" href="classclang_1_1ASTVector.html#a8dab9d9b05fbfbdc4909663c02a1510a">size_type</a> MinSize = 1);</div>
+<div class="line"><a name="l00362"></a><span class="lineno"> 362</span> </div>
+<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> <span class="keywordtype">void</span> construct_range(T *<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>, T *E, <span class="keyword">const</span> T &Elt) {</div>
+<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="keywordflow">for</span> (; S != E; ++<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>)</div>
+<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> <span class="keyword">new</span> (S) T(Elt);</div>
+<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> }</div>
+<div class="line"><a name="l00367"></a><span class="lineno"> 367</span> </div>
+<div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="keywordtype">void</span> destroy_range(T *S, T *E) {</div>
+<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> <span class="keywordflow">while</span> (S != E) {</div>
+<div class="line"><a name="l00370"></a><span class="lineno"> 370</span> --E;</div>
+<div class="line"><a name="l00371"></a><span class="lineno"> 371</span> E->~T();</div>
+<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> }</div>
+<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> }</div>
+<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> </div>
+<div class="line"><a name="l00375"></a><span class="lineno"> 375</span> <span class="keyword">protected</span>:</div>
+<div class="line"><a name="l00376"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#a7162f584db7ecc8ef5d3a6288c53391d"> 376</a></span> <a class="code" href="classclang_1_1Stmt.html">const_iterator</a> <a class="code" href="classclang_1_1ASTVector.html#a7162f584db7ecc8ef5d3a6288c53391d">capacity_ptr</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> <span class="keywordflow">return</span> (<a class="code" href="classclang_1_1Stmt.html">iterator</a>) Capacity.getPointer();</div>
+<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> }</div>
+<div class="line"><a name="l00379"></a><span class="lineno"><a class="code" href="classclang_1_1ASTVector.html#af02c57887d1911a3a34ee08f823de888"> 379</a></span> <a class="code" href="classclang_1_1Stmt.html">iterator</a> <a class="code" href="classclang_1_1ASTVector.html#af02c57887d1911a3a34ee08f823de888">capacity_ptr</a>() { <span class="keywordflow">return</span> (<a class="code" href="classclang_1_1Stmt.html">iterator</a>)Capacity.getPointer(); }</div>
+<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> };</div>
+<div class="line"><a name="l00381"></a><span class="lineno"> 381</span> </div>
+<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="comment">// Define this out-of-line to dissuade the C++ compiler from inlining it.</span></div>
+<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
+<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> <span class="keywordtype">void</span> ASTVector<T>::grow(<span class="keyword">const</span> ASTContext &C, <span class="keywordtype">size_t</span> MinSize) {</div>
+<div class="line"><a name="l00385"></a><span class="lineno"> 385</span> <span class="keywordtype">size_t</span> CurCapacity = this->capacity();</div>
+<div class="line"><a name="l00386"></a><span class="lineno"> 386</span> <span class="keywordtype">size_t</span> CurSize = size();</div>
+<div class="line"><a name="l00387"></a><span class="lineno"> 387</span> <span class="keywordtype">size_t</span> NewCapacity = 2*CurCapacity;</div>
+<div class="line"><a name="l00388"></a><span class="lineno"> 388</span> <span class="keywordflow">if</span> (NewCapacity < MinSize)</div>
+<div class="line"><a name="l00389"></a><span class="lineno"> 389</span> NewCapacity = MinSize;</div>
+<div class="line"><a name="l00390"></a><span class="lineno"> 390</span> </div>
+<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> <span class="comment">// Allocate the memory from the ASTContext.</span></div>
+<div class="line"><a name="l00392"></a><span class="lineno"> 392</span> T *NewElts = <span class="keyword">new</span> (C, llvm::alignOf<T>()) T[NewCapacity];</div>
+<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> </div>
+<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> <span class="comment">// Copy the elements over.</span></div>
+<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> <span class="keywordflow">if</span> (llvm::is_class<T>::value) {</div>
+<div class="line"><a name="l00396"></a><span class="lineno"> 396</span> std::uninitialized_copy(Begin, End, NewElts);</div>
+<div class="line"><a name="l00397"></a><span class="lineno"> 397</span> <span class="comment">// Destroy the original elements.</span></div>
+<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> destroy_range(Begin, End);</div>
+<div class="line"><a name="l00399"></a><span class="lineno"> 399</span> }</div>
+<div class="line"><a name="l00400"></a><span class="lineno"> 400</span> <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> <span class="comment">// Use memcpy for PODs (std::uninitialized_copy optimizes to memmove).</span></div>
+<div class="line"><a name="l00402"></a><span class="lineno"> 402</span> memcpy(NewElts, Begin, CurSize * <span class="keyword">sizeof</span>(T));</div>
+<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> }</div>
+<div class="line"><a name="l00404"></a><span class="lineno"> 404</span> </div>
+<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="comment">// ASTContext never frees any memory.</span></div>
+<div class="line"><a name="l00406"></a><span class="lineno"> 406</span> Begin = NewElts;</div>
+<div class="line"><a name="l00407"></a><span class="lineno"> 407</span> End = NewElts+CurSize;</div>
+<div class="line"><a name="l00408"></a><span class="lineno"> 408</span> Capacity.setPointer(Begin+NewCapacity);</div>
+<div class="line"><a name="l00409"></a><span class="lineno"> 409</span> }</div>
+<div class="line"><a name="l00410"></a><span class="lineno"> 410</span> </div>
+<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> } <span class="comment">// end: clang namespace</span></div>
+<div class="line"><a name="l00412"></a><span class="lineno"> 412</span> <span class="preprocessor">#endif</span></div>
+</div><!-- fragment --></div><!-- contents -->
+<hr>
+<p class="footer">
+Generated on Mon May 12 2014 12:13:16 for r$LatestRev$ by <a href="http://www.doxygen.org">Doxygen
+1.8.3.1</a>.</p>
+<p class="footer">
+See the <a href="http://clang.llvm.org">Main Clang Web Page</a> for more
+information.</p>
+</body>
+</html>
More information about the llvm-commits
mailing list