@@ -4322,7 +4322,7 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
4322
4322
4323
4323
4324
4324
<tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1FunctionDecl.html">FunctionDecl</a>></td><td class="name" onclick="toggle('isInline1')"><a name="isInline1Anchor">isInline</a></td><td></td></tr>
4325
- <tr><td colspan="4" class="doc" id="isInline1"><pre>Matches function and namespace declarations that are marked with
4325
+ <tr><td colspan="4" class="doc" id="isInline1"><pre>Matches functions, variables and namespace declarations that are marked with
4326
4326
the inline keyword.
4327
4327
4328
4328
Given
@@ -4331,8 +4331,10 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
4331
4331
namespace n {
4332
4332
inline namespace m {}
4333
4333
}
4334
+ inline int Foo = 5;
4334
4335
functionDecl(isInline()) will match ::f().
4335
4336
namespaceDecl(isInline()) will match n::m.
4337
+ varDecl(isInline()) will match Foo;
4336
4338
</pre></td></tr>
4337
4339
4338
4340
@@ -4697,7 +4699,7 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
4697
4699
4698
4700
4699
4701
<tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1NamespaceDecl.html">NamespaceDecl</a>></td><td class="name" onclick="toggle('isInline0')"><a name="isInline0Anchor">isInline</a></td><td></td></tr>
4700
- <tr><td colspan="4" class="doc" id="isInline0"><pre>Matches function and namespace declarations that are marked with
4702
+ <tr><td colspan="4" class="doc" id="isInline0"><pre>Matches functions, variables and namespace declarations that are marked with
4701
4703
the inline keyword.
4702
4704
4703
4705
Given
@@ -4706,8 +4708,10 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
4706
4708
namespace n {
4707
4709
inline namespace m {}
4708
4710
}
4711
+ inline int Foo = 5;
4709
4712
functionDecl(isInline()) will match ::f().
4710
4713
namespaceDecl(isInline()) will match n::m.
4714
+ varDecl(isInline()) will match Foo;
4711
4715
</pre></td></tr>
4712
4716
4713
4717
@@ -5728,6 +5732,23 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
5728
5732
</pre></td></tr>
5729
5733
5730
5734
5735
+ <tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1VarDecl.html">VarDecl</a>></td><td class="name" onclick="toggle('isInline2')"><a name="isInline2Anchor">isInline</a></td><td></td></tr>
5736
+ <tr><td colspan="4" class="doc" id="isInline2"><pre>Matches functions, variables and namespace declarations that are marked with
5737
+ the inline keyword.
5738
+
5739
+ Given
5740
+ inline void f();
5741
+ void g();
5742
+ namespace n {
5743
+ inline namespace m {}
5744
+ }
5745
+ inline int Foo = 5;
5746
+ functionDecl(isInline()) will match ::f().
5747
+ namespaceDecl(isInline()) will match n::m.
5748
+ varDecl(isInline()) will match Foo;
5749
+ </pre></td></tr>
5750
+
5751
+
5731
5752
<tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1VarDecl.html">VarDecl</a>></td><td class="name" onclick="toggle('isStaticLocal0')"><a name="isStaticLocal0Anchor">isStaticLocal</a></td><td></td></tr>
5732
5753
<tr><td colspan="4" class="doc" id="isStaticLocal0"><pre>Matches a static variable with local scope.
5733
5754
0 commit comments