aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-doc/BitcodeReader.cpp
diff options
context:
space:
mode:
authorErick Velez <erickvelez7@gmail.com>2025-07-11 13:39:41 -0700
committerGitHub <noreply@github.com>2025-07-11 13:39:41 -0700
commit94bb9e12ec4ec243aac747910c5ae6359f354642 (patch)
tree3494cf33e332f82171fe77379ac4c1fd1c162b3a /clang-tools-extra/clang-doc/BitcodeReader.cpp
parent136558bab23af94fd23b9b8ce39632085b21a4ca (diff)
downloadllvm-94bb9e12ec4ec243aac747910c5ae6359f354642.zip
llvm-94bb9e12ec4ec243aac747910c5ae6359f354642.tar.gz
llvm-94bb9e12ec4ec243aac747910c5ae6359f354642.tar.bz2
[clang-doc] Serialize record files with mangled name (#148021)
This patch changes JSON file serialization. Now, files are serialized to a single directory instead of nesting them based on namespaces. The global namespace retains the "index.json" name. This solves the problem of class template specializations being serialized to the same file as its base template. This is also planned as part of future integration with the Mustache generator which will consume the JSON files.
Diffstat (limited to 'clang-tools-extra/clang-doc/BitcodeReader.cpp')
-rw-r--r--clang-tools-extra/clang-doc/BitcodeReader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-doc/BitcodeReader.cpp b/clang-tools-extra/clang-doc/BitcodeReader.cpp
index f756ae6..dce34a8 100644
--- a/clang-tools-extra/clang-doc/BitcodeReader.cpp
+++ b/clang-tools-extra/clang-doc/BitcodeReader.cpp
@@ -180,6 +180,8 @@ static llvm::Error parseRecord(const Record &R, unsigned ID,
return decodeRecord(R, I->TagType, Blob);
case RECORD_IS_TYPE_DEF:
return decodeRecord(R, I->IsTypeDef, Blob);
+ case RECORD_MANGLED_NAME:
+ return decodeRecord(R, I->MangledName, Blob);
default:
return llvm::createStringError(llvm::inconvertibleErrorCode(),
"invalid field for RecordInfo");