summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
diff options
context:
space:
mode:
authorDiego Astiazaran <diegoaat97@gmail.com>2019-08-09 17:49:41 +0000
committerDiego Astiazaran <diegoaat97@gmail.com>2019-08-09 17:49:41 +0000
commit665e9676c257124b97a469b98a05c42df9b99d1d (patch)
treef8d104607da2485119a540c893c342dc635a1677 /clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
parent2bf522aea62e4fb653cacb68072167d25149099e (diff)
downloadbcm5719-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/unittests/clang-doc/SerializeTest.cpp')
-rw-r--r--clang-tools-extra/unittests/clang-doc/SerializeTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/unittests/clang-doc/SerializeTest.cpp b/clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
index 9384fabe652..dff12d2bc5a 100644
--- a/clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
+++ b/clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
@@ -37,7 +37,7 @@ public:
template <typename T> bool mapDecl(const T *D) {
auto I = serialize::emitInfo(D, getComment(D), /*Line=*/0,
- /*File=*/"test.cpp", Public);
+ /*File=*/"test.cpp", true, Public);
if (I.first)
EmittedInfos.emplace_back(std::move(I.first));
if (I.second)
OpenPOWER on IntegriCloud