https://bugs.llvm.org/show_bug.cgi?id=49652

            Bug ID: 49652
           Summary: [RGT] QualTypeNamesTest appears to do nothing
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

clang/unittests/Tooling/QualTypeNamesTest.cpp implements a struct
TypeNameVisitor, which is derived from TestVisitor, which appears to be
for tests invoking a RecursiveASTVisitor.

This struct defines a method VisitValueDecl() to do certain tests on
the name of a ValueDecl.  However, that method is never called; I can 
put an 'llvm_unreachable' at the top and it never fires.

The output of running the ToolingTest suggests that QualTypeNamesTest
is actually called, but apparently something about the definition of the
struct and/or its methods keeps the test from ever doing what it looks
like it ought to be doing.

I tried fussing with it a bit (is the parameter not supposed to be const?)
but no simple tweaks made any difference.  I suspect I just didn't find
the right simple tweak, but I've never used these classes myself so I'm
unsure what's missing.


Found by the Rotten Green Tests project.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to