diff options
author | Diego Astiazaran <diegoaat97@gmail.com> | 2019-08-09 17:49:41 +0000 |
---|---|---|
committer | Diego Astiazaran <diegoaat97@gmail.com> | 2019-08-09 17:49:41 +0000 |
commit | 665e9676c257124b97a469b98a05c42df9b99d1d (patch) | |
tree | f8d104607da2485119a540c893c342dc635a1677 /clang-tools-extra/clang-doc/BitcodeReader.cpp | |
parent | 2bf522aea62e4fb653cacb68072167d25149099e (diff) | |
download | bcm5719-llvm-665e9676c257124b97a469b98a05c42df9b99d1d.tar.gz bcm5719-llvm-665e9676c257124b97a469b98a05c42df9b99d1d.zip |
[clang-format] Add link to source code in file definitions
Two command line options have been added to clang-doc.
--repository=<string> - URL of repository that hosts code; used for links to definition locations.
--source-root=<string> - 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
Diffstat (limited to 'clang-tools-extra/clang-doc/BitcodeReader.cpp')
-rw-r--r-- | clang-tools-extra/clang-doc/BitcodeReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-doc/BitcodeReader.cpp b/clang-tools-extra/clang-doc/BitcodeReader.cpp index 04be1ca85f0..1d8eea0aade 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<Location> &Field, if (R[0] > INT_MAX) return llvm::make_error<llvm::StringError>("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<Location> &Field, if (R[0] > INT_MAX) return llvm::make_error<llvm::StringError>("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(); } |