From 665e9676c257124b97a469b98a05c42df9b99d1d Mon Sep 17 00:00:00 2001 From: Diego Astiazaran Date: Fri, 9 Aug 2019 17:49:41 +0000 Subject: [clang-format] Add link to source code in file definitions Two command line options have been added to clang-doc. --repository= - URL of repository that hosts code; used for links to definition locations. --source-root= - Directory where processed files are stored. Links to definition locations will only be generated if the file is in this dir. If the file is in the source-root and a repository options is passed; a link to the source code will be rendered by the HTML generator. Differential Revision: https://reviews.llvm.org/D65483 llvm-svn: 368460 --- clang-tools-extra/clang-doc/BitcodeReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang-tools-extra/clang-doc/BitcodeReader.cpp') diff --git a/clang-tools-extra/clang-doc/BitcodeReader.cpp b/clang-tools-extra/clang-doc/BitcodeReader.cpp index 04be1ca..1d8eea0 100644 --- a/clang-tools-extra/clang-doc/BitcodeReader.cpp +++ b/clang-tools-extra/clang-doc/BitcodeReader.cpp @@ -83,7 +83,7 @@ llvm::Error decodeRecord(Record R, llvm::Optional &Field, if (R[0] > INT_MAX) return llvm::make_error("Integer too large to parse.\n", llvm::inconvertibleErrorCode()); - Field.emplace((int)R[0], Blob); + Field.emplace((int)R[0], Blob, (bool)R[1]); return llvm::Error::success(); } @@ -129,7 +129,7 @@ llvm::Error decodeRecord(Record R, llvm::SmallVectorImpl &Field, if (R[0] > INT_MAX) return llvm::make_error("Integer too large to parse.\n", llvm::inconvertibleErrorCode()); - Field.emplace_back((int)R[0], Blob); + Field.emplace_back((int)R[0], Blob, (bool)R[1]); return llvm::Error::success(); } -- cgit v1.1