================
@@ -0,0 +1,48 @@
+//===- EntityIdTable.cpp ----------------------------------------*- C++ 
-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM 
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
+#include <algorithm>
+#include <cassert>
+
+namespace clang {
+namespace ssaf {
+
+EntityId EntityIdTable::createEntityId(const EntityName &Name) {
----------------
jkorous-apple wrote:

I understand your concern. I imagine vast majority of summary extraction code 
to only be interested in getting the Id. I don't think the summary extraction 
logic should consider if a particular entity already got an Id or not.

I renamed the function to `getId` which shouldn't be mislead the users.
What do you think about that?

https://github.com/llvm/llvm-project/pull/171660
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to