summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/include-fixer/find-all-symbols/FindAllMacros.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename directory housing clang-include-fixer to be eponymousNico Weber2019-03-251-69/+0
| | | | | | | | | | | Makes the name of this directory consistent with the names of the other directories in clang-tools-extra. Similar to r356254. No intended behavior change. Differential Revision: https://reviews.llvm.org/D59750 llvm-svn: 356897
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | 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
* [include-fixer] Remove line number from Symbol identitySam McCall2017-03-091-2/+1
| | | | | | | | | | | | | | | | | | | Summary: Remove line number from Symbol identity. For our purposes (include-fixer and clangd autocomplete), function overloads within the same header should mostly be treated as a single combined symbol. We may want to track individual occurrences (line number, full type info) and aggregate this during mapreduce, but that's not done here. Reviewers: hokein, bkramer Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D30685 llvm-svn: 297371
* [include-fixer] Add usage count to find-all-symbols.Sam McCall2017-02-281-8/+42
| | | | | | | | | | | | | | | | | | | | | | | Summary: Add usage count to find-all-symbols. FindAllSymbols now finds (most!) main-file usages of the discovered symbols. The per-TU map output has NumUses=0 or 1 (only one use per file is counted). The reducer aggregates these to find the number of files that use a symbol. The NumOccurrences is now set to 1 in the mapper rather than being inferred by the reducer, for consistency. The idea here is to use NumUses for ranking: intuitively number of files that use a symbol is more meaningful than number of files that include the header. Reviewers: hokein, bkramer Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D30210 llvm-svn: 296446
* [include-fixer] use includer of .inc header to be the file path of a symbol ↵Eric Liu2016-06-011-13/+4
| | | | | | | | | | | | | | from .inc header. Summary: added PathConfig.cpp and use includer of .inc header to be the file path of a symbol from .inc header. Reviewers: bkramer Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20855 llvm-svn: 271385
* [find-all-symbols] remove dots in SymbolInfo file paths.Eric Liu2016-05-311-1/+5
| | | | | | | | | | | | Summary: remove dots in SymbolInfo file paths. Reviewers: bkramer, klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20819 llvm-svn: 271302
* [find-all-symbols] Added hardcode header mapping from header postfix to ↵Eric Liu2016-05-241-5/+1
| | | | | | | | | | | | | | header name for STL symbols. Summary: [find-all-symbols] Added hardcode header mapping from header postfix to header name for STL symbols. Reviewers: klimek, bkramer Subscribers: cfe-commits, hokein Differential Revision: http://reviews.llvm.org/D20566 llvm-svn: 270566
* [find-all-symbols] fix failing unittest for Windows build bot.Eric Liu2016-05-201-3/+2
| | | | llvm-svn: 270202
* [find-all-symbols] make HeaderMapCollector optional in FindAllSymbols and ↵Eric Liu2016-05-201-5/+7
| | | | | | FindAllMacros. llvm-svn: 270193
* [find-all-symbol] Add macro support.Haojian Wu2016-05-201-0/+45
Reviewers: bkramer Subscribers: cfe-commits, ioeric Differential Revision: http://reviews.llvm.org/D20420 llvm-svn: 270189
OpenPOWER on IntegriCloud