Skip to content

Commit

Permalink
Deploying to gh-pages from @ 30444b0 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
github-merge-queue[bot] committed Aug 22, 2024
1 parent c695f76 commit 1e497f1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 32 deletions.
2 changes: 1 addition & 1 deletion class_p4_1_1_validate_string_annotations-members.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>setName</b>(const char *name) (defined in <a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a>)</td><td class="entry"><a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="odd"><td class="entry"><b>split_link</b> (defined in <a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a>)</td><td class="entry"><a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>split_link_mem</b> (defined in <a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a>)</td><td class="entry"><a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0" class="odd"><td class="entry"><b>ValidateStringAnnotations</b>() (defined in <a class="el" href="class_p4_1_1_validate_string_annotations.html">P4::ValidateStringAnnotations</a>)</td><td class="entry"><a class="el" href="class_p4_1_1_validate_string_annotations.html">P4::ValidateStringAnnotations</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">explicit</span></td></tr>
<tr bgcolor="#f0f0f0" class="odd"><td class="entry"><b>ValidateStringAnnotations</b>()=default (defined in <a class="el" href="class_p4_1_1_validate_string_annotations.html">P4::ValidateStringAnnotations</a>)</td><td class="entry"><a class="el" href="class_p4_1_1_validate_string_annotations.html">P4::ValidateStringAnnotations</a></td><td class="entry"><span class="mlabel">explicit</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>visit</b>(const IR::Node *&amp;n, const char *name=0) (defined in <a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a>)</td><td class="entry"><a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="odd"><td class="entry"><b>visit</b>(const IR::Node *const &amp;n, const char *name=0) (defined in <a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a>)</td><td class="entry"><a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>visit</b>(const IR::Node *&amp;n, const char *name, int cidx) (defined in <a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a>)</td><td class="entry"><a class="el" href="class_p4_1_1_visitor.html">P4::Visitor</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
Expand Down
60 changes: 29 additions & 31 deletions validate_string_annotations_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,40 +144,38 @@
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include &quot;ir/ir.h&quot;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include &quot;lib/error.h&quot;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_p4.html">P4</a> {</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="foldopen" id="foldopen00029" data-start="{" data-end="};">
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="class_p4_1_1_validate_string_annotations.html"> 29</a></span><span class="keyword">class </span><a class="code hl_class" href="class_p4_1_1_validate_string_annotations.html">ValidateStringAnnotations</a> final : <span class="keyword">public</span> <a class="code hl_class" href="class_p4_1_1_inspector.html">Inspector</a> {</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <a class="code hl_class" href="class_p4_1_1_type_map.html">TypeMap</a> *typeMap;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_p4.html">P4</a> {</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="foldopen" id="foldopen00028" data-start="{" data-end="};">
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="class_p4_1_1_validate_string_annotations.html"> 28</a></span><span class="keyword">class </span><a class="code hl_class" href="class_p4_1_1_validate_string_annotations.html">ValidateStringAnnotations</a> final : <span class="keyword">public</span> <a class="code hl_class" href="class_p4_1_1_inspector.html">Inspector</a> {</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">explicit</span> <a class="code hl_class" href="class_p4_1_1_validate_string_annotations.html">ValidateStringAnnotations</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">explicit</span> <a class="code hl_class" href="class_p4_1_1_validate_string_annotations.html">ValidateStringAnnotations</a>() {}</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keywordtype">void</span> postorder(<span class="keyword">const</span> IR::Annotation *annotation)<span class="keyword"> override </span>{</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">const</span> <span class="keyword">auto</span> name = annotation-&gt;name;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">if</span> (name != IR::Annotation::nameAnnotation &amp;&amp;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> name != IR::Annotation::deprecatedAnnotation &amp;&amp;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> name != IR::Annotation::noWarnAnnotation) {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> }</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordflow">if</span> (annotation-&gt;expr.size() != 1)</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_function" href="namespace_p4.html#a9fe6085b1cee8f21f098c9db89644b58">error</a>(ErrorType::ERR_INVALID, <span class="stringliteral">&quot;%1%: annotation must have exactly 1 argument&quot;</span>,</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> annotation);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">auto</span> e0 = annotation-&gt;expr.at(0);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keywordflow">if</span> (!e0-&gt;is&lt;IR::StringLiteral&gt;())</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_function" href="namespace_p4.html#a9fe6085b1cee8f21f098c9db89644b58">error</a>(ErrorType::ERR_TYPE_ERROR, <span class="stringliteral">&quot;%1%: @%2% annotation&#39;s value must be a string&quot;</span>, e0,</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> annotation-&gt;name.originalName);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> }</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span>};</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordtype">void</span> postorder(<span class="keyword">const</span> IR::Annotation *annotation)<span class="keyword"> override </span>{</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">const</span> <span class="keyword">auto</span> name = annotation-&gt;name;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keywordflow">if</span> (name != IR::Annotation::nameAnnotation &amp;&amp;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> name != IR::Annotation::deprecatedAnnotation &amp;&amp;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> name != IR::Annotation::noWarnAnnotation) {</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> }</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">if</span> (annotation-&gt;expr.size() != 1) {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <a class="code hl_function" href="namespace_p4.html#a9fe6085b1cee8f21f098c9db89644b58">error</a>(ErrorType::ERR_INVALID, <span class="stringliteral">&quot;%1%: annotation must have exactly 1 argument&quot;</span>,</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> annotation);</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> }</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">const</span> <span class="keyword">auto</span> *e0 = annotation-&gt;expr.at(0);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keywordflow">if</span> (!e0-&gt;is&lt;IR::StringLiteral&gt;()) {</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <a class="code hl_function" href="namespace_p4.html#a9fe6085b1cee8f21f098c9db89644b58">error</a>(ErrorType::ERR_TYPE_ERROR, <span class="stringliteral">&quot;%1%: @%2% annotation&#39;s value must be a string&quot;</span>, e0,</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> annotation-&gt;name.originalName);</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> }</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> }</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span>};</div>
</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>} <span class="comment">// namespace P4</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="preprocessor">#endif </span><span class="comment">/* FRONTENDS_P4_VALIDATESTRINGANNOTATIONS_H_ */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span>} <span class="comment">// namespace P4</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="preprocessor">#endif </span><span class="comment">/* FRONTENDS_P4_VALIDATESTRINGANNOTATIONS_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aclass_p4_1_1_inspector_html"><div class="ttname"><a href="class_p4_1_1_inspector.html">P4::Inspector</a></div><div class="ttdef"><b>Definition</b> visitor.h:400</div></div>
<div class="ttc" id="aclass_p4_1_1_type_map_html"><div class="ttname"><a href="class_p4_1_1_type_map.html">P4::TypeMap</a></div><div class="ttdef"><b>Definition</b> typeMap.h:41</div></div>
<div class="ttc" id="aclass_p4_1_1_validate_string_annotations_html"><div class="ttname"><a href="class_p4_1_1_validate_string_annotations.html">P4::ValidateStringAnnotations</a></div><div class="ttdef"><b>Definition</b> validateStringAnnotations.h:29</div></div>
<div class="ttc" id="aclass_p4_1_1_validate_string_annotations_html"><div class="ttname"><a href="class_p4_1_1_validate_string_annotations.html">P4::ValidateStringAnnotations</a></div><div class="ttdef"><b>Definition</b> validateStringAnnotations.h:28</div></div>
<div class="ttc" id="anamespace_p4_html"><div class="ttname"><a href="namespace_p4.html">P4</a></div><div class="ttdoc">TODO: this is not really specific to BMV2, it should reside somewhere else.</div><div class="ttdef"><b>Definition</b> applyOptionsPragmas.cpp:24</div></div>
<div class="ttc" id="anamespace_p4_html_a9fe6085b1cee8f21f098c9db89644b58"><div class="ttname"><a href="namespace_p4.html#a9fe6085b1cee8f21f098c9db89644b58">P4::error</a></div><div class="ttdeci">void error(const char *format, Args &amp;&amp;...args)</div><div class="ttdoc">Report an error with the given message.</div><div class="ttdef"><b>Definition</b> error.h:51</div></div>
</div><!-- fragment --></div><!-- contents -->
Expand Down

0 comments on commit 1e497f1

Please sign in to comment.