[clang] [clang][ssaf] Add Entity Linker and associated data structures (PR #181765)
Aviral Goel via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 20 11:18:31 PST 2026
================
@@ -61,5 +65,16 @@ TEST(EntityIdTest, Transitivity) {
EXPECT_TRUE(Ids[0] < Ids[1] && Ids[1] < Ids[2]);
}
+TEST(EntityIdTest, StreamOutput) {
+ EntityIdTable Table;
+ EntityName Entity("c:@F at foo", "", {});
+ EntityId Id = Table.getId(Entity);
+
+ std::string S;
+ llvm::raw_string_ostream(S) << Id;
+ EXPECT_THAT(S, StartsWith("EntityId("));
----------------
aviralg wrote:
Got over my anger for Google Test and wrote a custom function to check for digit sequence. The test is now complete. I am not happy with Google Test though.
https://github.com/llvm/llvm-project/pull/181765
More information about the cfe-commits
mailing list