[clang] [Draft] Summary Based Analysis Prototype (PR #144224)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 16 17:57:55 PDT 2025


================
@@ -0,0 +1,60 @@
+#ifndef LLVM_CLANG_SUMMARY_SUMMARYCONTEXT_H
+#define LLVM_CLANG_SUMMARY_SUMMARYCONTEXT_H
+
+#include "clang/Summary/SummaryAttribute.h"
+#include "clang/Summary/SummaryConsumer.h"
+#include <set>
+
+namespace clang {
+class FunctionSummary {
+  SmallVector<char> ID;
----------------
isuckatcs wrote:

This is just an artifact from `index::generateUSRForDecl()` expecting a `SmallVectorImpl<char> &` as it's buffer. In the very beginning, the constructor of this class took a `FunctionDecl` and generated the USR into this field. 

This and every other data structure used needs to be revisited throught these source files once again before the patch is finalized.

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


More information about the cfe-commits mailing list