llvm/clang-tools-extra
Sam McCall 73ea64f304 [clangd] Avoid scanning up to end of file on each comment!
Assigning char* (pointing at comment start) to StringRef was causing us
to scan the rest of the source file looking for the null terminator.

This seems to be eating about 8% of our *total* CPU!

While fixing this, factor out the common bits from the two places we're
parsing IWYU pragmas.

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

(cherry picked from commit 5d2d527c32da2081b814ef8b446bc3e037f74b0a)
2022-10-10 08:49:11 +02:00
..
clang-apply-replacements Use the range-based overload of llvm::sort where possible 2022-07-23 15:13:25 +02:00
clang-change-namespace Use drop_begin (NFC) 2022-07-15 23:24:59 -07:00
clang-doc [clang-doc] Add check for pointer validity 2022-07-22 17:36:30 +00:00
clang-include-fixer Use llvm::sort instead of std::sort where possible 2022-07-23 15:19:05 +02:00
clang-move
clang-query
clang-reorder-fields Use llvm::sort instead of std::sort where possible 2022-07-23 15:19:05 +02:00
clang-tidy [clang-tidy] adjust treating of array-of-pointers when 'AnalyzePointers' is deactivated 2022-09-30 08:20:18 +02:00
clangd [clangd] Avoid scanning up to end of file on each comment! 2022-10-10 08:49:11 +02:00
docs [docs] improve documentation for misc-const-correctness 2022-09-30 08:20:18 +02:00
include-cleaner [include-cleaner] Fix build error in unit test 2022-06-09 03:38:13 -04:00
modularize Remove unneeded cl::ZeroOrMore for cl::opt/cl::list options 2022-06-05 00:31:44 -07:00
pp-trace [pp-trace] Print HashLoc in InclusionDirective callback 2022-06-03 19:29:59 +08:00
pseudo [pseudo] Allow opaque nodes to represent terminals 2022-07-26 13:56:26 +02:00
test [clang-tidy] adjust treating of array-of-pointers when 'AnalyzePointers' is deactivated 2022-09-30 08:20:18 +02:00
tool-template
unittests [clang-tidy] Remove unnecessary code from ReadabilityModuleTest 2022-07-19 05:21:19 +01:00
.gitignore
CMakeLists.txt Generalize "check-all" umbrella targets, use for check-clang-tools 2022-05-06 12:30:49 +02:00
CODE_OWNERS.TXT
LICENSE.TXT
README.txt [NFC] update clang-tools-extra README.txt 2022-06-10 16:59:57 +05:30

//===----------------------------------------------------------------------===//
// Clang Tools repository
//===----------------------------------------------------------------------===//

Welcome to the repository of extra Clang Tools.  This repository holds tools
that are developed as part of the LLVM compiler infrastructure project and the
Clang frontend.  These tools are kept in a separate "extra" repository to
allow lighter weight checkouts of the core Clang codebase.

All discussion regarding Clang, Clang-based tools, and code in this repository
should be held using the standard Clang forum:
  https://discourse.llvm.org/c/clang

Code review for this tree should take place on the standard Clang patch and
commit lists:
  http://lists.llvm.org/mailman/listinfo/cfe-commits

If you find a bug in these tools, please file it in the LLVM bug tracker:
  https://github.com/llvm/llvm-project/issues/