[ASTMatchers] Expand isInline matcher to VarDecl
authorNathan James <n.james93@hotmail.co.uk>
Wed, 23 Feb 2022 08:33:58 +0000 (08:33 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Wed, 23 Feb 2022 08:34:00 +0000 (08:34 +0000)
commitc34d89818341b3c7c96bc8f59e3f98063d4ae9fd
treecd2dc8dedeb01132a988c25adb9b672809be64ac
parentf85a6a812718cfdaeb1d0dc971ce3875aa82fafe
[ASTMatchers] Expand isInline matcher to VarDecl

Add support to the `isInline` matcher for C++17's inline variables.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D118900
clang/docs/LibASTMatchersReference.html
clang/docs/ReleaseNotes.rst
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp