summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-doc
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix file headers. NFCFangrui Song2019-03-013-3/+3
| | | | llvm-svn: 355188
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-1917-68/+51
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [clang-doc] Switch to default to all-TUs executorJulie Hockett2018-10-261-1/+1
| | | | | | | | Since we generally want to document a whole project, not just one file. Differential Revision: https://reviews.llvm.org/D53170 llvm-svn: 345418
* [clang-doc] Limit integration testsJulie Hockett2018-10-162-291/+14
| | | | | | | | | | | | | | | | Now that the clang-doc libraries are covered by unit tests, we don't need to have extensive (and unmaintainable) integration tests. This replaces the integration test suite with a smaller one that just tests the tool itself and removes extraneous dumping logic from the tool itself. Includes tests that cover the parse->serialize->merge->generate pipeline, as well as tests for the --public, --format, --doxygen, and --output flags. Differential Revision: https://reviews.llvm.org/D53150 llvm-svn: 344655
* [clang-doc] Add unit tests for bitcodeJulie Hockett2018-10-161-4/+2
| | | | | | | | | | | | Adds unit tests for the BitcodeWriter and BitcodeReader libraries. This is part of a move to convert clang-doc's tests to a more maintainable unit test framework, with a smaller number of integration tests to maintain and more granular failure feedback. Differential Revision: https://reviews.llvm.org/D53082 llvm-svn: 344651
* [clang-doc] Clean up Markdown outputJulie Hockett2018-10-041-10/+15
| | | | | | | | Make the output for the MDGenerator cleaner and more readable. Differential Revision: https://reviews.llvm.org/D52754 llvm-svn: 343818
* [clang-doc] Avoid parsing undefined base classesJulie Hockett2018-10-031-0/+3
| | | | | | | | | Don't try to parse base classes for declarations that are not definitions (segfaults, as there is no DefinitionData to access). Differential Revision: https://reviews.llvm.org/D52313 llvm-svn: 343703
* [cxx2a] Fix warning triggered by r343285Vitaly Buka2018-09-291-1/+0
| | | | llvm-svn: 343369
* Fix MSVC "not all control paths return a value" warnings. NFCI.Simon Pilgrim2018-09-121-0/+2
| | | | llvm-svn: 342052
* Reland "Implement a (simple) Markdown generator"Julie Hockett2018-09-118-38/+381
| | | | | | | | Relanding with fixes to tests for the failing bots. Differential Revision: https://reviews.llvm.org/D43424 llvm-svn: 341955
* [clang-doc] Fix memory leaksJulie Hockett2018-08-242-5/+7
| | | | | | | | Adds a virtual destructor to the base Info class. Differential Revision: https://reviews.llvm.org/D51137 llvm-svn: 340620
* Revert "Implement a (simple) Markdown generator"Julie Hockett2018-08-168-383/+38
| | | | | | | This reverts commit r339948, as it's breaking a few bots in ways that I can't reproduce right now. llvm-svn: 339966
* Implement a (simple) Markdown generatorJulie Hockett2018-08-168-38/+383
| | | | | | | | | | | | | | | Implementing a simple Markdown generator from the emitted bitcode summary of declarations. Very primitive at this point, but will be expanded. Currently emits an .md file for each class and namespace, listing its contents. For a more detailed overview of the tool, see the design document on the mailing list: http://lists.llvm.org/pipermail/cfe-dev/2017-December/056203.html Differential Revision: https://reviews.llvm.org/D43424 llvm-svn: 339948
* [clang-doc] Explicitly cast to unique_ptrJulie Hockett2018-08-151-1/+1
| | | | | | | Older compilers don't like the implicit cast & move when returning a unique_ptr to an llvm::Expected type. llvm-svn: 339785
* Reland "[clang-doc] Updating BitcodeReader to use llvm::Error""Julie Hockett2018-08-152-208/+257
| | | | | | | With explicit unique_ptr casts so that bots with older compilers don't break. llvm-svn: 339783
* [clang-doc] Fix unused variableJulie Hockett2018-08-141-1/+1
| | | | | | Differential Revision: https://reviews.llvm.org/D50709 llvm-svn: 339685
* Revert "[clang-doc] Updating BitcodeReader to use llvm::Error"Julie Hockett2018-08-132-257/+208
| | | | | | This reverts commit r339617 for breaking bots. llvm-svn: 339620
* [clang-doc] Updating BitcodeReader to use llvm::ErrorJulie Hockett2018-08-132-208/+257
| | | | llvm-svn: 339617
* [clang-doc] Pass over function-internal declarationsJulie Hockett2018-08-131-0/+4
| | | | llvm-svn: 339592
* Port getLocStart -> getBeginLocStephen Kelly2018-08-091-2/+2
| | | | | | | | | | Reviewers: javed.absar Subscribers: nemanjai, kbarton, ilya-biryukov, ioeric, jkorous, arphaman, jfb, cfe-commits Differential Revision: https://reviews.llvm.org/D50354 llvm-svn: 339400
* [clang-doc] Fix unique_ptr error on botsJulie Hockett2018-08-031-11/+9
| | | | | | | | | Explicitly return the base unique_ptr type, as some of the older compilers on the bots don't support full C++11. Differential Revision: https://reviews.llvm.org/D50208 llvm-svn: 338796
* Reland "[clang-doc] Refactoring mapper to map by scope"Julie Hockett2018-08-0212-113/+416
| | | | | | | | | | | | | | | Relanding with a minor change to prevent an assertion on release bots. The result of this adjusted mapper pass is that all Function and Enum infos are absorbed into the info of their enclosing scope (i.e. the class or namespace in which they are defined). Namespace and Record infos are passed along to the final output, but the second pass creates a reference to each in its parent scope. As a result, the top-level final outputs are Namespaces and Records. Differential Revision: https://reviews.llvm.org/D48341 llvm-svn: 338763
* Revert "[clang-doc] Refactoring mapper to map by scope"Julie Hockett2018-08-0212-413/+110
| | | | | | This reverts commit r338738 as it's breaking the bots. llvm-svn: 338748
* [clang-doc] Refactoring mapper to map by scopeJulie Hockett2018-08-0212-110/+413
| | | | | | | | | | | The result of this adjusted mapper pass is that all Function and Enum infos are absorbed into the info of their enclosing scope (i.e. the class or namespace in which they are defined). Namespace and Record infos are passed along to the final output, but the second pass creates a reference to each in its parent scope. As a result, the top-level final outputs are Namespaces and Records. llvm-svn: 338738
* [clang-doc] Create a script to generate testsJulie Hockett2018-07-201-0/+200
| | | | | | | | | Upstreaming the script I use to generate clang-doc tests (and updating the existing tests to use it) Differential Revision: https://reviews.llvm.org/D49268 llvm-svn: 337632
* [clang-doc] Adding PublicOnly flagJulie Hockett2018-07-209-32/+73
| | | | | | | | | | | Submitted on behalf of Annie Cherkaev (@anniecherk) Added a flag which, when enabled, documents only those methods and fields which have a Public attribute. Differential Revision: https://reviews.llvm.org/D48395 llvm-svn: 337602
* Fix MSVC 'not all control paths return a value' warning. NFCI.Simon Pilgrim2018-06-061-0/+1
| | | | llvm-svn: 334122
* [clang-doc] Implement a YAML generatorJulie Hockett2018-06-066-16/+428
| | | | | | | | | Implmenting a YAML generator from the emitted bitcode summary of declarations. Emits one YAML file for each declaration information. For a more detailed overview of the tool, see the design document on the mailing list: http://lists.llvm.org/pipermail/cfe-dev/2017-December/056203.html llvm-svn: 334103
* [clang-doc] Adding missing dependencies to fix linker error on botJulie Hockett2018-06-041-0/+2
| | | | llvm-svn: 333936
* [clang-doc] Implement reducer portion of the frontend frameworkJulie Hockett2018-06-048-59/+1042
| | | | | | | | | | | | | | | | | | Implements a simple, in-memory reducer for the mapped output of the initial tool. This creates a collection object for storing the deduplicated infos on each declaration, and populates that from the mapper output. The collection object is serialized to LLVM bitstream. On reading each serialized output, it checks to see if a merge is necessary and if so, merges the new info with the existing info (prefering the existing one if conflicts exist). For a more detailed overview of the tool, see the design document on the mailing list: http://lists.llvm.org/pipermail/cfe-dev/2017-December/056203.html Differential Revision: https://reviews.llvm.org/D43341 llvm-svn: 333932
* [clang-doc] Attaching a name to reference dataJulie Hockett2018-05-044-150/+142
| | | | | | | | | | This adds the name of the referenced decl, in addition to its USR, to the saved data, so that the backend can look at an info in isolation and still be able to construct a human-readable name for it. Differential Revision: https://reviews.llvm.org/D46281 llvm-svn: 331539
* [clang-doc] Removing -Wunused-variable warningJulie Hockett2018-03-261-2/+2
| | | | | | | | Warning was appearing in release with debug info build, this removes it. Differential Revision: https://reviews.llvm.org/D44912 llvm-svn: 328588
* [clang-doc] Reland "[clang-doc] Setup clang-doc frontend framework"Julie Hockett2018-03-2212-0/+1675
| | | | | | Fixed windows release build tests. llvm-svn: 328270
* Revert "[clang-doc] Reland "[clang-doc] Setup clang-doc frontend framework""Julie Hockett2018-03-2212-1676/+0
| | | | | | | This reverts commit r328150 until we can fix the test that are failing on the Windows release build. llvm-svn: 328172
* [clang-doc] Reland "[clang-doc] Setup clang-doc frontend framework"Julie Hockett2018-03-2112-0/+1676
| | | | | | Fixing the the failing Windows tests. llvm-svn: 328150
* Revert "Reland "[clang-doc] Setup clang-doc frontend framework""Julie Hockett2018-03-1212-1680/+0
| | | | | | | This reverts commit r327295 since it was causing the Windows bots to fail. llvm-svn: 327346
* Reland "[clang-doc] Setup clang-doc frontend framework"Julie Hockett2018-03-1212-0/+1680
| | | | | | | There was a missing newline in the docs, and a static_assert that needed to be a normal assert. llvm-svn: 327295
* Revert "[clang-doc] Setup clang-doc frontend framework"Julie Hockett2018-03-0912-1682/+0
| | | | | | | This reverts commit r327102, since it was breaking the linux-abi-test on x86. llvm-svn: 327103
* [clang-doc] Setup clang-doc frontend frameworkJulie Hockett2018-03-0912-0/+1682
Setting up the mapper part of the frontend framework for a clang-doc tool. It creates a series of relevant matchers for declarations, and uses the ToolExecutor to traverse the AST and extract the matching declarations and comments. The mapper serializes the extracted information to individual records for reducing and eventually doc generation. For a more detailed overview of the tool, see the design document on the mailing list: http://lists.llvm.org/pipermail/cfe-dev/2017-December/056203.html Differential Revision: https://reviews.llvm.org/D41102 llvm-svn: 327102
OpenPOWER on IntegriCloud