Author: Aviral Goel
Date: 2026-03-12T19:52:31Z
New Revision: 5d7a502a9d923784abe4382ec479ee1c0667d743

URL: 
https://github.com/llvm/llvm-project/commit/5d7a502a9d923784abe4382ec479ee1c0667d743
DIFF: 
https://github.com/llvm/llvm-project/commit/5d7a502a9d923784abe4382ec479ee1c0667d743.diff

LOG: [clang][ssaf] Rename `ssaf-format` tool to `clang-ssaf-format`

This patch renames the `ssaf-format` tool to `clang-ssaf-format` to
decrease the chance of conflicts with binaries from other projects. This
issue was brought up in
https://github.com/llvm/llvm-project/pull/184713#issuecomment-4030747461

Added: 
    

Modified: 
    clang/test/Analysis/Scalable/ssaf-format/list.test
    clang/test/CMakeLists.txt
    clang/test/lit.cfg.py
    clang/tools/ssaf-format/CMakeLists.txt
    clang/tools/ssaf-format/SSAFFormat.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/Analysis/Scalable/ssaf-format/list.test 
b/clang/test/Analysis/Scalable/ssaf-format/list.test
index b4bedcd99f2bc..47a678766aed1 100644
--- a/clang/test/Analysis/Scalable/ssaf-format/list.test
+++ b/clang/test/Analysis/Scalable/ssaf-format/list.test
@@ -1,6 +1,6 @@
-// Test ssaf-format --list output without any loaded plugins.
+// Test clang-ssaf-format --list output without any loaded plugins.
 
-// RUN: ssaf-format --list \
+// RUN: clang-ssaf-format --list \
 // RUN:   | FileCheck %s
 
 // CHECK: Registered serialization formats:

diff  --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt
index b326ba12d7d21..f6244c938fc90 100644
--- a/clang/test/CMakeLists.txt
+++ b/clang/test/CMakeLists.txt
@@ -103,11 +103,11 @@ list(APPEND CLANG_TEST_DEPS
   clang-linker-wrapper
   clang-nvlink-wrapper
   clang-offload-bundler
+  clang-ssaf-format
   clang-ssaf-linker
   clang-sycl-linker
   diagtool
   hmaptool
-  ssaf-format
   )
 
 if(CLANG_ENABLE_CIR)

diff  --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py
index e9ede820c5756..183b674dcddae 100644
--- a/clang/test/lit.cfg.py
+++ b/clang/test/lit.cfg.py
@@ -143,7 +143,7 @@
         unresolved="ignore",
     ),
     "clang-ssaf-linker",
-    "ssaf-format",
+    "clang-ssaf-format",
 ]
 
 if config.clang_examples:

diff  --git a/clang/tools/ssaf-format/CMakeLists.txt 
b/clang/tools/ssaf-format/CMakeLists.txt
index e517c5af920ec..170d84af56cd4 100644
--- a/clang/tools/ssaf-format/CMakeLists.txt
+++ b/clang/tools/ssaf-format/CMakeLists.txt
@@ -3,11 +3,11 @@ set(LLVM_LINK_COMPONENTS
   Support
   )
 
-add_clang_tool(ssaf-format
+add_clang_tool(clang-ssaf-format
   SSAFFormat.cpp
   )
 
-clang_target_link_libraries(ssaf-format
+clang_target_link_libraries(clang-ssaf-format
   PRIVATE
   clangAnalysisScalable
   clangBasic

diff  --git a/clang/tools/ssaf-format/SSAFFormat.cpp 
b/clang/tools/ssaf-format/SSAFFormat.cpp
index 711813053bdbb..273b1d4e68ec9 100644
--- a/clang/tools/ssaf-format/SSAFFormat.cpp
+++ b/clang/tools/ssaf-format/SSAFFormat.cpp
@@ -51,7 +51,7 @@ enum class SummaryType { TU, LU };
 // Command-Line Options
 
//===----------------------------------------------------------------------===//
 
-cl::OptionCategory SsafFormatCategory("ssaf-format options");
+cl::OptionCategory SsafFormatCategory("clang-ssaf-format options");
 
 cl::list<std::string> LoadPlugins("load",
                                   cl::desc("Load a plugin shared library"),


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

Reply via email to