Skip to content

IntrospectionTest mostly does nothing when built by Clang #53594

@pogo59

Description

@pogo59

As a side project, I'm working on gtest features to detect unittests that have assertions that aren't executed. When I use gcc as my build compiler, IntrospectionTest builds and runs fine. However, when I use clang as my build compiler, IntrospectionTest builds but skips most of its tests; it appears that NodeIntrospection::hasIntrospectionSupport() returns false.

I've verified that my cmake commands for both build trees are the same, and I see that CLANG_TOOLING_BUILD_AST_INTROSPECTION is ON in CMakeCache.txt. I don't understand why it's taking the "off" path in this case, and failing to generate the fully functional header.

If this is some subtle misconfiguration error on my part, great; if not, it seems like the conditions in the Introspection/CMakeLists.txt needs a bit of tweaking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"clang:toolingLibTooling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions