Merge "Revert "Disable clang-tidy for ScriptIntrinsicBLAS.cpp""
diff --git a/script_api/GenerateStubsWhiteList.cpp b/script_api/GenerateStubsWhiteList.cpp
index 5caecd5..1c98adf 100644
--- a/script_api/GenerateStubsWhiteList.cpp
+++ b/script_api/GenerateStubsWhiteList.cpp
@@ -416,11 +416,25 @@
 
         file.writeNotices();
         file << "#include \"RSStubsWhiteList.h\"\n\n";
-        file << "std::vector<std::string> stubList = {\n";
+        file << "std::array<std::string_view, " << allManglings.size() << "> stubList = {\n";
         for (const auto& e : allManglings) {
             file << "\"" << e << "\",\n";
         }
         file << "};\n";
+
+        GeneratedFile header;
+        if (!header.start(".", "RSStubsWhiteList.h")) {
+            return false;
+        }
+
+        header.writeNotices();
+        header << "#ifndef RSStubsWhiteList_H\n";
+        header << "#define RSStubsWhiteList_H\n\n";
+        header << "#include <cstdlib>\n";
+        header << "#include <array>\n";
+        header << "#include <string_view>\n\n";
+        header << "extern std::array<std::string_view, " << allManglings.size() << "> stubList;\n\n";
+        header << "#endif // RSStubsWhiteList_H\n";
     }
     return success;
 }
diff --git a/script_api/generate.sh b/script_api/generate.sh
index 1a7fe34..9b14ee5 100755
--- a/script_api/generate.sh
+++ b/script_api/generate.sh
@@ -64,4 +64,4 @@
 rm -rf slangtest
 
 mv RSStubsWhiteList.cpp ../../compile/libbcc/lib/
-
+mv RSStubsWhiteList.h ../../compile/libbcc/lib/