[clang-doc] Fix use of source-root flag
authorDiego Astiazaran <diegoaat97@gmail.com>
Thu, 15 Aug 2019 23:20:42 +0000 (23:20 +0000)
committerDiego Astiazaran <diegoaat97@gmail.com>
Thu, 15 Aug 2019 23:20:42 +0000 (23:20 +0000)
commit77dc05b945ade395baebcc04dd58792fcfc229fb
tree1c5ff293131fd8b46e5947a099fbfe3dbcd5f18d
parent6d6babf7457c8128072cb23f079123fa76cafc5b
[clang-doc] Fix use of source-root flag

The value, if any, of --source-root flag was not being used.
This has been fixed and the logic was moved to the ClangDocContext
contructor.

Differential revision: https://reviews.llvm.org/D66268

llvm-svn: 369065
clang-tools-extra/clang-doc/Representation.cpp
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp