[clang-tools-extra] [clang-doc] add nested namespace test case (PR #97681)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 15 08:06:14 PDT 2024
ilovepi wrote:
> I don't think this possible since the line directive matches the line of the html or md file you pipe into FileCheck, which is different from the line that's define in the source code. I've opted for just matching any number to make the test case less brittle
I’m not sure I follow. The LINE directive should work fine regardless of what output you’re checking. It should match the current line that the check is on, so if you do something like LINE-1 with the check right after the thing you’re trying to match, it should work fine. If you look at tests in Clang, LLVM , or compiler-rt you should find plenty of examples demonstrating the typical usage.
https://github.com/llvm/llvm-project/pull/97681
More information about the cfe-commits
mailing list