llvm-project/clang-tools-extra/clang-doc
Diego Astiazaran 15e468e0d5 [clang-doc] Fix link generation
Before making a link to a reference it is required to check that the
reference has a path (eg. primitives won't have paths).
This was done by checking if the path was empty; that worked because
when generating paths the outdirectory was included, so if the path was
assigned it had that outdirectory at least.
The path generation was changed, it's now only the composite of the
namespaces without the outdirectory. So if the info is in the global
namespace the path would be empty and the old check wouldn't work as expected.
A new attribute has been added to the Reference struct that indicates if
the info's parent is the global namespace.
Paths generation now fails if the path is empty and if the info
is not in the global namespace.

Differential Revision: https://reviews.llvm.org/D64958

llvm-svn: 367958
2019-08-06 00:11:34 +00:00
..
stylesheets [clang-doc] Add stylesheet to generated html docs 2019-07-25 21:27:50 +00:00
tool Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
BitcodeReader.cpp [clang-doc] Fix link generation 2019-08-06 00:11:34 +00:00
BitcodeReader.h [Bitcode] Move Bitstream to a separate library 2019-07-03 22:40:07 +00:00
BitcodeWriter.cpp [clang-doc] Fix link generation 2019-08-06 00:11:34 +00:00
BitcodeWriter.h [clang-doc] Fix link generation 2019-08-06 00:11:34 +00:00
CMakeLists.txt [clang-doc] Add a structured HTML generator 2019-07-10 19:03:25 +00:00
ClangDoc.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangDoc.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Generators.cpp [clang-doc] Add html links to references 2019-07-12 18:32:00 +00:00
Generators.h [clang-doc] Add option for user provided stylesheets 2019-07-25 22:46:40 +00:00
HTMLGenerator.cpp [clang-doc] Fix link generation 2019-08-06 00:11:34 +00:00
MDGenerator.cpp [clang-doc] Add option for user provided stylesheets 2019-07-25 22:46:40 +00:00
Mapper.cpp [clang-doc] Serialize child namespaces and records 2019-07-02 19:59:56 +00:00
Mapper.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Representation.cpp [clang-doc] Add html links to references 2019-07-12 18:32:00 +00:00
Representation.h [clang-doc] Fix link generation 2019-08-06 00:11:34 +00:00
Serialize.cpp [clang-doc] Add stylesheet to generated html docs 2019-07-25 21:27:50 +00:00
Serialize.h [clang-doc] Serialize child namespaces and records 2019-07-02 19:59:56 +00:00
YAMLGenerator.cpp [clang-doc] Fix link generation 2019-08-06 00:11:34 +00:00