<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/162994>162994</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Linter crashes with file including <rerun.hpp>
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          stijn-vanesch
      </td>
    </tr>
</table>

<pre>
    The linter crashes during linting code with the include: `#include <rerun.hpp>`.

The version of rerun being used: `librerun-sdk-0.24.1`.

The following backtrace is the result:

`1.     <eof> parser at end of file
2.      ASTMatcher: Processing 'hicpp-move-const-arg' against:
        CXXConstructExpr : </home/my_project/.pixi/envs/jazzy/include/rerun/archetypes/../result.hpp:34:51, col:74>
--- Bound Nodes Begin ---
    call-move - { CallExpr : </home/my_project/.pixi/envs/jazzy/include/rerun/archetypes/../result.hpp:34:57, col:73> }
    invocation-parm - { ParmVarDecl status : </home/my_project/.pixi/envs/jazzy/include/rerun/archetypes/../error.hpp:117:15, col:36> }
    invocation-parm-type - { QualType : const arrow::Status & }
 receiving-expr - { CXXConstructExpr : </home/my_project/.pixi/envs/jazzy/include/rerun/archetypes/../result.hpp:34:51, col:74> }
--- Bound Nodes End ---
 #0 0x00007b604db2947f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/my_project/.pixi/envs/jazzy/bin/../lib/libLLVM.so.19.1+0xf2947f)
 #1 0x00007b604db26a4b SignalHandler(int) Signals.cpp:0:0
 #2 0x00007b604c842520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x000056f13072dcf8 clang::tidy::performance::MoveConstArgCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&) (/home/my_project/.pixi/envs/jazzy/bin/clang-tidy+0x7a1cf8)
 #4 0x00007b605722c26b clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::MatchVisitor::visitMatch(clang::ast_matchers::BoundNodes const&) ASTMatchFinder.cpp:0:0
 #5 0x00007b605725d591 clang::ast_matchers::internal::BoundNodesTreeBuilder::visitMatches(clang::ast_matchers::internal::BoundNodesTreeBuilder::Visitor*) (/home/my_project/.pixi/envs/jazzy/bin/../lib/libclang-cpp.so.19.1+0x165d591)
 #6 0x00007b605722d6a5 clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::matchWithFilter(clang::DynTypedNode const&) ASTMatchFinder.cpp:0:0
 #7 0x00007b605724c50f clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*>>>>*) (.constprop.0) ASTMatchFinder.cpp:0:0
 #8 0x00007b6057250f19 clang::RecursiveASTVisitor<clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor>::TraverseFunctionHelper(clang::FunctionDecl*) ASTMatchFinder.cpp:0:0
 #9 0x00007b6057255d53 clang::RecursiveASTVisitor<clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor>::TraverseCXXConstructorDecl(clang::CXXConstructorDecl*) ASTMatchFinder.cpp:0:0
#10 0x00007b6057246724 clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseDecl(clang::Decl*) ASTMatchFinder.cpp:0:0
#11 0x00007b605724682a clang::RecursiveASTVisitor<clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor>::TraverseDeclContextHelper(clang::DeclContext*) ASTMatchFinder.cpp:0:0
#12 0x00007b6057245502 clang::RecursiveASTVisitor<clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor>::TraverseDecl(clang::Decl*) ASTMatchFinder.cpp:0:0
#13 0x00007b6057246724 clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseDecl(clang::Decl*) ASTMatchFinder.cpp:0:0
#14 0x00007b605725679c clang::RecursiveASTVisitor<clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor>::TraverseClassTemplateDecl(clang::ClassTemplateDecl*) ASTMatchFinder.cpp:0:0
#15 0x00007b6057246724 clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseDecl(clang::Decl*) ASTMatchFinder.cpp:0:0
#16 0x00007b605724682a clang::RecursiveASTVisitor<clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor>::TraverseDeclContextHelper(clang::DeclContext*) ASTMatchFinder.cpp:0:0
#17 0x00007b6057253a50 clang::RecursiveASTVisitor<clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor>::TraverseNamespaceDecl(clang::NamespaceDecl*) ASTMatchFinder.cpp:0:0
#18 0x00007b6057246724 clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseDecl(clang::Decl*) ASTMatchFinder.cpp:0:0
#19 0x00007b605724682a clang::RecursiveASTVisitor<clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor>::TraverseDeclContextHelper(clang::DeclContext*) ASTMatchFinder.cpp:0:0
#20 0x00007b6057255c78 clang::RecursiveASTVisitor<clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor>::TraverseTranslationUnitDecl(clang::TranslationUnitDecl*) ASTMatchFinder.cpp:0:0
#21 0x00007b6057246724 clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseDecl(clang::Decl*) ASTMatchFinder.cpp:0:0
#22 0x00007b6057246a7a clang::ast_matchers::MatchFinder::matchAST(clang::ASTContext&) (/home/my_project/.pixi/envs/jazzy/bin/../lib/libclang-cpp.so.19.1+0x1646a7a)
#23 0x00007b6058f0dec8 clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/my_project/.pixi/envs/jazzy/bin/../lib/libclang-cpp.so.19.1+0x330dec8)
#24 0x00007b60568809ec clang::ParseAST(clang::Sema&, bool, bool) (/home/my_project/.pixi/envs/jazzy/bin/../lib/libclang-cpp.so.19.1+0xc809ec)
#25 0x00007b6058ecca59 clang::FrontendAction::Execute() (/home/my_project/.pixi/envs/jazzy/bin/../lib/libclang-cpp.so.19.1+0x32cca59)
#26 0x00007b6058e48317 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/my_project/.pixi/envs/jazzy/bin/../lib/libclang-cpp.so.19.1+0x3248317)
#27 0x00007b60590fd35b clang::tooling::FrontendActionFactory::runInvocation(std::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) (/home/my_project/.pixi/envs/jazzy/bin/../lib/libclang-cpp.so.19.1+0x34fd35b)
#28 0x000056f130943f5e clang::tidy::runClangTidy(clang::tidy::ClangTidyContext&, clang::tooling::CompilationDatabase const&, llvm::ArrayRef<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem>, bool, bool, llvm::StringRef)::ActionFactory::runInvocation(std::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) ClangTidy.cpp:0:0
#29 0x00007b60590f6c46 clang::tooling::ToolInvocation::runInvocation(char const*, clang::driver::Compilation*, std::shared_ptr<clang::CompilerInvocation>, std::shared_ptr<clang::PCHContainerOperations>) (/home/my_project/.pixi/envs/jazzy/bin/../lib/libclang-cpp.so.19.1+0x34f6c46)
#30 0x00007b60590f86b0 clang::tooling::ToolInvocation::run() (/home/my_project/.pixi/envs/jazzy/bin/../lib/libclang-cpp.so.19.1+0x34f86b0)
#31 0x00007b60590fa8b9 clang::tooling::ClangTool::run(clang::tooling::ToolAction*) (/home/my_project/.pixi/envs/jazzy/bin/../lib/libclang-cpp.so.19.1+0x34fa8b9)
#32 0x000056f13094bd7d clang::tidy::runClangTidy(clang::tidy::ClangTidyContext&, clang::tooling::CompilationDatabase const&, llvm::ArrayRef<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem>, bool, bool, llvm::StringRef) (/home/my_project/.pixi/envs/jazzy/bin/clang-tidy+0x9bfd7d)
#33 0x000056f1301c0dfa clang::tidy::clangTidyMain(int, char const**) (/home/my_project/.pixi/envs/jazzy/bin/clang-tidy+0x234dfa)
#34 0x00007b604c829d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#35 0x00007b604c829e40 call_init ./csu/../csu/libc-start.c:128:20
#36 0x00007b604c829e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#37 0x000056f1301b987c _start (/home/my_project/.pixi/envs/jazzy/bin/clang-tidy+0x22d87c)`
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsWl1v2zgW_TXMi2CDor4f_OA4MSZAM5NtvN15MyiKstlSpEBSrj2_fkFKtizFbdOPdNKdLRrbIqXLc-49vKSuhLVmG0HpDETXILq5wo3ZSjXThr0Xkx0WVJPtVS6Lw2y1pR5nwlDlEYX1lmqvaBQTG9dqv4ksqPeRma1nttRjgvCmoCCYeyCGAAVdgweChaKqEdNtXYPgFsRwCuAcwLkdYUeVZlJ4svTcSV5OrelG06KzxFnueia6-DCBUxRO_aGJUnIuP9qrckw-GIUJ9Zh2mBTVDTcgmLdngxj6UwAzECyoLEFw69VYaao8bDwqCguiZJwCOEf2tPnj6h4bsqXKQnlQklCt7TgAJVtG6npSyR2dECm0mWC1ASjx8AYzoU9DZos__1zYftUQc7uvledYBQuAlltZUYCW1WFdK_meEgPQclqzPQNoScVOA7R8j__66wDQ8uhbtHSuAGiJFdlSc6ipPW06dT2Wa-vkeRCCYB75AC08IjkI5kloXQ_nk8nEu5aNKLzfZUG1d003THiTyQTAued5HsGcO1rexAPJtbfAnP903MkZ7sCGCSQ3HT4mdpJgw6SY1FhVHcoHrKp3WN1Qwj1tsGn0y-GlS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