[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 8 07:54:01 PST 2025


================
@@ -0,0 +1,86 @@
+//===- BuildNamespace.h -----------------------------------------*- 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_BUILDNAMESPACE_H
+#define LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_BUILDNAMESPACE_H
+
+#include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/StringRef.h"
+#include <optional>
+#include <string>
+#include <vector>
+
+namespace clang::ssaf {
+
+enum class BuildNamespaceKind : unsigned short {
+  CompilationUnit,
+  LinkUnit
+};
+
+llvm::StringRef toString(BuildNamespaceKind BNK);
----------------
steakhal wrote:

It is in a header. I think it needs to be llvm qualified.

https://github.com/llvm/llvm-project/pull/169131


More information about the cfe-commits mailing list