Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-query crashes when doing tab completion for dynamic matchers #21600

Closed
llvmbot opened this issue Oct 9, 2014 · 2 comments
Closed

clang-query crashes when doing tab completion for dynamic matchers #21600

llvmbot opened this issue Oct 9, 2014 · 2 comments
Labels
bugzilla Issues migrated from bugzilla clang-tools-extra

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Oct 9, 2014

Bugzilla Link 21226
Resolution FIXED
Resolved on Oct 09, 2014 17:10
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

clang-query> m classTemplateSpecializationDecl(
clang-query: /usr/local/google/home/klimek/src/llvm/tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h:51: ast_type_traits::ASTNodeKind clang::ast_matchers::dynamic::ArgKind::getMatcherKind() const: Assertion `K == AK_Matcher' failed.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Oct 9, 2014

The overloads for isSameOrDerivedFrom break the assumption at Registry.cpp:441:

// This currently assumes that a matcher may not overload a
// non-matcher, and all non-matcher overloads have identical
// arguments.

isSameOrDerivedFrom() has an overload for Matcher and for StringRef.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Oct 10, 2014

Fixed at r219450

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang-tools-extra
Projects
None yet
Development

No branches or pull requests

1 participant